|
|
<DIV id=list>
0 `# e# u3 ]; W, X1 R<DIV id=lrc1 style="COLOR: #666666">[wmv=0] http://lzbj.ncedu.net.cn/uploadfile/20083923248279.mp3[/wmv] </DIV>: p& X# }+ Z' W+ x- L' q9 L( P9 K
<DIV style="COLOR: #666666">|等一分钟|听到这首歌,觉得它很动听,旋律很优美,很是喜欢,传上来给大家听听。</DIV>
3 U |8 W- J5 C% Z<DIV id=lrc2 style="COLOR: #666666">词曲唱:徐誉滕</DIV>
8 c+ M I2 x. M, U3 w<DIV id=lrc3 style="COLOR: #666666"></DIV>* Z( S- @/ `* k7 r
<DIV id=lrc5 style="COLOR: #666666">如果时间 </DIV>
4 z! b; S) T/ F1 v, p) b8 J% J$ y<DIV id=lrc6 style="COLOR: #666666">忘记了转 </DIV>% `& C6 x- H# d9 \
<DIV id=lrc7 style="COLOR: #666666">忘了带走什么 </DIV>
6 r0 X) e9 B) S4 u5 @3 f<DIV id=lrc8 style="COLOR: #666666">你会不会 </DIV>0 K, j. |: @9 I# `9 ^
<DIV id=lrc9 style="COLOR: #666666">至今停在说爱我的那天 </DIV>
3 i- L- b y& d+ o, Y+ V% \/ g<DIV id=lrc10 style="COLOR: #666666">然后在世界的一个角 </DIV>
& V% ^; B* I% Z& e& t, V+ F3 u x<DIV id=lrc11 style="COLOR: #666666">有了一个我们的家 </DIV>( Z, ?$ g7 R/ ?$ D
<DIV id=lrc12 style="COLOR: #666666">你说我的胸膛会让你感到暖 </DIV>5 F" m8 [: ]4 }7 ?5 ~% N6 c* @
<DIV id=lrc13 style="COLOR: #666666">如果生命 </DIV>
8 y3 Z% Q/ o) U8 t+ F+ F- }# `, \" B<DIV id=lrc14 style="COLOR: #666666">没有遗憾 </DIV>
9 [6 {5 d) f, q! j<DIV id=lrc15 style="COLOR: #666666">没有波澜 </DIV>
# J; S# c) D3 z1 t/ \# P6 m- P<DIV id=lrc16 style="COLOR: #666666">你会不会 </DIV>+ P y) V) B5 H/ u2 |
<DIV id=lrc17 style="COLOR: #666666">永远没有说再见的一天 </DIV>
$ v; f0 c7 m' C<DIV id=lrc18 style="COLOR: #666666">可能年少的心太柔软 </DIV>0 N3 t/ g J9 o1 ?1 p0 s3 z
<DIV id=lrc19 style="COLOR: #666666">经不起风经不起浪 </DIV>
: h* ~1 e. f* N<DIV id=lrc20 style="COLOR: #666666">若今天的我能回到昨天 </DIV>, f& D$ n( y" {" p
<DIV id=lrc21 style="COLOR: #666666">我会向自己妥协 </DIV>
1 U5 \: ^( W, l5 J+ x& ?<DIV id=lrc22 style="COLOR: #666666">我在等一分钟 </DIV>4 K4 x9 _4 t+ s# G4 v5 u
<DIV id=lrc23 style="COLOR: #666666">或许下一分钟 </DIV>
5 c5 e, D$ y7 k2 q6 Y<DIV id=lrc24 style="COLOR: #666666">看到你闪躲的眼 </DIV>
3 s- ^4 R; ]4 X& ~, [<DIV id=lrc25 style="COLOR: #ff3300">我不会让伤心的泪挂满你的脸 </DIV>
9 v4 o$ B# J! N C. L( H<DIV id=lrc26 style="COLOR: #000000">我在等一分钟 </DIV>
5 Y- Z" s8 _% E0 m [6 x+ M<DIV id=lrc27 style="COLOR: #000000">或许下一分钟 </DIV>
/ V7 M+ v8 Q- b2 i& r<DIV id=lrc28 style="COLOR: #000000">能够感觉你也心痛 </DIV>
6 i" p& ~& b* S$ g" F<DIV id=lrc29 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>
4 z, x3 Z% v( a3 P: i6 q<DIV id=lrc30 style="COLOR: #000000">如果生命 </DIV>, e! a! P4 u' j5 l) [ m6 \
<DIV id=lrc31 style="COLOR: #000000">没有遗憾 </DIV>
. y4 V$ b1 B/ C% o5 Q3 S<DIV id=lrc32 style="COLOR: #000000">没有波澜 </DIV>1 G" C( m/ M# b3 B9 z
<DIV id=lrc33 style="COLOR: #000000">你会不会 </DIV>
+ p ~. T) o4 A<DIV id=lrc34 style="COLOR: #000000">永远没有说再见的一天 </DIV>
4 `- \4 K/ K' o& W( g; n0 f9 D<DIV id=lrc35 style="COLOR: #000000">可能年少的心太柔软 </DIV>
2 e; L0 P( a% S# |6 S" e/ q8 R8 u' j<DIV id=lrc36 style="COLOR: #000000">经不起风经不起浪 </DIV>
4 T+ A6 y/ ~2 [<DIV id=lrc37 style="COLOR: #000000">若今天的我能回到昨天 </DIV> p D4 @) o- ^1 n) w( N3 \
<DIV id=lrc38 style="COLOR: #000000">我会向自己妥协 </DIV>1 W3 W( {0 g( ?* Z% X* A3 T
<DIV id=lrc39 style="COLOR: #000000">我在等一分钟 </DIV>+ C: ]0 n9 q# B# C# V' X
<DIV id=lrc40 style="COLOR: #000000">或许下一分钟 </DIV>. z0 r q e- [% e2 v- J7 G- V
<DIV id=lrc41 style="COLOR: #000000">看到你闪躲的眼 </DIV>- p* F+ d- m; M2 ^3 O+ C3 \+ w
<DIV id=lrc42 style="COLOR: #000000">我不会让伤心的泪挂满你的脸 </DIV>
3 N. F& f( |& D0 g& @6 _( c" P<DIV id=lrc43 style="COLOR: #000000">我在等一分钟 </DIV>0 l6 m% |/ T3 P6 m( C% @$ Y
<DIV id=lrc44 style="COLOR: #000000">或许下一分钟 </DIV>
3 ]; V2 U; ]) L6 [ H# h<DIV id=lrc45 style="COLOR: #000000">能够感觉你也心痛 </DIV>6 |7 K- w% u1 ]3 z) w2 X- H! V
<DIV id=lrc46 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>- b# L* ^" R2 O V' ]9 t
<DIV id=lrc47 style="COLOR: #000000">我在等一分钟 </DIV>/ E1 ?& p3 }; U7 T8 b4 a1 Z# j
<DIV id=lrc48 style="COLOR: #000000">或许下一分钟 </DIV>9 w- q& e7 K Q& }9 v+ w
<DIV id=lrc49 style="COLOR: #000000">看到你不舍的眼 </DIV>
9 k6 _3 Y) h) I<DIV id=lrc50 style="COLOR: #000000">我会用一个拥抱换取你的转身 </DIV>
K# N1 j8 T' w4 f7 b<DIV id=lrc51 style="COLOR: #000000">我在等一分钟 </DIV>
* n g3 Z( r4 I6 i5 Z# C<DIV id=lrc52 style="COLOR: #000000">或许下一分钟 </DIV>
" z* {3 ?/ h0 Q' Y& w I<DIV id=lrc53 style="COLOR: #000000">如果你真的也心痛 </DIV>. k; W9 I' \" K0 P# c+ v
<DIV id=lrc54 style="COLOR: #000000">我会告诉你我的胸膛依旧暖 3 v% v* e/ t0 }" }
<DIV id=lrc style="DISPLAY: none"></DIV>
7 D0 Z; w" v* U* ?+ l3 }! K$ k6 H<SCRIPT type=text/javascript>2 x( h, l7 q) V' Z
document.domain="1ting.com";
% U# e7 O! d" _: wvar colorPasted="#666666";5 h) T. K. q$ q9 s1 s. a
var colorPlaying="#ff3300";4 C' ^) A* l ^0 _1 m
var colorNormal="#000000";% D& d* [% t+ [) W: R
$ = function (a,g){0 ~; M7 I$ E4 U) g0 e
var o = new Array(); & n+ r' `5 P0 D+ D6 Q7 e
var c = new Array(); 6 @# n2 S* B0 [" v3 |* X
var r; 3 \& {6 _8 i5 p+ O
var u; 7 a9 K4 K" z7 v7 {8 `% f3 k3 q
var a = a.split(';');
' m% v8 Y: U+ ~' i! t8 D1 c8 v. ^: j6 X/ H v5 ]
var e = "keydowns,resize,load,dblclick,click,mouseout,mouseover,mousemove,mouseup,mousedown,inputchange,inputfocus,inputblur".split(",");
0 y1 I4 C# Z3 r% y$ Y2 Y for(var i=0;i<e.length;i++){
, w4 J) d6 H" C+ q eval(e<i>+" = function (s){eval($event('on"+e<i>.replace("input","")+"'))}"). i7 V1 O$ x! R+ ?
}
5 v, Y9 n* ~7 |& T1 Y& j
& ]; G; _1 f, B# e& O- p6 s after = function (t,d,s){1 A4 D' Y( M9 P3 j$ h3 V
$after = function (){! V1 r" A8 v: F
var $n=document.createElement(t);# P2 w1 ?/ K- q" q, N" P
if(d!=null){
$ c0 S: k- v Z5 Y- q' p $n.id=d;
# [: T* Q, }9 B' [' ]* q5 c9 w }
; p7 }, o7 B" @4 g7 q 8 N$ `( ~* I! g# R& l
u.insertBefore($n,null) 0 L: K, Z; A" X
r = $n; ( c, d. l! R' x/ l: I% Q
u = $n;
3 ?) G2 y, ]$ ~, i6 M }/ V5 S: H* F5 T1 ]
$for(s,"$after")
, x5 }8 t" E! L. A }# Z( ]7 q' j# \0 p7 t
5 c8 t+ ~2 U$ v7 {7 A( q$ m% {
show = function (s){* L, c2 E6 ?: _% n" w' M7 V
$show = function (){% J' H! i4 k; w: U* R
u.style.display!="none" ? style("display:none") : style("display:block") ;7 V+ |9 [4 \$ h4 b
}7 e& z5 x8 p; e9 ~1 Q# }
$for(s,"$show")
& z( @- U! C) H3 I }
- i- G: R! G9 }6 p( s; R
: K- {4 k* K8 C check = function (t,s){ C$ {& S" [& e9 k# o: @5 H" ?
$check = function (){) e/ o; f3 q) j& Y0 A4 Y
if(t=="2"){# ^- K2 E' H N) z+ @- ^/ V) H# J
if(u.checked){
1 R0 C$ W" W1 M3 E6 A9 h7 }( X u.checked = false;0 d; e# v' F# b/ c
}else{) |2 u7 Q% j+ z# m
u.checked = true;
& t5 g0 H. \2 Q& f }
" G* j+ m7 K" m9 ~+ P4 S1 U8 D }else{
; u. I7 l( f( f" E$ { u.checked = t*1 ;
% p5 t0 j: z, p% D }
* n( Y" ~3 f/ j' i6 a# c }
8 R7 L: y0 V, `" E/ h( o $for(s,"$check")* K+ A: \9 @6 q: G. |! Q
}( l' c4 X, e- e5 Y, c$ j T' ~
8 @/ U. @5 r8 }+ a# Z6 v$ o5 H
style = function (v,s){; y8 W2 N- K1 b D; {$ m
$style = function (){
# y' X. u1 c& L U7 t% Z. J var $n = v.split(",")
( O' ]1 G; j! c! h$ ]' ]+ M( \ for (var i=0;i<$n.length;i++ ){/ B) h( z, I; o, T% ]1 U3 g
var $m = $n<i>.split(":")
3 M9 `7 W3 I9 ?- } eval("u.style."+$m[0]+"='"+$m[1]+"'");
( R X. c+ g5 J. } }" ^7 m, p* d+ b/ L& t
}% n5 t' K1 @8 q' L
$for(s,"$style")( ` l% I1 D+ H0 E1 D& N) O
}! S, B7 B; Q5 i
- Q* _; F$ `7 [2 R A8 n3 I
value = function (v,s){
* F; Y2 c1 y5 u% _( ~0 D. [7 n var $n= $this (v);
) g1 e+ V' g' i' ?5 ]3 |1 b+ k $value = function (){$ v9 ^/ s- ?" z4 q2 m, s5 [
u.value = $n3 O( S1 s1 Q' n
}
4 ^1 W f. H. } $for(s,"$value")
! R- x+ W$ ~1 A* Y' K }
9 F$ S, y/ d. ?7 ~' P5 `" j
$ Y5 Q9 Q- Y6 M* O& [3 z text = function (v,s){
% h) a1 [' M9 ?7 q9 K4 N var $n= $this (v);8 a% s& Y5 S7 B! V
$text = function (){! Z# N8 I/ ]' V' ?$ V( H5 w
- `9 X, ^* _: w9 ?1 Z: j( F
u.text = $n
1 H. B5 w' x' K- v }' F; f; m' [4 k) @
$for(s,"$text")
6 |+ j, ^( c( F: z8 r4 \/ u }% ^* i. ]' ~' y! ?
. S$ p5 ^9 N; `9 S( H# G) u0 M innerhtml = function (v,s){
6 m9 a' y r( b) Y var $n= $this (v);
6 ^* d- y! r, A $innerhtml = function (){
9 A3 ]; s6 h H. j0 q6 ^ u.innerHTML = $n
" E1 B- d3 e5 [- x }
5 {) Z, z. v# x! g4 x $for(s,"$innerhtml")
/ ~- m3 l* i, Q }
# e7 G$ @2 t# H' W0 l
. Z5 ]. q* `0 Z* X# c removechild = function (s){ q1 \6 }3 n) `
$removechild = function (){
, e+ c1 P( l! x& Y) V0 a6 O; \: P& v% Q u.parentNode.removeChild(u)
3 c( ^) m6 x6 D' ]1 | s+ v. M0 u }
" w$ T. `3 \+ G2 V' @. i $for(s,"$removechild") u _6 \* j) e/ p+ ~; x
}( Q$ y) f5 h1 Y& V
8 T9 c7 X, X. S. N; U $this =function(v){8 N. Y7 }& z) }$ S$ U
if(v.indexOf("this") == 0){
5 t" A0 n7 P1 o, q return eval(v.replace("this","u"))6 U$ [: y0 g; j* b7 y
}( E' w! o0 U% y2 d
return v;
# ]' g& ~& c7 i7 d }8 K6 c' K7 ?0 N, d6 t" w
- ^5 R) @5 j" u9 C
$event = function (s){& W* N, T, g4 r k2 @
var $n ="u."+s+" = function(){$work(this,s);}"9 Z% q8 m! j6 W/ B
return $n;
/ |% y4 k1 V& ?" M$ @ W+ O }, B/ I4 G, Y3 J: a0 \1 a
1 U' G* h+ O$ ^) [1 v5 a& W8 o
$replace = function (s){
/ F: c& T/ @& t) E( y* m/ ~9 ~% D$ E4 |7 {$ Q+ m) q% T
}- Z; b; i! V1 S- [1 ~
2 t7 M0 W/ X3 @1 E$ o9 d! G: ` $for = function (s,c){6 P6 ~0 g1 B9 x% S I, M
var $n="this."+c+"()" ;3 e, _8 A$ v$ d( i
if(s!=null){: |( i: S5 E/ `6 K7 A# R
var $m =$test(s);
- E1 [! H [5 Z L' V8 }9 n for (var i=0;i<$m.length ;i++ ){8 Q9 L) F9 r, K; Y u
u = $m<i>;$ @+ n) y$ p! A5 c
eval($n);6 ^/ }9 E, @7 y# V- c4 C9 z3 M
} D9 _' c- V! Q6 f0 f* M. p! ]
}
6 f3 }+ S* G0 L else{) _" T, ^$ R2 _0 d, [* I8 N
eval($n);
$ n& V% @% \3 O$ K" d }) U4 @7 i5 }- ~8 B2 F$ Z% ^) n; u$ q- ]- Y
}
+ U/ n# n6 N9 v
3 o0 w! a! P) C $test = function (a){
% p# P# g( Q7 x( h7 a- S8 L v var o = new Array();$o(a.split(';'),o);
# y. y# \% l# k7 m( x return o;
5 `- w0 ?) E9 M1 n1 Y2 }4 Y3 a' m }
& A; w, w7 C+ F: g; M& N4 {5 @: p% Y
$format = function(s){8 A2 y# |9 u; P& y
while (s.indexOf("'")>0){; L( X% Q: y" B+ y6 F3 G n& R! N
s=s.replace("'","\"");
- ^/ _; T5 ?. m* L( y' S8 @ }7 c0 J" T- B% b4 R# V, @- O/ S; ^
while (s.indexOf("][")>0){5 V6 v" @0 i5 g. `. F& r6 M( t
s=s.replace("][","','"); P6 }! R/ ?8 v% c: P
}
( ^5 q0 I" T; _( g0 t x& t while (s.indexOf("[")>0){
; C* `, V# g; ?4 m0 \ s=s.replace("[","'").replace("]","'")
7 t: C/ _( P+ t& {9 g9 [& v }
& q* \1 D0 k7 c& L3 Q$ c return s;
2 P; M& k( x% f }
w1 q9 H- H3 q# R- y8 \
# M/ P: X& v4 q+ e7 h: P9 [ $work = function(w,s){
: w" P n2 w7 R7 U1 Q u=w;eval(s)/ c N9 M+ P' K' n5 C* ~ m
}3 m2 R6 y" ~" m" {3 m5 l. m
, G, A6 T3 i Q: \7 |0 ~0 i $id = function (s){, @ T; b) h) k' C& n4 Y( x
return document.getElementById(s);
! R/ p6 W0 [' R1 @ }2 f# m( v) q4 d- o6 b* I8 \$ L3 {
4 K, q& J# q `' K. _* N4 ^
$name = function (s){
3 {$ n5 ~; T' u. B- D return document.getElementsByName(s);
1 o; C/ `/ P! j6 X }
* {* q4 K0 E5 d T5 e7 c3 l' E& [8 {) L
$tagname = function (s){: ^7 F" @1 `( a* c+ t: U r- o
return document.getElementsByTagName(s);
2 ~6 y( I$ c# C; M. a% S: X8 { }* S+ e* V1 J, E' L9 S
9 K& V a# v4 W n7 F1 i $o = function (a,o,c){
) a% e3 G$ W9 j4 ^' C/ w $push = function (n) {% K3 `, p* v! e }& {. G, y
for (var i=0;i< n.length;i++ ){
5 {: }' r( q- A' @& N o.push(n<i>);
5 ^) `6 }* R5 j9 U; J( s }
0 \- W- J1 W" o- e* n3 }' W }6 ?+ J1 x! \) r( G% b7 L
for(var i=0;i<a.length;i++){: {$ O5 {/ i7 F2 r+ J
if(a<i>.indexOf("(") >= 0){
% l+ w/ D) |% N8 Z c.push(a<i>);2 H1 U/ t1 c+ ?+ K# ~' p! N: h" T
}
1 _& L4 i4 e. T& j) [5 C if(a<i>.indexOf("~") > 0){5 s5 y8 e) q5 j# P( R
try {
, G/ N- a5 J1 H/ r $push(eval(a<i>.replace("#","document.getElementById('").replace(" ~ @","').getElementsByTagName('")+"')"));$ ~6 y! x0 n' ]
}catch(e)% z3 J0 O( u0 _$ L
{}
) I! L0 g# u4 r' A* d/ A9 C }- X" b% ]+ S" }% Y& E+ ~$ G- ]
else{
( {) l% u4 N4 U/ W if(a<i>.indexOf("#")==0){
- e6 P% h$ y2 b+ C3 z o.push($id(a<i>.replace("#","")));
5 F$ C! V, ~) _! N( D$ K- n! u }
, N9 K% ], N6 @$ V4 e9 } if(a<i>.indexOf(".")==0){; M: w+ \, H, U) z8 t7 \: L! @
$push($name(a<i>.replace(".","")));7 P! i q; s1 R( z7 r+ T; r
}
6 X' D% N4 W* X" w if(a<i>.indexOf("@")==0 ){
4 L3 q7 A$ t' ^ $push($tagname(a<i>.replace("@","")));8 w: L0 p$ Z W: ~: r' K
}
# z/ \0 i5 K8 h _' C8 J! J6 q if(a<i>.indexOf("*")==0){
C& Q- m# y# f9 S$ T0 o4 P( W $p= a<i>;
o) [( N* t; b' s if($p.indexOf(".")< 0){
* H) |( P6 R) P/ m6 N9 A $p = $p.replace("parent","parentNode")
! \9 m7 u4 }( A1 | }
" I0 u$ \6 D% A }& L k1 \) J" ` var $p ="u."+$p.replace("*","");
- E4 E& D" l3 K; {$ w while ($p.indexOf("parent.")> 0){
4 o+ s) I% _, ` $p = $p.replace("parent.","parentNode.")
( c% m. V1 K1 K: Q' P5 j7 J7 r }: J& f, a& W# E' n
while ($p.indexOf("child{")> 0){4 h6 ]2 h4 ~9 x/ c6 D; V, v g7 T4 J
$p = $p.replace("child{","childNodes[").replace("}","]")" g( y0 \$ k/ ~2 a% ~& v/ B) C
}# K X2 _% g6 k* W6 K# `% [
o.push(eval($p));2 j+ u1 j3 w- v% _
}
0 y5 k' ]8 o1 D if(a<i>.indexOf("document")==0 || a<i>.indexOf("window")==0){
9 Z8 x8 `7 Z& D! K o.push(eval(a<i>));
4 c# s+ p( c' q) H }0 {! L$ `5 B" V
}
4 g; S+ N/ h6 l5 n$ z; X if(g!=null){
8 V% L& }3 b) F2 m6 _: C o.push(g);g=null
# U4 e3 _/ m7 h }
" t: y( z) I$ O' J }: F! k2 `7 b0 a* H+ q" Z
}# f) X1 s& v# F! b6 X
) o& i+ @8 P, W $o(a,o,c);
: p1 q1 {/ z: R) K* m8 N; C) t) T0 ?, d' C0 j% x
for(var i = 0;i<o.length;i++){
# d% _6 F- i! r( d9 R& \ for(var j=0;j<c.length;j++){
4 T- b0 E- S* l u = o<i>;eval($format(c[j])); B+ F* M# E+ _' v8 K! ^% X
}
8 n& J& W' a4 {% J- e6 t }6 L$ H! F4 V- F2 n3 y
9 N* E+ w" X) K; g if(o.length == 0){
: k4 H/ O7 _4 j. R, ~4 n* v for(var i=0;i<c.length;i++){ @% \# q% x0 O# X3 v: H! a
eval($format(c<i>));) I5 A+ b0 n# x) Q6 }0 {
}
W9 V8 K- D/ m8 s }% x% l7 `! x% g: s$ P* b& ?0 o
$ b/ \4 ?: @( n& \' `5 t# C if(r!=null){
S' D- V5 G, j8 J Q8 N3 m return r;
; t# ?1 @6 R" C5 v# v* |$ C }
3 N' {4 G, k' [% [- P $ c u7 b( ?/ Q% Z
if(o.length==1){6 k6 p- j" F# u8 B7 I
return o[0];/ v! ]; V! c4 [9 V# p
}) H0 \! L+ Q8 C5 k, O
else{# T8 \' |, O ?# a: H
return o; T& \3 c) i/ a4 W- ^, E8 k) \
} 9 }# I7 W U, N4 Y1 E. C
; V) N2 a& h& { L3 I0 t+ Q }
: }' n! S0 r0 J, d: h! ivar lrc =$("#lrc;show()").innerHTML.split("[");
7 F& E8 p# E( @if(lrc.length>5){
! z+ K- K9 x9 @* jvar array = new Array();
) _+ U( P; |4 Z, U( `) ~! {for (var i=0;i<lrc.length ;i++ )
' d" U8 X( y- @$ S" A{' \ \7 h5 k0 C
var g = new Object();
2 B1 n/ Q1 W# f) ~ t= lrc<i>.split("]");
( f; P/ j/ z7 L1 Q, U g.time = getTime(t[0]);
+ i3 F# w3 w, t if(isNaN(g.time))4 ^- S! N2 q3 S4 Q5 ^8 n8 k+ K, b
continue;
; ?5 H/ O! s* b: F g.c = t[1];0 |1 I, k+ N4 A
if(g.c == "") {* i7 Y0 s6 y0 A+ g0 J) G& z2 {
g.c = getNext(i); j% E6 m4 c y1 q# u) O# E
array.push(g);: G8 u/ R$ e8 Y& _
}4 }1 m* c- f7 c& ]; ^1 z% Q
array.sort(function(x, y) {0 X, @# Z S; O7 V% P2 ?
if (x.time>y.time)
9 v: t" F/ i+ [' r2 c return 1;$ l, `& y& V' P2 l
else if(x.time<y.time)& j, @5 [2 x; {) I+ x
return -1;. |" _- J* }9 C; v# O: H
else
) M" b" c; |8 u% ? return 0;
/ J6 j/ Y X% w* }# p+ [ }
0 e% e! r) K+ [' e);
! t/ l: t, `$ w# X9 d3 Tfor(var i = 0;i<array.length;i++)
1 G2 O3 T) E6 ]: V" U{
( H, B8 F* Y) j( Y( e var g = array<i>;
) B. A/ x" i1 A& Q( I8 U9 J' H if(!g.c){7 Q9 g* |# W) v! K7 B+ @4 I
g.c="";. x* @: s1 g3 J" b' H7 Q c
}
; ^1 `& F# R/ D) J $("#list").innerHTML+="<div id=lrc"+i+">"+g.c+"</div>";2 a- |0 l9 Z( c$ |
}' f- `, K6 u: U4 v* e2 L
var time = setInterval("lrcList()",500); D5 O9 ~2 |7 ]( M2 n. ~% x. E
}else{
1 n m; O5 X% e G, ?4 F $("#list").innerHTML=$("#lrc").innerHTML;' d h! b8 e" M2 z
}
7 k6 l L6 K# nfunction getNext(i)
% J ?" A! L! U{- n, J5 v7 E0 y( j1 A. r
var result = "";
2 \) ~9 H4 p, O, c0 X/ B var i = i+1;
; }4 r9 o0 I0 d! v& y8 ]" e t = lrc<i>.split("]");
$ _: @& a, l- @9 M. j+ a: s if(t[1]=="")
; z/ P- M2 J9 V$ s) q result = getNext(i);
- `( X* c [* E& d+ c7 N else
: @+ V1 T4 ^8 o; z0 ^( _. y* q$ r result = t[1]
3 i% Q5 H: p; ^ return result;- p8 S) {: X I) ]
}
3 V+ s# {: `1 C) E- G: e
, d+ V/ a( q4 k, S" g/ P, Afunction getTime(str): x9 e8 c [5 a- \1 G' f
{
7 ~8 ~4 M( s' |0 L! ` var time =0;
! y- C- ]4 Q3 R( Y0 N2 ?% Z var ta = str.split(":");: ]0 D9 W: w9 F( M& @# k) S
if(ta.length<2)0 N: s2 r" S8 f1 o5 z1 y3 u6 @
return time;
9 U) ~7 }0 a& k+ M; \7 O' G" L3 d7 I- t! t2 L6 c2 ?- h3 }
if(ta[1].indexOf(".")>0){
' e0 U, @/ G9 h' ^5 h/ o var tb = ta[1].split(".");1 A* T+ o4 j" C6 G* c; ~. N
time = ta[0]*60*1000+tb[0]*1000+tb[1]*10;
- f0 ~; h. x3 ]2 b& c3 D }, x( b0 I( O- I- z
else
3 K( {) V/ z- W, w+ I9 o/ b5 H, E7 t" N time =ta[0]*60*1000+ta[1]*1000;' W& ]& j) E- L9 I9 F
return time;, t, H. D% s/ J3 t: C: o: @
}
0 B4 G1 ~! V1 j, W% \# Lvar preTime = 0;
3 T* Q# c0 a2 h! Ovar nextTime = 0;
: A' N S4 v: G! Mvar currIndex =0;
( `, [ Q# t$ A2 x. Q- \+ l' Q/ Zfunction lrcList(){
* r# _1 `# j/ m% { var s = parent.document.getElementById("MediaPlayer").controls.currentPosition;1 p& A y% [+ Z, J7 O
s = s*1000;
% ]0 {! l( T+ |8 u if(s==0){0 X F' n; }6 G' h
currIndex =0;
5 v! f$ E# d+ {" Q' b K* U3 p $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;1 I: [* V* n# L8 O9 [
for(var i=0;i<array.length;i++){" G! ]- |- L G) J# i
document.getElementById("lrc"+i).style.color=colorNormal;
. M7 o( z" j5 ], c& J. x( o) j3 O }( z* @& T! V5 g1 L
return;
! i5 S0 b4 v0 C2 _/ w }
+ a6 J$ L8 c7 t; J( T0 ~ if(s>0&&currIndex<array.length-1)
+ ?) j% e/ W1 B/ c& J { 3 F5 O/ k# a! P; s% g
preTime = array[currIndex].time;. Y4 t5 u. L2 {( N6 |4 {4 c
; V( c/ _0 \. I* }
nextTime = array[currIndex+1].time;( r. m' Z1 e" T- Y5 k, S- w2 H, Z
+ y) Z0 ^& d$ S$ v, z5 b if(s>=preTime&&s<nextTime){
. b5 R$ }5 M4 r }4 H8 b. |* J! }& C* {, `2 D# }- U B
else if(s>=nextTime)
( T/ s. ?0 P+ t8 C/ c2 J. a) Y" J8 z {
) W) m( N1 F0 r: S( a" I document.getElementById("lrc"+currIndex).style.color=colorPasted;3 l2 i8 x! L) b* G5 M1 K# E. _; j
currIndex++;
9 A) l. ~. h6 Y; Q8 A' J $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;3 F3 n4 E7 W$ m- |# F% U' @9 G
document.getElementById("lrc"+currIndex).style.color=colorPlaying;
* L# j% i+ `. \$ a4 s4 \ lrcList();
/ x; _* B r# \& q+ z, } }6 M# r& Q$ Y2 E7 B
else{
( ?, c2 q. Y. P( U, U7 z7 Q9 Y$ _ document.getElementById("lrc"+currIndex).style.color=colorNormal;" k4 p" X" S" C- |& c( V0 q
currIndex--;
9 J. S' \3 G. M& B $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;/ L: ^- q# X: N, R& F
document.getElementById("lrc"+currIndex).style.color=colorPlaying;
) v# `% @1 p' } lrcList();
* g8 q8 `4 v8 B5 e' Y } ! R$ u4 ?4 T; P: g# s. p! s
}
1 U: a, J g+ ?' k# b& F else9 d+ f8 y, M0 J$ G# B5 i
{
- G0 L0 M8 s1 L/ g: V/ m if(s<array[array.length-1].time){
5 _: }* z2 Q& w5 K0 Y0 _* D' y currIndex = 0;
$ J8 a5 C) L- u4 ?2 _ $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
( n7 V# N( k& x for(var i=0;i<array.length;i++){
5 E- ~( n5 R+ H5 g5 o5 |* P" N document.getElementById("lrc"+i).style.color=colorNormal;* b7 e4 e0 i4 I
}8 _, E) X( V" k" N9 i
lrcList();
6 g% ` X+ w. C! v5 M7 h }
* u7 v7 t6 O9 T" O( ?3 \5 ? }
- f# c, p! E' g- S/ I}
$ r$ W% o# s+ u+ @- d- Q! @; v) U3 A</SCRIPT>
4 V3 U1 `: C8 T</DIV></DIV>
& |2 E& G. k+ B/ W1 G
1 J- \- S7 @; @: D' e8 l[ 本帖最后由 幽谷兰 于 2008-9-18 17:36 编辑 ] |
|