|
|
<DIV id=list>5 D* S) u% F* Y* z; v
<DIV id=lrc1 style="COLOR: #666666">[wmv=0] http://lzbj.ncedu.net.cn/uploadfile/20083923248279.mp3[/wmv] </DIV>% G& _# f' j& i/ `' A: S& j
<DIV style="COLOR: #666666">|等一分钟|听到这首歌,觉得它很动听,旋律很优美,很是喜欢,传上来给大家听听。</DIV>
9 M! D* U( O2 Z! g2 S' X<DIV id=lrc2 style="COLOR: #666666">词曲唱:徐誉滕</DIV>
, @% |, g8 b& Z+ o; s5 \' {<DIV id=lrc3 style="COLOR: #666666"></DIV>
1 f7 j- W7 B$ I/ T& @<DIV id=lrc5 style="COLOR: #666666">如果时间 </DIV>4 S: }- A! V$ t/ F2 i1 ?$ V
<DIV id=lrc6 style="COLOR: #666666">忘记了转 </DIV>9 \1 O F8 u6 u$ v
<DIV id=lrc7 style="COLOR: #666666">忘了带走什么 </DIV>5 S" Q' i2 o$ e- n9 Q7 A; ~8 c
<DIV id=lrc8 style="COLOR: #666666">你会不会 </DIV>* h* B. E+ k8 ~1 r$ p
<DIV id=lrc9 style="COLOR: #666666">至今停在说爱我的那天 </DIV>* i+ Q. G5 |# Q' g/ s- S' z
<DIV id=lrc10 style="COLOR: #666666">然后在世界的一个角 </DIV> B' w' _5 ^! ]+ _9 _
<DIV id=lrc11 style="COLOR: #666666">有了一个我们的家 </DIV>
% H! j3 `* I8 T5 l9 d/ T( b+ O<DIV id=lrc12 style="COLOR: #666666">你说我的胸膛会让你感到暖 </DIV>6 ^8 N8 Q3 N+ V1 Q% r- J* O
<DIV id=lrc13 style="COLOR: #666666">如果生命 </DIV>$ m5 q" I% h+ T1 R( j
<DIV id=lrc14 style="COLOR: #666666">没有遗憾 </DIV>
4 w4 A. r7 m9 N q9 M2 e<DIV id=lrc15 style="COLOR: #666666">没有波澜 </DIV>
0 C9 S- ^- ?4 R+ r<DIV id=lrc16 style="COLOR: #666666">你会不会 </DIV>+ o# P6 D5 m, k) n1 i" s9 E2 `. q
<DIV id=lrc17 style="COLOR: #666666">永远没有说再见的一天 </DIV>
+ ?6 Y* ^& B/ o; i$ c# n<DIV id=lrc18 style="COLOR: #666666">可能年少的心太柔软 </DIV>
$ K _; q2 c- L) P<DIV id=lrc19 style="COLOR: #666666">经不起风经不起浪 </DIV>
5 W5 h* I+ e* j! W: _9 p; l( m<DIV id=lrc20 style="COLOR: #666666">若今天的我能回到昨天 </DIV> ~( O' A( B d
<DIV id=lrc21 style="COLOR: #666666">我会向自己妥协 </DIV>0 [! t3 y' j+ @' m
<DIV id=lrc22 style="COLOR: #666666">我在等一分钟 </DIV>. o$ b' F3 |- ]/ `$ c! ]
<DIV id=lrc23 style="COLOR: #666666">或许下一分钟 </DIV>4 m. ^4 m# G8 v, r( L7 T( u
<DIV id=lrc24 style="COLOR: #666666">看到你闪躲的眼 </DIV>
, D0 _2 w/ \1 f* [4 w2 _<DIV id=lrc25 style="COLOR: #ff3300">我不会让伤心的泪挂满你的脸 </DIV>
0 N1 A4 M7 L) W& H. S<DIV id=lrc26 style="COLOR: #000000">我在等一分钟 </DIV>
$ D Q% [; V- A- C! ]<DIV id=lrc27 style="COLOR: #000000">或许下一分钟 </DIV># H p9 V% f/ c
<DIV id=lrc28 style="COLOR: #000000">能够感觉你也心痛 </DIV>
7 ]* n6 q; L$ m* f6 |$ I* O<DIV id=lrc29 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>
+ F" w, w1 S* c3 t* ^6 w<DIV id=lrc30 style="COLOR: #000000">如果生命 </DIV>
h" ~: l& ~+ Z<DIV id=lrc31 style="COLOR: #000000">没有遗憾 </DIV>
2 o n; z/ _( K2 k/ N<DIV id=lrc32 style="COLOR: #000000">没有波澜 </DIV>) F7 B- A3 p3 O5 } U2 e" I* f9 t
<DIV id=lrc33 style="COLOR: #000000">你会不会 </DIV>
; x5 B" f3 D# P/ d<DIV id=lrc34 style="COLOR: #000000">永远没有说再见的一天 </DIV> B/ z/ T) a N. K8 V2 Y
<DIV id=lrc35 style="COLOR: #000000">可能年少的心太柔软 </DIV>4 F: K7 i* ^; D7 M, {
<DIV id=lrc36 style="COLOR: #000000">经不起风经不起浪 </DIV>3 N) L9 K3 `9 H" I2 P
<DIV id=lrc37 style="COLOR: #000000">若今天的我能回到昨天 </DIV>2 s- Z# {5 x: p) h0 e9 K! i8 b
<DIV id=lrc38 style="COLOR: #000000">我会向自己妥协 </DIV>
- x& D# e- r, f2 I5 X* K<DIV id=lrc39 style="COLOR: #000000">我在等一分钟 </DIV> B Q# n6 P* {
<DIV id=lrc40 style="COLOR: #000000">或许下一分钟 </DIV>
* N' w8 x% s B* d# w<DIV id=lrc41 style="COLOR: #000000">看到你闪躲的眼 </DIV>( ?" n+ x( T# t9 e1 O
<DIV id=lrc42 style="COLOR: #000000">我不会让伤心的泪挂满你的脸 </DIV>
) q4 c0 m2 v$ [ u C5 q8 V; }<DIV id=lrc43 style="COLOR: #000000">我在等一分钟 </DIV>
. C" n* n, ^$ G# I+ v" d<DIV id=lrc44 style="COLOR: #000000">或许下一分钟 </DIV>
6 G* r5 S6 s" R6 G$ {<DIV id=lrc45 style="COLOR: #000000">能够感觉你也心痛 </DIV> a$ U) S Q7 \- I3 t3 b
<DIV id=lrc46 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>
$ d2 f- T. ]8 [" r# t) u+ F9 N' c<DIV id=lrc47 style="COLOR: #000000">我在等一分钟 </DIV>
, P; E( u" M+ x4 t$ j0 B<DIV id=lrc48 style="COLOR: #000000">或许下一分钟 </DIV>
. p! p. Z( P- L8 C- \; Z. m1 I<DIV id=lrc49 style="COLOR: #000000">看到你不舍的眼 </DIV>; g! L* Q! z8 p$ [/ k
<DIV id=lrc50 style="COLOR: #000000">我会用一个拥抱换取你的转身 </DIV>+ G: X, W1 W7 `. j% N
<DIV id=lrc51 style="COLOR: #000000">我在等一分钟 </DIV>, V) |" C: T! j: T1 H/ c$ D! ]
<DIV id=lrc52 style="COLOR: #000000">或许下一分钟 </DIV>$ Q' v3 W$ a4 B) m ^4 |7 j
<DIV id=lrc53 style="COLOR: #000000">如果你真的也心痛 </DIV>+ n& f5 a- Z0 J- R) D: j9 p7 C0 o
<DIV id=lrc54 style="COLOR: #000000">我会告诉你我的胸膛依旧暖
$ ?+ e# ^8 K7 Y+ k<DIV id=lrc style="DISPLAY: none"></DIV>
1 l0 ?# I1 n% K" w4 C( o9 q<SCRIPT type=text/javascript>
' w7 S! O* Q+ _. B: ddocument.domain="1ting.com";3 U7 S; _0 L7 } X% o9 D% a! K
var colorPasted="#666666";
0 X. a& A4 R* lvar colorPlaying="#ff3300";
& ^# P+ Q4 ^1 m: ivar colorNormal="#000000";4 S' L2 W3 f" L2 ^+ e7 @
$ = function (a,g){
9 o; y! e A" e0 N) ?8 F* R var o = new Array(); 4 V2 f9 F) O1 I* M" S" ~8 ?
var c = new Array(); , j# L; m7 _6 o; Q! F2 t0 U
var r; . E1 P8 X- G/ `1 f
var u; 6 ?+ r2 D5 ~( V7 R4 h
var a = a.split(';');
) ?- A; q) c) k' M! P3 {
) l- ]" [0 u$ \- s var e = "keydowns,resize,load,dblclick,click,mouseout,mouseover,mousemove,mouseup,mousedown,inputchange,inputfocus,inputblur".split(",");8 T4 _- ?5 ?2 G; C
for(var i=0;i<e.length;i++){
6 y4 z! L# J5 U# o, @8 O5 d. O8 W eval(e<i>+" = function (s){eval($event('on"+e<i>.replace("input","")+"'))}"): w' w* i2 I4 ` x( m3 n% p2 t! O
}% y" m M h8 r# s
) j5 k3 i8 p S7 y# c" R p5 c1 ]
after = function (t,d,s){8 M% x! g, _& k8 {
$after = function (){& s' Y2 q# {5 Y4 ]+ I
var $n=document.createElement(t);
# K6 ~# t6 ~4 H8 v% Y if(d!=null){/ t; u, U! }. r0 R) U
$n.id=d; . M8 d6 j, h I& c6 H
}
( B s0 L) v0 P4 [$ O
# v6 d% |9 M+ ]1 H D6 ? u.insertBefore($n,null)
/ d ]8 n! ^& ~/ J0 z' X r = $n; - h& R3 U/ f& L1 F* Y2 y3 V
u = $n; 9 B E0 m8 Q6 u% i) M3 {" ^; Y
}2 q+ }! |2 g- o- `3 v) z
$for(s,"$after")5 x- l x9 f% T( l# T
}
# \& [- Y. w8 Q3 i5 _, C' p6 n4 k$ P! O/ _
show = function (s){
" k4 F( Z- p8 |* B% X* D/ i) u $show = function (){
1 H+ F [' b; n u.style.display!="none" ? style("display:none") : style("display:block") ;
: j) L8 y/ U" F9 H4 { }2 R( P- O" I+ @0 O% U& V' s& Z
$for(s,"$show")# l" z9 [$ V/ w. _1 f; |
}0 i& K7 k0 u+ W' [
$ {4 y% y+ N' i" m! ?; \& o
check = function (t,s){
2 F: C& s6 o& ]# ^' `, m: s5 ?/ r9 A $check = function (){( \6 ]6 u# m$ ]5 r$ `4 O4 r( m# J
if(t=="2"){
/ |4 A* L% u5 P if(u.checked){! s4 j. l+ s; {2 k8 f( L
u.checked = false;
3 r! N% r. g1 H/ |5 x: } }else{7 i+ ?+ v/ i. f8 D3 M% J
u.checked = true;& h! O4 T* q) |' f' ?3 Q$ @/ I E
}
! u: k6 z$ A6 d; ]( Q" g+ q }else{; q' K( [2 u( f+ J% W0 `3 H
u.checked = t*1 ;
- \0 P8 v+ D: R) H% D# Y }
d! }1 e! f5 @ }
+ n# T' e9 i5 m. h- P% L $for(s,"$check")% c1 M4 n2 [ t0 y0 g
}0 n, {6 Z0 \$ s3 T4 @
$ v/ ^7 q7 `' J+ [0 w/ s
style = function (v,s){' u' A+ p F9 v V" q! _
$style = function (){8 c$ C6 t2 p/ {# L2 V0 f
var $n = v.split(",")
& @* J3 e8 Y$ L9 k0 H5 w6 |+ ?* {% k for (var i=0;i<$n.length;i++ ){
/ X; A5 B7 O% A var $m = $n<i>.split(":")
$ Z: b+ u! R/ l; e- I& Y eval("u.style."+$m[0]+"='"+$m[1]+"'");
) ]4 _/ U. {0 m# i1 _* n }$ L: P+ r/ X4 g# C# X" V
}
8 W d, L. Y4 o2 b% Q9 Q $for(s,"$style")
1 o! o+ x- h& d' | }5 K' B- m3 p$ C! y' X+ n# D7 y+ L* I
9 C1 ^ _/ X. D; i8 S( a value = function (v,s){! t9 u7 }. e2 m; u! a7 }
var $n= $this (v);
; ~& T; K1 K: u0 d $value = function (){
' b. c; w# F+ d' ]) h u.value = $n( \8 p/ J% a* _4 }; d
}4 G, V7 j1 d/ y, v' a/ x
$for(s,"$value")
2 e. a/ y# h+ v) U7 z' G+ P& g1 R }, N1 M8 t: u4 h# Z% g, ]
9 c- i) X' ]# n( r& h2 T
text = function (v,s){
# V6 h- V" j* N* y% n& j var $n= $this (v);( w1 g$ ^: B1 \7 ^
$text = function (){
9 I5 \5 J* C5 d& @; i1 a U
& k9 G# C8 k# D( F: j% @. z u.text = $n* k1 F, @; S! k
}5 i" x5 r+ {) Q( v' n3 Q. c3 {
$for(s,"$text") # c2 M3 {6 @# r
}& v5 ^% z! s- @. m
* U7 Y4 @; s2 g. h
innerhtml = function (v,s){- k6 ?+ X4 K Y
var $n= $this (v);+ y H9 j2 A% R
$innerhtml = function (){
. p9 s/ X- S/ v9 L; o u.innerHTML = $n
2 U2 A; V0 E6 N$ C }
* L$ ?6 U) P' |; j+ u: r! V9 Z) m $for(s,"$innerhtml")
3 L5 }5 Z( M3 V6 _7 N }
0 [1 g3 r5 J5 _8 A# p. W, G
0 j, } x9 v. O9 w5 R$ I removechild = function (s){8 B$ ~. b |' k, _4 o. ?
$removechild = function (){
O9 k, } Y! w6 n7 z u.parentNode.removeChild(u)& s" ^8 k$ d: j' r6 r" |1 J9 L
}
0 w4 K! U r) |. L" A2 N6 f $for(s,"$removechild")4 s3 n9 o5 G l/ O+ U$ h
}
3 I, w/ J& ]. q. B
* q3 X7 O; Y' u $this =function(v){
+ |( j/ q. W3 t3 m! p if(v.indexOf("this") == 0){& C7 B- i* [7 W$ Y9 E. }) |6 l
return eval(v.replace("this","u"))
0 Z- [3 {9 J% y( | }0 q. a$ ~* e$ T ?# ~
return v;
3 v( _8 ?1 J) ~9 Y, {2 u }
& Y1 i/ X9 g0 K! w4 ~% ?$ ^9 T: U3 u! ^7 G1 F( f
$event = function (s){2 L$ ?9 ]4 C8 C! W* s
var $n ="u."+s+" = function(){$work(this,s);}"1 ]; _/ o( }; |( J9 E4 _ c) A/ ^- Y, G3 W
return $n;
( |' M5 x3 T1 `5 G0 v% H }: M( E$ G" w, ]
6 o" f [: t2 V+ [9 t, v7 t% @* Y
$replace = function (s){
& h% U1 K C5 Y) d% P" L( e, o8 x$ l0 d: o7 t) j6 ? V4 W- v
}
3 \0 _' R' k: D+ O: {7 v. g7 i7 E9 B' j4 B* `
$for = function (s,c){9 g" q9 U$ x( a7 m# e
var $n="this."+c+"()" ;
7 e1 o. i7 e- ?/ b: z0 Q9 S7 R if(s!=null){/ ~7 [0 g/ `, N- h3 U+ d
var $m =$test(s);& k. w) a' b! P+ z; e7 f
for (var i=0;i<$m.length ;i++ ){
) D0 K" Z0 y3 T. r$ ], ?" _ u = $m<i>; O4 i+ H# g3 @, D8 w# o2 o
eval($n);! j. x/ s* l% d0 c) x) L/ n. O
}0 Y+ m% O4 w& y! g, a4 M* D) Y5 N$ z7 X
}
! u' ~; f8 E& W7 P else{
+ o" W8 L, P# R1 n" o' y5 T: f eval($n);
0 T6 U4 p' A# @! h k, H% a7 u% R) j( \ }
$ T6 r# V- y9 ~; Q: F }
. r E) g- b& J7 K3 F& @3 I
- K, y) e/ L% R; T% y! G% a( F0 s% v! s7 B $test = function (a){7 ?# ~" Z7 \' P* ~6 a+ c( `
var o = new Array();$o(a.split(';'),o);
5 V8 J. K; L) t5 Z$ ?' |2 G return o;
- q2 O! t+ S5 A/ F }% g. ]6 B, c/ N
8 o5 a" t( V- r) q0 _7 W* o $format = function(s){) T1 X9 \% a. X1 I8 i
while (s.indexOf("'")>0){% u" l- `3 E( l0 J! E
s=s.replace("'","\"");: _8 k3 ^( k( h w8 q
}& H: n, |5 L0 e
while (s.indexOf("][")>0){* k1 z% D7 K5 K: h5 d; d+ _
s=s.replace("][","','")
2 v& y' d6 Q, D+ J" Z7 y4 C }; i+ o+ P: M8 T" ^( s. O' R+ B! Y9 J
while (s.indexOf("[")>0){: C4 s! y- r7 b6 B2 f4 d
s=s.replace("[","'").replace("]","'")8 Z3 E* e ^) G( K) Y
}
/ _8 s! y. `, h# @: ? return s;
9 b) n l6 R3 d8 e' D D$ ?, i" | }: }# B: y) [* |* J8 Z
3 r' E3 g: s0 z/ R& K0 W
$work = function(w,s){
* X7 A& V# g! ~ u=w;eval(s)$ Z1 v X& r& H K P2 r& e, o) w
}! r G l( ]* p* O. @- @- X8 f( X
, K0 T, L+ V# w/ u! W
$id = function (s){
$ T! l7 y) U. W return document.getElementById(s);
2 X& ~% J' E+ b: {; L }) Z% ]0 B( S+ Y5 v( b, e
# d% O" l% i8 O1 W% v3 G% q$ G) O! d
$name = function (s){; T4 x8 e8 N" m. g* D# r
return document.getElementsByName(s);3 \0 J% q; l: `, ^2 ]% P0 X) Z
}
% d8 ~% K% j- D1 l; I! _: F1 K, N0 P1 ?1 }( O1 C- [
$tagname = function (s){, r* l( i) s. d9 s9 u k9 e" H
return document.getElementsByTagName(s);, [" G: }! n0 r& p/ }5 Z4 j- e( t
}
4 V+ K: X' I/ v& l; z8 a
: Z- B1 q; Z: x* y' O $o = function (a,o,c){1 a. D( w2 l1 |/ C) ^; G
$push = function (n) {
' g, m( ^: B$ M% x. B" `( q for (var i=0;i< n.length;i++ ){
9 i! T2 V+ D' _) [; e o.push(n<i>);
! ~* c$ _5 u' ^( L9 v/ q, a: X }
+ k z, s3 f( X* t: I% O2 c; A0 J, B2 V }
" P. Z! d, s4 V/ j8 Y7 S for(var i=0;i<a.length;i++){2 d! o6 `# c* p; e, |- t
if(a<i>.indexOf("(") >= 0){, }; a' h/ Q- ?7 c; Q: C! m
c.push(a<i>);5 u a& ]( m4 f! G" I: b3 N
}
, ^* G! `5 o7 U# b if(a<i>.indexOf("~") > 0){
1 e. C0 O2 c. @; x try {) t4 v' w4 f, h" }' I9 v
$push(eval(a<i>.replace("#","document.getElementById('").replace(" ~ @","').getElementsByTagName('")+"')"));+ M. f/ z& V+ f, w2 y
}catch(e)
' n! `% X( M6 _ {} 8 a# y$ |8 M4 \9 {0 I
}
' Z& o; g) F2 W' \ else{
X1 v O/ G8 L1 w1 m6 j if(a<i>.indexOf("#")==0){9 A! S+ x- \' s3 t2 [
o.push($id(a<i>.replace("#","")));# o3 E, d2 R* u2 ?
}/ `$ V" x, v1 j9 [/ U$ v% M+ q
if(a<i>.indexOf(".")==0){. }3 x6 ]# \) f$ z2 z
$push($name(a<i>.replace(".","")));
+ Q$ @7 J/ T# i6 Q6 | }5 @4 Z1 P7 J: y% p5 _* s
if(a<i>.indexOf("@")==0 ){/ B9 a' w% [% h, j# p+ ^
$push($tagname(a<i>.replace("@","")));5 @/ Q& {! d" @8 Q& E$ u
}$ j6 p9 k, {# O! K3 a
if(a<i>.indexOf("*")==0){9 z5 d" ~; y( e0 W, c8 T/ t
$p= a<i>;2 \. l+ i, v* v3 A
if($p.indexOf(".")< 0){/ m; ?9 j7 K+ L- `2 ]
$p = $p.replace("parent","parentNode")- m9 r6 N& M6 y R* l
}, @5 f/ T, H+ ^ U0 w
var $p ="u."+$p.replace("*","");
5 z6 j$ q8 }' v0 i4 _ while ($p.indexOf("parent.")> 0){
8 `) Q, I) g( B$ g6 ?9 G- o0 N $p = $p.replace("parent.","parentNode.")
: p( g6 g* `1 N" H" B X }- [" c. y* V6 Z; k Q
while ($p.indexOf("child{")> 0){
; v/ |2 J) o+ c7 Y$ {* ? C1 E! e $p = $p.replace("child{","childNodes[").replace("}","]")7 E8 @# g! Z, y( T: X' g
}5 k3 a ~' I7 b l S7 M# h
o.push(eval($p));
3 }% `4 R8 s$ p, |. J+ ~: J8 y }
) b C( n5 @ Z! J$ I1 S# R if(a<i>.indexOf("document")==0 || a<i>.indexOf("window")==0){
# ^+ b* g6 ]* k2 S4 x! D$ X o.push(eval(a<i>));5 s$ ]: |2 q+ X. M9 g
}
" F7 a. J' w2 c4 H$ b3 o }- E! i: T8 z J
if(g!=null){
5 ~1 [% j1 j0 D4 E: W' A% T o.push(g);g=null3 c5 d! t1 G& E* C6 p& r2 s
}
+ C. m8 L) Q: s2 q: e4 F }' D5 Z% P7 T% ?
}& {7 W4 z7 H" E7 V/ w
. d% [& H! I7 c# d; W9 T$ M
$o(a,o,c);( w( \) O' M$ u: G
. h9 X) }8 ~8 h( h for(var i = 0;i<o.length;i++){5 e" n5 Q [' K
for(var j=0;j<c.length;j++){
$ k! G* X4 S+ j( K# Z+ @! }$ M u = o<i>;eval($format(c[j]));+ H6 o7 }9 a2 k6 z% Q5 R% ~+ u) c( [
}
9 y, v9 X; ?" z- b" N }
" T& G O4 q& O
$ d4 H7 [3 @1 P3 {% h if(o.length == 0){$ A9 R% k, f2 R. @$ E1 T
for(var i=0;i<c.length;i++){
2 o3 Q7 T& X! U _. h2 d0 y; s eval($format(c<i>));
: u {& |# g6 L2 @8 y: t }. ~' M3 B) b; M- {7 [$ E
}
# y0 X: C. m" r; ] I. H+ N5 r$ A' D
if(r!=null){
a- K0 j/ t3 `* \# W8 `$ w- B return r;% V' n0 H0 G- i, {" i
}
) X2 K8 y+ A+ Z( T& D) W1 n; X 3 H. E6 x3 Z, Q9 e, u
if(o.length==1){! L) B- w$ r) r4 \6 b& Q5 R
return o[0];2 U" U4 d- W, S. C9 C( }
}4 R' I. ~9 R' d) X$ w3 q
else{5 ~* c5 C9 B2 L
return o, }, j( @4 J9 W
}
- \% k6 S9 M' V# j1 M# y* ], O, ^ 0 q5 ^! P9 ` E$ d) o
}
1 S6 D r/ L( ~: C# U5 A% a5 gvar lrc =$("#lrc;show()").innerHTML.split("[");
1 v5 ]: t7 Z+ J3 L/ E( Xif(lrc.length>5){
; O4 R, s1 f n% Qvar array = new Array();6 ]! W6 o$ F. \2 v. G: R5 d
for (var i=0;i<lrc.length ;i++ )
' D0 d# i4 y/ N8 @ i1 K{; k3 Q- B2 j, ^; Y2 ?- ?
var g = new Object();
/ M4 x2 k* Z# O" S t= lrc<i>.split("]");0 C# b4 v. r/ v- i0 n' ^
g.time = getTime(t[0]);- U3 a* D8 }4 s" p4 M3 d V$ h
if(isNaN(g.time))
2 [2 G- A- e! C- `. `2 u& \, }* J continue;
0 k( i% Q& U8 G8 t) b g.c = t[1];
3 ~5 I# C7 g7 z1 u" X8 s0 j- H5 x if(g.c == "")
( {! Y! p% G* s+ J L$ L g.c = getNext(i);2 |9 x% J9 g; ^. Y' W+ x6 ?" e
array.push(g);6 H! n1 W, a% {( c# \
}/ z, C5 b7 W. s% s
array.sort(function(x, y) {
2 g2 I V4 O6 D/ F if (x.time>y.time) # P8 W: O( G" U3 Z* y8 \- c& ^8 I
return 1;
1 ~- m1 [9 S: P5 ~1 M else if(x.time<y.time)2 E- N- g4 d1 x+ ]6 P% h
return -1;
' r% Q! F- S: h) j else T& E' K* M" \' ?4 ?" _9 f: N$ c& e A
return 0;
# o/ ~# a/ F9 y, u }
6 m1 J' ]7 g1 D4 x3 N# V5 r, O- e; `0 i);' C8 y- F( ?8 { C
for(var i = 0;i<array.length;i++)
- z8 H9 Q& @0 h/ [6 M1 w& {+ ~" O{
9 c5 A$ n1 X3 ?! L7 `; Z var g = array<i>;! N( b( W; F5 F8 f* Q
if(!g.c){
! x. n, v2 g; l) x. y' ]- _3 H' i g.c="";2 {4 m8 f* ~0 I: R
}4 L" Q j# q4 H6 V' P3 ~
$("#list").innerHTML+="<div id=lrc"+i+">"+g.c+"</div>";: X5 J3 z! p. O( a2 k
}
: K T8 \# k! y6 R7 L( Jvar time = setInterval("lrcList()",500); . W' A* |* L+ }7 r3 N
}else{7 U2 c0 z# T- P- n+ w2 ?- ~
$("#list").innerHTML=$("#lrc").innerHTML;* m& z2 c2 s$ U- ^3 y* B N1 I6 z3 `
}
2 z7 o3 f3 {! M# Efunction getNext(i)
8 S$ u5 O0 g, r" S& }5 w0 o{+ U5 Y6 t) e* ^2 n
var result = "";7 A. p8 t: M2 O) q
var i = i+1;( Y6 X) W1 V, E( H$ X2 j* l
t = lrc<i>.split("]");
: C5 q" C+ j" E. i' N- i3 t9 _ if(t[1]=="")+ a4 K+ ?$ a. r; L) ]
result = getNext(i);: [" I$ D1 s& I6 R2 ^! B$ b5 p
else
; e) i+ c& v3 s result = t[1]
2 U0 H7 P0 H( o7 \2 _ return result;
( H9 B+ d8 E" d8 B: w}
2 m2 _' O4 M( A1 J! K4 [3 ]- I1 M# ]6 S; p* Q! H/ T5 g; n
function getTime(str)
+ ?2 ]/ J+ T u' j* I2 H9 u: _( F{8 E- n9 o# y6 }
var time =0;
/ X" S! F# [) i0 j; a2 d# X1 \( U var ta = str.split(":");; Z$ m* f+ Y8 s, Y: H" e- }" T
if(ta.length<2)
* k6 H& |3 M1 w' Q0 y return time;
; z! `$ O) P- J9 q; y7 y& y' T, g% t
if(ta[1].indexOf(".")>0){
1 m, \8 f! _3 [2 n. u+ [9 f+ _ var tb = ta[1].split(".");
$ b5 k. ^! q/ d! z' ?' ? time = ta[0]*60*1000+tb[0]*1000+tb[1]*10;
8 P* g" _" X* i }
2 U/ m# Y( [% S/ Z else Z+ ^" N/ S: }; S+ {' E( ]! H
time =ta[0]*60*1000+ta[1]*1000;
4 b4 R( t6 R( T% r! U$ u1 e return time;
$ B, Y; ?, H+ T" T}
, A# I6 M# t- L8 V" ^# qvar preTime = 0;
; e6 c, T2 m/ }* T6 Mvar nextTime = 0;7 t, h k1 b! I
var currIndex =0;" ?; S9 ~2 V% l! W }% c
function lrcList(){
2 J0 u1 r/ ~; _- ^' Y, C/ g! n var s = parent.document.getElementById("MediaPlayer").controls.currentPosition;% U' e! O) W( Z! H+ h
s = s*1000;% ?- Y- B( W& ]& j& b B5 _
if(s==0){
: I/ b- d8 \, P& i! G currIndex =0;& b8 E8 X2 L' L5 {" I+ g7 G& R
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30; M J8 [9 j0 ~" @. I6 B7 g
for(var i=0;i<array.length;i++){% m* S/ r# H+ P# f3 X& k
document.getElementById("lrc"+i).style.color=colorNormal;- I# O. a) ]6 M; a$ a
}
) Z3 D4 Q! ?. V7 E; A K6 o return;
/ Y. L' ~; e9 p* n$ C/ h }1 r7 c' @5 g( G& ?/ y' L
if(s>0&&currIndex<array.length-1)' `* [! U% F! K6 h E8 x% g: K0 f& j
{
& m7 a* J( Q6 m1 M preTime = array[currIndex].time;
2 o0 a4 _% l/ A) Z0 g + k! n* v2 S' }8 J7 ~
nextTime = array[currIndex+1].time;% N. F; \4 ~0 Z7 l: O
" ~, x- ]3 |1 s1 B' A0 |; R
if(s>=preTime&&s<nextTime){
8 q$ e1 ^- I9 E) W( \1 [4 _ }- }& t: J5 X7 |" e! w* W
else if(s>=nextTime)
& x5 b- ]2 ?) K {" d1 F7 `9 p: m. x% r) a
document.getElementById("lrc"+currIndex).style.color=colorPasted;" L' p9 a* _. o; `8 O5 ] ~
currIndex++;/ G) n/ h7 X% w- b1 d$ j% P6 i6 Y
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30; D2 T8 ~ s$ }' O* ^
document.getElementById("lrc"+currIndex).style.color=colorPlaying;
4 o, h/ h6 S" X4 r# ]/ ~) A2 } lrcList();8 }; q5 v5 O, u$ G4 o
}
& K! X+ v- z3 S @& T1 B else{
1 g: x: y0 Q k& g* X S5 t% P document.getElementById("lrc"+currIndex).style.color=colorNormal;
9 N5 c/ A7 r; K5 h currIndex--;/ H! O" d1 {5 Q$ Q+ s8 B& |. c5 a
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;% d6 Z+ _& P7 l7 ]. s
document.getElementById("lrc"+currIndex).style.color=colorPlaying;
2 W g. w; o! O) p lrcList();& W: r8 A' B) z8 i- ^$ X' ^
}
' s$ R: R1 `, D- E; ~ }
. h/ Q7 L/ ~4 j& J( z0 Q else
. y, _$ i) y7 h5 h4 {5 B {
! t9 |$ F" \! l if(s<array[array.length-1].time){
& B6 q% e4 \) Z: u* l currIndex = 0;
0 \% e W+ p$ k) O! B" X( L $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;# t# ~% M! [; e M! g! t) c8 M
for(var i=0;i<array.length;i++){! `0 _1 e* L1 T9 x& H
document.getElementById("lrc"+i).style.color=colorNormal;. ?- r* b& n5 u# N# q9 q% ~
}
. v* ] R. j4 W- T a! A lrcList();
' S$ M2 A: U: N7 Y. y( K z M }
% _+ o; C; C( `$ |+ F' K( O } t2 q1 Y/ r/ W# Z
}
% G' H2 y( P! ^" D* o8 m8 g</SCRIPT>
9 P& R7 J& b, v* n2 |+ ?7 W1 ~+ Y</DIV></DIV>
) W; ~6 ~/ y5 e M% Y
0 u" I; g' ~/ E4 A! l5 n; _5 o[ 本帖最后由 幽谷兰 于 2008-9-18 17:36 编辑 ] |
|