|
|
<DIV id=list>3 B9 t9 k) q' y3 W5 i# G2 K
<DIV id=lrc1 style="COLOR: #666666">[wmv=0] http://lzbj.ncedu.net.cn/uploadfile/20083923248279.mp3[/wmv] </DIV># ?1 a8 D+ o2 J6 e. o5 ~3 q) M+ N
<DIV style="COLOR: #666666">|等一分钟|听到这首歌,觉得它很动听,旋律很优美,很是喜欢,传上来给大家听听。</DIV>( e; g3 h5 }# G0 [/ i
<DIV id=lrc2 style="COLOR: #666666">词曲唱:徐誉滕</DIV>' f+ |% _* d6 S. D( W
<DIV id=lrc3 style="COLOR: #666666"></DIV>8 |4 s: q: Z8 Z: a' n0 P
<DIV id=lrc5 style="COLOR: #666666">如果时间 </DIV>3 p8 f( J7 c U( u+ V- ~0 Z
<DIV id=lrc6 style="COLOR: #666666">忘记了转 </DIV>! a( k) { H0 U8 a
<DIV id=lrc7 style="COLOR: #666666">忘了带走什么 </DIV>
2 ]# ?- h7 w0 W8 o- A7 ~1 I$ }7 I<DIV id=lrc8 style="COLOR: #666666">你会不会 </DIV>: x% P" d& ? Q N+ o5 x
<DIV id=lrc9 style="COLOR: #666666">至今停在说爱我的那天 </DIV>) m M" s( Y7 Q4 B
<DIV id=lrc10 style="COLOR: #666666">然后在世界的一个角 </DIV>( T- d2 ?5 j; J; l. E5 A
<DIV id=lrc11 style="COLOR: #666666">有了一个我们的家 </DIV>2 E6 p- \' E, T2 D8 d+ I9 p
<DIV id=lrc12 style="COLOR: #666666">你说我的胸膛会让你感到暖 </DIV>+ p; z' F2 `; Z1 Z4 q
<DIV id=lrc13 style="COLOR: #666666">如果生命 </DIV>
& ?1 ?. J1 t' s) c<DIV id=lrc14 style="COLOR: #666666">没有遗憾 </DIV>
" W1 v' ?# ]$ B) j' U) f<DIV id=lrc15 style="COLOR: #666666">没有波澜 </DIV>
9 e: a6 F/ E( q, l0 h0 f<DIV id=lrc16 style="COLOR: #666666">你会不会 </DIV>3 v3 U, J! H4 l# O. ?; p" j: b( F6 D. B
<DIV id=lrc17 style="COLOR: #666666">永远没有说再见的一天 </DIV>; v6 }! A s. F0 X4 W. E
<DIV id=lrc18 style="COLOR: #666666">可能年少的心太柔软 </DIV>% N% E' D# @0 s9 u; Y8 H. I/ @1 \
<DIV id=lrc19 style="COLOR: #666666">经不起风经不起浪 </DIV>
+ W$ v" u% z8 s8 J. D7 F$ J, F1 a<DIV id=lrc20 style="COLOR: #666666">若今天的我能回到昨天 </DIV>
! f$ x( j! o0 c+ e, [' W5 i$ K<DIV id=lrc21 style="COLOR: #666666">我会向自己妥协 </DIV>
# K: S& q% f$ w* V; U1 ]<DIV id=lrc22 style="COLOR: #666666">我在等一分钟 </DIV>
4 T; p3 P' h1 E+ u. }<DIV id=lrc23 style="COLOR: #666666">或许下一分钟 </DIV>' J! j" L. H" n
<DIV id=lrc24 style="COLOR: #666666">看到你闪躲的眼 </DIV>4 X4 ^5 J# q1 ~; c; b/ U
<DIV id=lrc25 style="COLOR: #ff3300">我不会让伤心的泪挂满你的脸 </DIV>8 H; O; {5 {/ f: Q/ Y9 h% c- F
<DIV id=lrc26 style="COLOR: #000000">我在等一分钟 </DIV>: u. a( O# C2 d' g4 U1 B0 q8 m
<DIV id=lrc27 style="COLOR: #000000">或许下一分钟 </DIV>
. W+ L. {( c8 f7 d a; Q; C<DIV id=lrc28 style="COLOR: #000000">能够感觉你也心痛 </DIV>
2 n/ n+ r2 j9 V1 q% j<DIV id=lrc29 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>& J# \& P' T( ^) j
<DIV id=lrc30 style="COLOR: #000000">如果生命 </DIV>; N: O- f1 l# k) Y' \2 z& \# K ?
<DIV id=lrc31 style="COLOR: #000000">没有遗憾 </DIV>/ R; `$ ~2 C, g. y
<DIV id=lrc32 style="COLOR: #000000">没有波澜 </DIV>: x2 v7 O/ D7 M( ?9 D5 }% W
<DIV id=lrc33 style="COLOR: #000000">你会不会 </DIV># c( H& R$ X% b! Y% x# W" r% u
<DIV id=lrc34 style="COLOR: #000000">永远没有说再见的一天 </DIV>
5 U& X! h, A( l3 m- ~3 v' @<DIV id=lrc35 style="COLOR: #000000">可能年少的心太柔软 </DIV>& D# y9 ?; Y: @6 b, g' g! i
<DIV id=lrc36 style="COLOR: #000000">经不起风经不起浪 </DIV>
- {* N c, I% R& E* U<DIV id=lrc37 style="COLOR: #000000">若今天的我能回到昨天 </DIV>; M7 K6 R. V% k ?, m, J
<DIV id=lrc38 style="COLOR: #000000">我会向自己妥协 </DIV>
) O9 G2 d9 }2 C- |<DIV id=lrc39 style="COLOR: #000000">我在等一分钟 </DIV>5 O J4 T, P6 Q4 Z% h0 D& D
<DIV id=lrc40 style="COLOR: #000000">或许下一分钟 </DIV>
6 W* A1 e; E* t) E<DIV id=lrc41 style="COLOR: #000000">看到你闪躲的眼 </DIV>
' u. h7 L9 [8 D# o<DIV id=lrc42 style="COLOR: #000000">我不会让伤心的泪挂满你的脸 </DIV>
3 o( R2 q; V, X<DIV id=lrc43 style="COLOR: #000000">我在等一分钟 </DIV>
; U( l% ~ z2 ]5 g7 k' ~5 T! p<DIV id=lrc44 style="COLOR: #000000">或许下一分钟 </DIV># F& \+ h4 E- c5 [2 P
<DIV id=lrc45 style="COLOR: #000000">能够感觉你也心痛 </DIV>
! M/ \( X$ M7 |( ^* Q2 a4 x' z<DIV id=lrc46 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>
% x) @ b# n3 ]! b: I3 i<DIV id=lrc47 style="COLOR: #000000">我在等一分钟 </DIV>7 a+ |4 r+ H y% I% ^
<DIV id=lrc48 style="COLOR: #000000">或许下一分钟 </DIV>
- u- g, t$ a' K; ~<DIV id=lrc49 style="COLOR: #000000">看到你不舍的眼 </DIV>5 @+ I! P+ I4 R' E0 d i
<DIV id=lrc50 style="COLOR: #000000">我会用一个拥抱换取你的转身 </DIV>
8 ?& o! h+ c. B. C0 U<DIV id=lrc51 style="COLOR: #000000">我在等一分钟 </DIV>, Z- P: n( d! x7 f: m% P B: [% h
<DIV id=lrc52 style="COLOR: #000000">或许下一分钟 </DIV>% d. K2 Q) R2 b$ L+ A1 V+ U6 B
<DIV id=lrc53 style="COLOR: #000000">如果你真的也心痛 </DIV> g" o3 s( S3 e! t- j+ j' C
<DIV id=lrc54 style="COLOR: #000000">我会告诉你我的胸膛依旧暖 3 p) O4 o" M) Q2 z
<DIV id=lrc style="DISPLAY: none"></DIV> p2 U/ p1 S( `( h$ J* B p
<SCRIPT type=text/javascript>
) g: g5 r4 |# C( R1 U" D9 }4 w4 Kdocument.domain="1ting.com";
/ C7 z+ C: ~2 }' U+ j b% i6 Rvar colorPasted="#666666";
+ a7 k3 _7 J# K5 Z4 r3 D8 N2 ?4 wvar colorPlaying="#ff3300";' z7 w; L) ]: A+ }1 N: @
var colorNormal="#000000";
- c7 R$ C$ K. H$ = function (a,g){- L9 n; x2 I3 x$ u( x' y" Y1 G
var o = new Array(); 5 k) @4 U- l3 Y# D
var c = new Array();
; _# K! a- ]% X var r; 6 ]. ~. {% T* C& _& R
var u;
* r% c4 M7 x& V% t2 [! O% M* o' d var a = a.split(';');
, D: b# h# }, m v1 s7 {! \# h; @* i2 \) U6 c- T
var e = "keydowns,resize,load,dblclick,click,mouseout,mouseover,mousemove,mouseup,mousedown,inputchange,inputfocus,inputblur".split(",");, u& ^" u8 v7 o- I
for(var i=0;i<e.length;i++){
% l* h# @9 T! n) h) K eval(e<i>+" = function (s){eval($event('on"+e<i>.replace("input","")+"'))}")
( @4 M4 I8 g# e/ v2 U }, @9 }( N! U0 Y. C6 {
) w' w" x8 p9 ?1 r- t2 p after = function (t,d,s){2 q, _4 P5 c3 w" f+ e5 a
$after = function (){! } h) V. \' w4 p. c9 c
var $n=document.createElement(t);% O0 {$ S) D% p; d# ^
if(d!=null){# ]" P# z- X5 t5 I6 E
$n.id=d; 5 a6 s1 W; A5 H, Y. t
}
2 d3 E6 j: T2 ?; ?
2 `& V0 m. e- W- B u.insertBefore($n,null) & m$ d( H; G3 p7 m# ]* I* X- ~! J/ L
r = $n;
) B8 G% {3 u2 `% h7 Q+ |, _! F u = $n; j" Y$ K6 a2 M# v7 Y Y9 Z- o0 ?
}$ u& R6 `: k o& K. c
$for(s,"$after")
; o# a2 \. d) c9 H, i, o' D' x7 w }
# ]- L1 @& P4 d, y* ^$ R
/ v) I. V2 g5 ?* p' H1 E; E8 J0 H) U1 U show = function (s){6 l4 G+ P+ [3 T8 I0 U5 Q6 [
$show = function (){9 |. V$ w. I* ~0 c% R7 F
u.style.display!="none" ? style("display:none") : style("display:block") ;
. |3 H1 ]1 t L2 X! @' i3 T5 q }) m! p9 l: E9 o
$for(s,"$show")
2 ]1 A) w) d3 K H* | }' G8 \; V( n! ]7 R3 ^* ^7 ]& _
$ M5 \+ C: R$ c. e
check = function (t,s){
% C2 }. s. F" g# B! X( E# ~ $check = function (){
" b+ ?7 T2 }) y3 l if(t=="2"){5 v9 U# w1 Q. s& y$ K8 a/ ^8 l
if(u.checked){4 P7 G W0 e+ K0 y [4 H) }& `
u.checked = false;# I; C7 m1 L! V U
}else{
/ H( V& G! P! _+ u' ~" ?: e; g u.checked = true;. D* R7 t2 H/ T: t
}
$ u a$ ^( a0 C7 s }else{
1 |* ^* m+ _" J6 g u.checked = t*1 ;
+ F$ z/ q6 t5 P }
# ]' D7 u- ` p6 f2 Q% ~ }9 @9 O# y1 q; O/ N
$for(s,"$check"), {$ c- G4 l+ ?% x
}3 f* [ v/ N$ r& {. ~
8 L# s$ L" `; Q$ G style = function (v,s){
g2 r9 I# s a/ ~ $style = function (){
5 Z: u0 V# @( q, ]6 o var $n = v.split(",")
6 i9 `- U- }2 Z. I for (var i=0;i<$n.length;i++ ){
6 U* t/ x8 q6 h* ? var $m = $n<i>.split(":")
, Z% C; j/ b! k eval("u.style."+$m[0]+"='"+$m[1]+"'");) H& [! n9 N1 n m7 Q
}
* j' r7 ^2 K2 E1 h6 R: m. e4 ~ } r9 W) u" i" m' |0 Q. T! w F* s7 g
$for(s,"$style")2 y8 J9 W/ j" I; k
}
8 K. \ K, l3 M5 z4 w5 o
& T$ J5 \7 \ O5 f7 p" _ value = function (v,s){
+ Q! G# g3 k& G2 O7 G var $n= $this (v);
Q3 }: L5 i. K2 Q $value = function (){
# R- w; K* P/ p) O# l0 R u.value = $n: m/ V4 a2 R+ n6 h0 B# k1 L
}/ M0 q/ Y" v% M6 F& w, J- r% ?. \
$for(s,"$value")
# Q1 _1 Q y d( y) |' x5 h1 p }9 e4 b% l; B$ V- d: D, G) D/ [
N4 N$ w3 `1 S3 G" _2 v3 G
text = function (v,s){$ h/ K7 e* w' q! d9 m. l8 {: \
var $n= $this (v);4 R* P { G) E
$text = function (){
. [+ J& E# Y- w, ~4 j" r
3 z3 P, w8 F0 \ u.text = $n
* ^9 l u, Y$ Q5 p8 g }; \7 b! x( w, r" F1 L
$for(s,"$text")
1 H) m! t+ x+ N% Z }
: U8 ~$ Q' v# J- M/ P
' H3 v2 c& N0 v' z% N7 r innerhtml = function (v,s){
$ V2 b* n C# ?; x var $n= $this (v);
2 R' p P7 ~" ~- e $innerhtml = function (){
. x: c- G' N2 {( l0 i! \$ j# i9 ?5 w; N u.innerHTML = $n
* E3 _5 c# G* R" R }7 N9 n0 I3 a# N/ m3 e; j
$for(s,"$innerhtml")
$ l8 ~6 [ y$ S }( f5 C$ |/ V( J4 Q6 J: f
; V# x& R4 q+ e4 k2 @! y removechild = function (s){" _ t& Y7 \; E6 g6 s
$removechild = function (){6 p" N4 o* r+ g' l: b# s* c1 N
u.parentNode.removeChild(u)
7 J5 Q* ]* e" @* ] }
5 t/ S S* L# m2 {, y, M+ H! E $for(s,"$removechild")
+ l4 Y, _% q9 X9 g1 M }( E, ], P: V3 H% {
; q$ `# X- g/ h* p $this =function(v){% r% C4 l+ T% v$ B5 J- k3 W! A
if(v.indexOf("this") == 0){. d+ z+ v0 ]- f) r
return eval(v.replace("this","u"))
! g. Z# z0 {8 Y8 j }( B2 [( k+ ~" ~
return v;
9 i. n9 Z8 q, j: @ }, t) j+ B. V& m
6 }5 @: b/ p+ Q3 w' q; g2 r7 k" Z $event = function (s){
6 o) B" {- Q/ N var $n ="u."+s+" = function(){$work(this,s);}"& w# L( |! S3 t/ ^
return $n;
7 t! T% o6 u8 a }9 t, z- [( \7 Z8 F1 m
9 s, G/ ^+ _0 c r2 i2 V' x% x& D |
$replace = function (s){0 d" ]+ ]8 [7 @$ i7 j, p g! B
" @8 g0 ?9 P1 e9 S: \0 } }) {" _& ~8 a7 e: k2 \, ^
% a' H4 T! L" ^$ \7 `9 H' S* L
$for = function (s,c){; U: {$ e( R+ `
var $n="this."+c+"()" ;5 ?- d7 m2 s% Q' [+ Q2 I2 C/ V$ k H
if(s!=null){7 _& c3 t8 r s/ h! [4 V$ Y1 C
var $m =$test(s);* e! n1 \ t. I" X/ w& B* n; ?
for (var i=0;i<$m.length ;i++ ){
; M' G2 o L0 ?; x u = $m<i>;2 m" a1 f- i9 p C
eval($n);( d# Z5 V+ U9 r3 G
}
g" M; s/ X+ ~& J2 L }; K$ J! e1 d" V( Y3 H$ ^
else{
# |+ k+ ]4 I& K X3 ~0 x7 C eval($n);0 s. t" j9 m" T/ ]" `2 x; i8 z; B
}
- \. Q- O- ~, t' E4 c" g }4 x1 i/ E6 r) h& S j
7 q A3 y$ w/ F* H6 w, l& O $test = function (a){7 A3 A2 v6 J, @+ U+ @( ]
var o = new Array();$o(a.split(';'),o);
) d) o6 f5 O! W" O7 @ return o;
% V& b* ^5 b& D9 L$ j: H: Z }
! ^& L; G5 O; d5 B
1 R" q0 [( L* C5 D5 R# U4 o $format = function(s){
" b$ f. \! p2 ?9 n& X9 O while (s.indexOf("'")>0){
7 ^! b" c0 J& p. Z7 ` w s=s.replace("'","\"");
# e3 @ B4 ~8 I/ e5 ^6 _! L }
, U3 U9 s# b+ Q& H; s while (s.indexOf("][")>0){+ Z- d5 Z( U4 l( H2 Q; R' D3 J
s=s.replace("][","','")4 J0 {/ ] \4 b/ t
}4 p: o% u- w @' g. w1 Y
while (s.indexOf("[")>0){8 q; V, q4 [/ G$ D l) M- Q
s=s.replace("[","'").replace("]","'")3 R- i" H( ]/ K1 _, K. M9 M
}
0 m( q: e/ C9 e# y3 Z; y return s;" a$ V% a! i0 k3 q. h
}
: { X4 [0 w7 @' f# u+ N6 K4 ^& \- c! y1 d# k- m/ G# C
$work = function(w,s){
% c" {; S! u$ Z/ y2 U3 X u=w;eval(s)
4 B' x6 J9 }0 Q* t8 l- e7 I0 y9 P& h }
( D8 ~: Y) G5 S: ^ m5 B+ Q# X
" I" ]+ P4 t9 I- c( H3 t $id = function (s){
4 i$ ~8 Y) `" e% b return document.getElementById(s);
9 B3 V+ P$ X. n/ ~9 | }
. G/ A0 t+ d" [7 @
' C, g: n# @1 _2 W $name = function (s){$ z& c, P; a; J. C" a X
return document.getElementsByName(s);
# R, G# [) Q; j. g$ v8 e' z }
7 R, s9 X3 f3 G/ G2 |+ T1 M8 F" R! H* l: a% r q2 R* H- n% d( {
$tagname = function (s){- @" }' k2 _0 X: F
return document.getElementsByTagName(s);2 [' w3 X- A( G0 k/ ?1 N
}
+ W6 n/ v" P1 b- \% f% k( a& L# K$ |* M0 `2 c& L
$o = function (a,o,c){
/ W A, Z# W3 D% M3 C' Y& F $push = function (n) {8 }' Q; S6 i' i% S+ g
for (var i=0;i< n.length;i++ ){
# I3 y: s! F. n, J8 K8 n6 H o.push(n<i>);
, T9 c$ C; } u* o8 t( b3 C, \. a } " r2 L- m' M% ^4 Y: L& }
}
) \1 x/ b1 v$ |/ N2 c& g for(var i=0;i<a.length;i++){6 K6 A' V; a% B9 @+ R8 T
if(a<i>.indexOf("(") >= 0){: |9 m" `9 ^8 @2 e- ?
c.push(a<i>);7 @# z z: U& t6 ?) K+ z8 x0 `6 a
}4 E3 q* ]8 o- H
if(a<i>.indexOf("~") > 0){2 m5 v0 g4 c' |1 T( M/ Z9 q. `; }/ P6 m
try {
0 N' o9 M0 O+ L8 K; C; q( {: ]) c+ d' ` $push(eval(a<i>.replace("#","document.getElementById('").replace(" ~ @","').getElementsByTagName('")+"')"));
: ]; i: V* i% B6 w) A }catch(e) w7 g9 B& @2 ], E
{} + G+ [0 e/ G, d' r# ]5 B/ L3 e
}9 |4 n( A% U8 E, B
else{
( H+ `& H% ?* t if(a<i>.indexOf("#")==0){' L# r/ n; v. Y( L! w$ t* R5 a
o.push($id(a<i>.replace("#","")));" X8 m# @! G: }& f: T8 u R
}% P! x3 e9 Q; k" P8 G
if(a<i>.indexOf(".")==0){
- i* I6 f' }" E c K $push($name(a<i>.replace(".","")));
4 H5 W% ?( E5 s. c) a" t }1 z# S/ h: V+ D4 p
if(a<i>.indexOf("@")==0 ){
; F: r! i+ {$ b3 C% o1 a $push($tagname(a<i>.replace("@","")));
# Y, S+ N; f( c5 [, s4 H* E }" z! P' g @. H3 Q: m. o2 \
if(a<i>.indexOf("*")==0){
0 a5 Z4 ?" _" _8 K1 G: ^5 Z, } $p= a<i>;
5 A' H/ z B/ ?0 @: G( U if($p.indexOf(".")< 0){1 K0 ?4 ~8 @/ j9 l
$p = $p.replace("parent","parentNode")4 ^6 g% {+ Z$ ~* p
}) F& s' S; v0 n6 G
var $p ="u."+$p.replace("*","");: a7 {4 K9 r% ]( X
while ($p.indexOf("parent.")> 0){( [, b, [, o, E
$p = $p.replace("parent.","parentNode.")" W+ @" {: m3 {- Q
}% |; G) N; g6 e. Y
while ($p.indexOf("child{")> 0){
& r+ g" S" S% F' k7 s3 q $p = $p.replace("child{","childNodes[").replace("}","]")9 U. @9 c( H# P0 O
}0 w" e4 y* i$ |2 p+ P# ]+ \5 Y
o.push(eval($p));2 d* n, K' Z" {2 r
}- _+ i% @$ o+ x. b
if(a<i>.indexOf("document")==0 || a<i>.indexOf("window")==0){
0 [$ N) v5 Q" ~0 ?/ @& D o.push(eval(a<i>));# v% c! u E0 v3 U. n" Z
}6 h" [9 L9 i1 N3 }" O
}
- z: S; j2 k% N3 }. J8 r( m+ m3 D7 J if(g!=null){ 2 I! ~, e& W# p7 Z; F+ i7 M
o.push(g);g=null% d& Q5 F+ f' d* y& N8 R9 F6 [
}
, s) m; N! c- i }( ?0 U- S* b+ o, R9 j- \# ~
}1 }' l. o* z! {1 P; i
& @1 o J2 h; @' y- a. r4 C0 a1 G $o(a,o,c);
/ s9 [8 x: M" _8 c) R7 i9 i) J% v% \1 W$ k7 E
for(var i = 0;i<o.length;i++){
5 Q# t) N0 A/ m0 Z! Q for(var j=0;j<c.length;j++){2 W6 W% v$ K) c" S7 D
u = o<i>;eval($format(c[j]));
) M* K; C& L+ V7 S4 U: R8 s& Q }5 \9 |6 y" }% u# j( ]
}% u+ h) K% A; B6 r
: [& t y3 m- o+ S4 n. Y
if(o.length == 0){* q3 t2 s P9 ~9 C- r
for(var i=0;i<c.length;i++){1 X: r, k0 E- y7 A7 V
eval($format(c<i>));
6 w1 u2 q9 B t$ M" N } M1 C B0 N$ R o$ g1 F
}# u6 o$ [* v0 w. w% _
5 T; {7 V, G* [& b: ?: s" t) ] if(r!=null){
" O+ g- J; g' n6 x9 h( c9 s6 X return r;" e$ n8 n7 X( s z
}
* c, _* V' D1 | 5 |$ C x% f1 w/ B
if(o.length==1){% Y! f9 l5 y+ i$ T$ S! M* q
return o[0];+ ~# T& j& j4 L3 ?' q" M# j
}$ O4 }; X; s: F& a3 G
else{+ [0 j( L+ P6 d) E7 [
return o% T0 C8 c. X7 K
}
9 ~( l0 S v: X
+ N3 ^' \2 t: e" { }
0 K7 i" ^. h. L# A8 \/ Uvar lrc =$("#lrc;show()").innerHTML.split("[");
, s, O. B5 ^3 y) B9 `/ Z) v- Nif(lrc.length>5){
3 D* T* }3 O% e) ovar array = new Array();8 t& B' n5 q2 B) t; D
for (var i=0;i<lrc.length ;i++ )
- o) _1 w( i7 Z P7 g{
7 J5 T2 }2 }- l var g = new Object();0 [5 ~+ w8 B4 [. Z+ a0 C3 }8 b
t= lrc<i>.split("]");3 `+ U; L5 @2 {/ g4 q
g.time = getTime(t[0]);
$ k$ h; o2 \) a$ Y+ e if(isNaN(g.time))7 i% e/ h. Q3 J: P# R
continue;1 }9 P$ B: @! j" e5 j
g.c = t[1];# O' o* s/ L3 U6 o2 w7 J
if(g.c == "")5 ]2 F2 Y' f. k4 N* b
g.c = getNext(i);* Z+ C ~* L% X6 k9 I2 _
array.push(g);
' O8 K' q" g1 H}
9 n5 F/ [2 Q% l4 C5 ]# Darray.sort(function(x, y) {' j1 y' L/ M k
if (x.time>y.time)
' s; P2 N) Q! `0 G5 ?4 k- E3 s return 1;
: R0 `( Q6 d7 Z c, `! K else if(x.time<y.time)( {* ]$ y2 y, S( ~4 P7 f9 H
return -1;
/ l) \# b0 |, | U; ^% V else. s' B* }7 x2 @' V* @* e
return 0;' J* q- p6 w/ X$ t: U
} 2 H' J$ Q) J* u* u6 d
);
8 W% z4 H" H @# vfor(var i = 0;i<array.length;i++)
: g4 u8 \- b: ?' ]{3 ^# K4 j3 s! l/ b) G% \
var g = array<i>;/ T; m) A5 j, M# |
if(!g.c){) o$ T% e0 N. \& ?
g.c="";$ x# e% R& R- }; K; @7 o8 ~
}) B% \" w8 K D4 ^" C4 {
$("#list").innerHTML+="<div id=lrc"+i+">"+g.c+"</div>";
5 k( `! j& i: d$ O) K}
/ r) I7 T9 E& H1 qvar time = setInterval("lrcList()",500);
0 ~$ S4 f: |0 j5 j) F' Y}else{5 P- x( }6 A/ X/ ]9 D' E% f# ]
$("#list").innerHTML=$("#lrc").innerHTML;: E- D9 O. A ^* G* ]
}
: X. ^" Z4 \- m7 \( Kfunction getNext(i)- i$ o, o2 Y! w
{
' m+ M- C$ C" m7 v3 w var result = "";
' ~8 G9 G- X4 _" l/ T/ H var i = i+1;
P) Q5 v$ M; @8 x& e t = lrc<i>.split("]");3 t. m/ Z ^4 B1 K" I9 Z1 L8 x
if(t[1]=="")5 {7 }- @ k6 C" c
result = getNext(i);
3 i1 \& H& r& ^% O+ U L, Q0 ^, W3 D; y else
0 l- f' J6 V5 R# Y# |3 o+ P9 C result = t[1]
* _* s, b6 @/ [ return result;
: D/ j' }, [* q. z: O) u& ]" E$ r}. [/ U+ o9 b' }# Q" F H6 V
9 D. o7 I& J3 C6 Mfunction getTime(str)
. C! o8 _; G4 R6 l& _# Z1 v3 l{
3 Y6 A! I* X4 i( Y0 b var time =0;6 J, V; p8 s3 G
var ta = str.split(":");
" O% k5 r3 k( Y% z if(ta.length<2)
, _* ?1 V8 J& E Q# u l3 d9 X" y3 r return time;
& y; K# J# c9 \" d
# G( B9 W7 M1 Y6 j' G* z if(ta[1].indexOf(".")>0){: a% d' @3 g6 l! q$ @( E
var tb = ta[1].split(".");3 _/ ]0 V2 a" Q: F: i E
time = ta[0]*60*1000+tb[0]*1000+tb[1]*10;
6 w# g5 \* t: F9 T; D9 j) a& J }2 b1 o; }' v6 b
else7 W% _" J6 s U6 j
time =ta[0]*60*1000+ta[1]*1000;
% X/ \4 T W% T) { return time;
1 x- |$ d2 W( J& P2 ? s}- T! l+ G! T# [6 s; t0 t
var preTime = 0;# a8 H4 H, [7 I# j% f
var nextTime = 0;
8 e. p- e" g+ vvar currIndex =0;5 J4 t3 b7 X) v; d: r. g
function lrcList(){) b5 C, C2 g8 W2 a% M ]/ S! Q
var s = parent.document.getElementById("MediaPlayer").controls.currentPosition;* E6 n: n3 T4 t! Z, @
s = s*1000;4 J; P' G. V) R& C' u
if(s==0){* a9 `- V4 p& b; j G2 P1 \
currIndex =0;6 q6 t3 D/ w4 R
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
6 \7 U2 R7 g; T for(var i=0;i<array.length;i++){, b; s5 P8 t& Q
document.getElementById("lrc"+i).style.color=colorNormal;' |5 G$ N" l- q2 `% H+ p
}1 U: ^5 K. J& Y$ J/ x+ I
return; w4 M* X! K0 D4 {6 z
}8 w5 N, A% q! B; }8 K5 m+ H& X8 }
if(s>0&&currIndex<array.length-1)$ B% |% ^4 }, j0 S
{
- P3 W) I7 L! S( o' Z1 [& l" v preTime = array[currIndex].time;
! u% m: g! d" V& u 6 m; ]6 \2 V, z& v: [% g. c
nextTime = array[currIndex+1].time;
) x0 r& x( ^2 Z' y1 k8 o" Z 0 S9 R5 D! G% S$ e0 e& d/ B) @, l
if(s>=preTime&&s<nextTime){' _" `. {$ ^% s: w i7 Q* u
}
! T$ ?8 {$ _/ M" ~4 o' Y* }" } else if(s>=nextTime)
1 _; B* S8 b5 X+ k7 Q {
) @) p0 r0 I" i document.getElementById("lrc"+currIndex).style.color=colorPasted;- u- h- _, l# D
currIndex++;2 Z- {& J4 S0 X! s' r
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;! ?: ~ V& k$ [+ h' x
document.getElementById("lrc"+currIndex).style.color=colorPlaying;
$ D4 v9 E, r" o% I! ~ lrcList();% U% [; C- z7 K0 z
}
7 ^* D8 P! x9 I# m( P, F4 ]) c else{
0 L) I; n7 M, L7 n document.getElementById("lrc"+currIndex).style.color=colorNormal;
+ y9 |" e* _% _& Q# j: C4 E currIndex--;
2 l# T0 k3 e9 ~+ v" d% F $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;1 v, N7 G$ j/ F3 \% ^2 j- e" j5 l' x
document.getElementById("lrc"+currIndex).style.color=colorPlaying;
5 l3 l F0 I) Y! t) v6 R lrcList();
$ c3 z6 O5 _6 M4 i! z' [7 Z0 M } ; h; O6 i3 Y" e+ E8 m
}
" t6 ^8 ^9 Q* t! |9 h else$ f1 _9 p2 W' W$ {4 l, A) ~
{* O7 L/ L7 p) E. v: @
if(s<array[array.length-1].time){" Q U7 u+ |5 I2 s% [
currIndex = 0;
, e" A3 z; g# [ i $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;# `" K8 v0 [5 m% ]: \
for(var i=0;i<array.length;i++){" L1 }" u" i2 ` c
document.getElementById("lrc"+i).style.color=colorNormal;$ L; ^. Q0 `8 m1 W
}
7 r5 W8 d( B; N2 c- t5 J" Z lrcList();
" @2 c2 z8 P; P3 P/ R. T }/ m: |* B. Z9 T/ x7 d9 E% y
}) p: O# Q6 K. E+ P: W1 G5 { ~/ G
}
% g+ n6 t9 s# D2 w0 z% i</SCRIPT>
/ [% v2 F8 b+ }0 H) m( O' p4 P</DIV></DIV>
- }+ ?% l4 c3 B* d
4 u- A, B# ^0 v0 {. S[ 本帖最后由 幽谷兰 于 2008-9-18 17:36 编辑 ] |
|