|
<DIV id=list>
1 B2 @% g' m x2 ~8 X7 w$ D# o<DIV id=lrc1 style="COLOR: #666666">[wmv=0] http://lzbj.ncedu.net.cn/uploadfile/20083923248279.mp3[/wmv] </DIV>
( M$ n0 G/ h4 y<DIV style="COLOR: #666666">|等一分钟|听到这首歌,觉得它很动听,旋律很优美,很是喜欢,传上来给大家听听。</DIV>" k4 ]* d" Q; n- l
<DIV id=lrc2 style="COLOR: #666666">词曲唱:徐誉滕</DIV>
2 x6 c! k$ P- z0 s9 `5 ^<DIV id=lrc3 style="COLOR: #666666"></DIV>
: b2 I# k1 j; p- U3 r$ ~<DIV id=lrc5 style="COLOR: #666666">如果时间 </DIV>* e# }1 j! A1 x' D# \
<DIV id=lrc6 style="COLOR: #666666">忘记了转 </DIV>
0 s3 a: G3 \8 a0 [3 ^! D |7 q; M' |7 V5 K<DIV id=lrc7 style="COLOR: #666666">忘了带走什么 </DIV>
! X9 \* ]+ a8 ~; d+ Y<DIV id=lrc8 style="COLOR: #666666">你会不会 </DIV>
5 [( y0 L, W+ B' N; _" z<DIV id=lrc9 style="COLOR: #666666">至今停在说爱我的那天 </DIV>
8 s* x. h6 F: ?7 x: K; F<DIV id=lrc10 style="COLOR: #666666">然后在世界的一个角 </DIV>
7 [9 U3 C/ T6 `9 h9 R4 ?<DIV id=lrc11 style="COLOR: #666666">有了一个我们的家 </DIV>: k8 \6 L9 G* W3 m! ?
<DIV id=lrc12 style="COLOR: #666666">你说我的胸膛会让你感到暖 </DIV>
) [; e8 x/ M4 C<DIV id=lrc13 style="COLOR: #666666">如果生命 </DIV>2 t( E2 j8 A1 `
<DIV id=lrc14 style="COLOR: #666666">没有遗憾 </DIV>
8 u# _' |: t: S9 \8 f1 v$ q6 L<DIV id=lrc15 style="COLOR: #666666">没有波澜 </DIV>$ u8 C0 g. ? Q. o. |$ B% Q
<DIV id=lrc16 style="COLOR: #666666">你会不会 </DIV>
7 h- i9 y; h/ D, B5 p+ m8 \0 s C5 q" z B<DIV id=lrc17 style="COLOR: #666666">永远没有说再见的一天 </DIV> u& y3 H. g f9 U; I) x6 _
<DIV id=lrc18 style="COLOR: #666666">可能年少的心太柔软 </DIV>
' z A6 V. o* C. U5 J<DIV id=lrc19 style="COLOR: #666666">经不起风经不起浪 </DIV>
+ i$ x9 s/ G, X2 M) z<DIV id=lrc20 style="COLOR: #666666">若今天的我能回到昨天 </DIV># F& Q9 P( i) F& ~1 ~3 O2 E; z
<DIV id=lrc21 style="COLOR: #666666">我会向自己妥协 </DIV>5 D2 U6 g( f7 Z) c; x( [5 Q
<DIV id=lrc22 style="COLOR: #666666">我在等一分钟 </DIV>5 J" w7 `8 R. D- K6 Y
<DIV id=lrc23 style="COLOR: #666666">或许下一分钟 </DIV>* f3 \, K! N9 H, B' P
<DIV id=lrc24 style="COLOR: #666666">看到你闪躲的眼 </DIV>; h6 x3 D* p" H4 D
<DIV id=lrc25 style="COLOR: #ff3300">我不会让伤心的泪挂满你的脸 </DIV>* F. ^$ q S! y0 v& p
<DIV id=lrc26 style="COLOR: #000000">我在等一分钟 </DIV>1 P. ]0 M6 }+ r# S% v+ o
<DIV id=lrc27 style="COLOR: #000000">或许下一分钟 </DIV>
6 H- ?0 _, r; w6 ], G4 C<DIV id=lrc28 style="COLOR: #000000">能够感觉你也心痛 </DIV>7 ^$ K' G# O6 C2 Z9 P! w
<DIV id=lrc29 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>% L% y8 [ S5 f% _
<DIV id=lrc30 style="COLOR: #000000">如果生命 </DIV>
) c: n# j( |$ u, l& a5 q: |* n+ ~<DIV id=lrc31 style="COLOR: #000000">没有遗憾 </DIV>8 b% C1 @* E/ w) G* i1 ?( n+ a/ g, N8 g
<DIV id=lrc32 style="COLOR: #000000">没有波澜 </DIV>
' N$ W6 U# b# `/ r' t( o1 U<DIV id=lrc33 style="COLOR: #000000">你会不会 </DIV> ]; C# X, } Q* ~ t+ k& O+ b
<DIV id=lrc34 style="COLOR: #000000">永远没有说再见的一天 </DIV>
: k. K% H* q. o5 ]8 A9 u<DIV id=lrc35 style="COLOR: #000000">可能年少的心太柔软 </DIV> w3 }, d0 I% d n5 I: T
<DIV id=lrc36 style="COLOR: #000000">经不起风经不起浪 </DIV>
: Y0 L( l/ N! p1 r% x; L& ^' U m<DIV id=lrc37 style="COLOR: #000000">若今天的我能回到昨天 </DIV>
4 a1 g2 ?9 H! l4 u<DIV id=lrc38 style="COLOR: #000000">我会向自己妥协 </DIV>. u% v7 E h7 L* A6 g
<DIV id=lrc39 style="COLOR: #000000">我在等一分钟 </DIV>
" {# K) y6 Q+ c: F6 B6 d' m0 e<DIV id=lrc40 style="COLOR: #000000">或许下一分钟 </DIV>3 O* V/ G% V# P# d# `: D: ^- j
<DIV id=lrc41 style="COLOR: #000000">看到你闪躲的眼 </DIV>) q+ d" g# d; m( ]- n0 u
<DIV id=lrc42 style="COLOR: #000000">我不会让伤心的泪挂满你的脸 </DIV>/ S/ Q5 a3 I0 S7 e# F7 r. V
<DIV id=lrc43 style="COLOR: #000000">我在等一分钟 </DIV>
& Z. |, C. {4 ]" t+ P0 D( a7 B<DIV id=lrc44 style="COLOR: #000000">或许下一分钟 </DIV>
/ p/ F J" A8 Z( w<DIV id=lrc45 style="COLOR: #000000">能够感觉你也心痛 </DIV>8 Y" ~# A. ~- S1 _" K! r
<DIV id=lrc46 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>1 z5 J: A- k( y
<DIV id=lrc47 style="COLOR: #000000">我在等一分钟 </DIV>8 B4 U$ v; ]% u# x
<DIV id=lrc48 style="COLOR: #000000">或许下一分钟 </DIV>: W$ ^) O' `8 Z# D/ o6 J
<DIV id=lrc49 style="COLOR: #000000">看到你不舍的眼 </DIV>
1 B0 \' _4 {+ o<DIV id=lrc50 style="COLOR: #000000">我会用一个拥抱换取你的转身 </DIV>8 k {2 ]! ^9 I8 G$ D/ y" g
<DIV id=lrc51 style="COLOR: #000000">我在等一分钟 </DIV>2 G4 h F' R: l8 i" R% T% ^
<DIV id=lrc52 style="COLOR: #000000">或许下一分钟 </DIV>7 M/ `) t, v$ O6 h3 z7 W: M" b9 w( C
<DIV id=lrc53 style="COLOR: #000000">如果你真的也心痛 </DIV>
* P* z# S8 D! l) g<DIV id=lrc54 style="COLOR: #000000">我会告诉你我的胸膛依旧暖
' r7 g* ]9 L# H1 Y4 j' J# ^<DIV id=lrc style="DISPLAY: none"></DIV>0 k5 |4 Z' ]% B: r. [$ n
<SCRIPT type=text/javascript>0 t) R7 ]! x; W
document.domain="1ting.com";7 J: m/ k, p# V
var colorPasted="#666666";
* f0 u" Z# e- T8 L' \var colorPlaying="#ff3300";
) n4 x5 u9 ~0 `2 g' V+ }var colorNormal="#000000";& R9 y" t2 f" l. `: ]& @) m8 h
$ = function (a,g){
& v1 K; a2 X* I var o = new Array();
3 z$ T4 o: h( f& q var c = new Array(); 5 ^/ h% P* ]# j% O( Q I
var r;
: O+ _" F% }$ m7 E0 ~* N2 s var u; 1 N. g8 n1 F6 o: Y4 o% w* z
var a = a.split(';');
0 x2 y0 j7 T* u( _& l. E1 L0 J7 o3 d0 n
var e = "keydowns,resize,load,dblclick,click,mouseout,mouseover,mousemove,mouseup,mousedown,inputchange,inputfocus,inputblur".split(",");4 B# n: W* c; h( R6 B
for(var i=0;i<e.length;i++){
0 V% F. T( n7 {7 [ eval(e<i>+" = function (s){eval($event('on"+e<i>.replace("input","")+"'))}")* X8 a; y0 J. p2 c6 L
}
5 n; v4 a( d( {+ U5 J0 t9 C; N9 [* Y, i* H+ z8 q2 S
after = function (t,d,s){
+ V1 q* b, \' b& O $after = function (){: L- V& _% H: _; p& l
var $n=document.createElement(t);3 g0 _: S8 k, X
if(d!=null){ q% Z: D4 j9 T' C {
$n.id=d; # c0 D" }* H+ v+ [. m3 V/ d6 K
}
$ U' b2 ]7 j+ B/ Y % V+ O* X& Q0 R9 J/ t* V
u.insertBefore($n,null)
1 w8 C2 l( F- J$ n- v r = $n;
. m' i% X: B1 A u = $n; 8 G: V Y# q+ ]1 D! I3 c7 Q
}; G1 b4 |7 }) I6 V0 @- ? a
$for(s,"$after")
, o P" \$ W" J! l6 I# ?4 K# C6 S }
5 m$ R2 w8 @7 Y0 k0 }& X! M& h3 ?: ?4 d
show = function (s){+ G, H8 `1 c9 m8 {+ B$ E
$show = function (){9 S) M) w7 x3 n& `
u.style.display!="none" ? style("display:none") : style("display:block") ;% I9 H$ C8 g9 M- S( ~; y
}- _+ r1 u: p' x) o' @3 P
$for(s,"$show")3 _8 W# y9 w& k: H& i. [5 a4 Z
}4 k( }0 {: c) _ D' O9 [
' o( E& A! S! N5 x# Q check = function (t,s){
5 N, `7 t C, O* L1 e3 ] $check = function (){
# b7 \( X$ |0 F; j if(t=="2"){
. T0 Q+ k9 w2 O/ i6 y if(u.checked){; \% n. ^9 A9 U5 V& J8 I: _
u.checked = false;
: r" R G+ j: r, Z6 \" g ~, K4 W, x8 o ? }else{
: W, E8 D* ^0 Z4 y& O6 `; T u.checked = true;
. |) U( v+ j2 t6 _" i; W5 Z+ F$ d }
3 r) o8 d+ L+ q }else{0 D8 @+ q+ c6 o- E! Y: a/ k, M
u.checked = t*1 ;
2 Z* p) }1 m8 b2 G& I& C }6 s( o- D' \/ Q
} ?2 g6 t1 w! K
$for(s,"$check")
3 h7 A" r* Z6 {& R/ j }1 [5 V2 a; D' A% h. L
+ |6 b; s# `/ h( y" X style = function (v,s){
0 h/ P. Q- x" M $style = function (){
4 Q, {0 m2 M' Z2 o! e# F7 S var $n = v.split(",")
) [+ I% ^1 ]! |9 E for (var i=0;i<$n.length;i++ ){5 g3 d' h. R0 C+ K" @) J% _
var $m = $n<i>.split(":")
8 A* C* v& k; ~3 O7 o2 \ eval("u.style."+$m[0]+"='"+$m[1]+"'");
; o: |: z' f1 {8 O O }
' L' T+ w# v. | }
" t8 @+ n! m$ T) R7 e$ @ $for(s,"$style")5 X* T6 I1 G% @% D) c. ?! z" b
}, N. Y& O1 h; _- B4 B
# d5 | ^# j6 x; { value = function (v,s){; t \1 c; r. ^- W' P1 g& |
var $n= $this (v);
+ r) e, T) }& A( H $value = function (){, s1 e2 g: k6 K% T
u.value = $n1 o% j9 M9 c0 l$ ~( n& J
}
' H+ v2 \$ ~* Q6 {+ L $for(s,"$value") 6 J' X5 k1 S$ }' }7 B
}4 R. h9 u, ~( |' d! g6 |# F! }/ H3 x
! J: o" p' z$ `( { Z# F text = function (v,s){
g, V4 }( a) H) G var $n= $this (v);: h1 b' C! [& E
$text = function (){
6 A9 a% ^; L1 \! j( b! c
4 W" A5 I1 p$ f9 d; f$ v4 i u.text = $n
X! f0 Z4 ~# S }9 T7 ~4 s" m( y# [( A" X
$for(s,"$text")
% k8 R/ X+ i- N# k3 h }
3 D' `9 X* k8 j* k
. F, X% D" M& w8 [. Q, K- } innerhtml = function (v,s){' s6 _& z$ ]' L( T
var $n= $this (v);4 x8 C# D, s4 A8 r3 N6 d
$innerhtml = function (){! I, J$ P2 I+ a) A i
u.innerHTML = $n( C4 M. ~* L( z7 l
}4 b' q' d9 \) [; m) N9 m
$for(s,"$innerhtml")
, J7 F$ l+ U2 c1 a: m$ {* y2 O }
# U8 W* ]6 \. }, @) g/ q 0 a: I6 H) D. Z* q4 A8 S
removechild = function (s){8 ]7 b! W- U: f
$removechild = function (){4 ^6 f$ N6 O" B) C$ z
u.parentNode.removeChild(u)( E7 \# q9 g f l* D1 k& f
}
& n& k/ j" w! f $for(s,"$removechild")* y- b" ]* A: [ j
}
0 d- [0 J( E: R9 t% R4 U) W! v, }% h
$this =function(v){
7 K+ ^. T& ^, c/ e" \4 X; w+ ` if(v.indexOf("this") == 0){6 l. i6 m+ x4 d8 Q
return eval(v.replace("this","u"))* y, J/ ]# J8 S! R, o! c
}/ b, H. ~0 p' l; `4 H& Z" N+ C' R
return v;4 ?9 p( a s, L) {0 O3 @5 D
}
& H; l6 ` m% T4 J7 F+ F6 F D$ ]3 Q& ~6 |: o# z2 u5 l
$event = function (s){3 O7 I9 J( R, b" L/ M
var $n ="u."+s+" = function(){$work(this,s);}"
% F5 o! ?1 l" h return $n;, Y- D# U6 I2 d5 R; l |3 u
}
, G" U9 k# T3 p1 M8 U5 X8 X2 A: m! z
$replace = function (s){
$ v/ ]9 P; B( d2 F& p5 b' T$ W. G
& |% Z5 \2 f+ a l: H }% v; J* M) d5 L) K# S2 [. U7 x0 S, R
9 ~1 \) V5 Z& U; a9 C $for = function (s,c){
: [5 O7 W0 y i' T var $n="this."+c+"()" ;
0 C$ W" q( e9 W( Q; i if(s!=null){ I! \! U$ y. Z$ d5 f
var $m =$test(s);4 W6 b6 s; h' E" T: ]' j
for (var i=0;i<$m.length ;i++ ){. Y0 e' c* X6 J3 Z& f
u = $m<i>;8 v* K- j S) s% i4 W# w( Q- d
eval($n);
' F5 K- K. y4 C: x2 h: `/ _ }
' h2 V! v3 x2 {, q; j9 ~6 r }
, a9 T! Q' F& j else{ q# j1 g; o. v7 d0 [) [ h! C
eval($n);5 M! Q/ H( V1 M) b& g5 ~
}$ ~' v1 X! B7 G) x
}
9 j9 G m; S) o6 s$ C ' u6 G) ] I/ e' V
$test = function (a){
& l# C6 G# A& C0 \. o$ f var o = new Array();$o(a.split(';'),o);
1 G5 m. a8 @7 S5 @4 k: r' o2 } ? return o;
% P! G$ x5 z( F! P }% p0 c1 I9 o$ T/ {/ w* j
0 H4 O$ ]; P0 M! }6 [# ` $format = function(s){
% e4 P5 p5 P) S ` while (s.indexOf("'")>0){
* k* c7 [3 B" i. L* m s=s.replace("'","\"");! L+ X8 l& V0 c' J$ b1 G
}
& O: N! Q1 O% {" T4 S; K while (s.indexOf("][")>0){' b0 ^+ S9 D/ |7 f. a
s=s.replace("][","','")/ ?0 I( X, c6 n& Z6 B
}
1 e( d8 D3 {/ r$ V* s' A: y7 k O while (s.indexOf("[")>0){
" \- S0 r4 g8 y, z7 g- }+ D s=s.replace("[","'").replace("]","'")" C. [- l3 l5 u! C2 F; G0 v3 g
} 3 n, r) u3 |' b
return s;* w% p$ s. N2 }3 u$ W- [
}& Z* E9 Z$ T' v$ V
5 S! B# f- o4 B- @1 m5 W8 X1 w $work = function(w,s){0 {. U* i8 r3 i
u=w;eval(s)
, S; c# N$ Z/ a4 w }
- K; Q- F( ~& b/ }" b6 u# Z
( Q0 S5 {$ I$ O2 s5 R* l $id = function (s){. F* d% {/ C6 \% E, x
return document.getElementById(s);
" ]& p* z# I' O/ i% b }
5 _/ ?+ H( a- |: w+ m1 @; u0 ^2 ?7 P1 [
$name = function (s){
: Z L* M7 Y) l! o/ o return document.getElementsByName(s);
. Y( _ d* z1 ^, [' c. Q6 C }
- \8 i' E* |$ `# I2 r& I) k( ]* C* W. ~5 i4 y8 u& i- p
$tagname = function (s){/ N' o7 x7 w. C. Z3 O. S* _. @
return document.getElementsByTagName(s);" @4 c" {: R, C6 k/ x2 Y3 X/ O! F
} i" B @$ _' A, @" K/ |" ?
, G" F4 O0 e! t6 _# d0 H $o = function (a,o,c){& F' H2 k) q: J: N
$push = function (n) {/ q6 k7 f# r2 }3 G& f) A1 t
for (var i=0;i< n.length;i++ ){0 s5 ?% S* |( @0 ^, x) v
o.push(n<i>);% T6 {3 k( q) u/ |; q. Z
}
6 F: q5 P, }$ {8 ]4 ~* Y }
4 z( r& ?0 n8 U& H2 o) j4 q' P for(var i=0;i<a.length;i++){$ A! a; M$ B- b( u1 }' [) q- u
if(a<i>.indexOf("(") >= 0){
1 P7 a0 r: K4 u; [+ e& J c.push(a<i>);3 K" b! b, k0 N# U
}
% z! n; W$ {, i; E/ [ if(a<i>.indexOf("~") > 0){3 x1 M" A- ]( i; [' f
try {
8 b" L7 F* X' u $push(eval(a<i>.replace("#","document.getElementById('").replace(" ~ @","').getElementsByTagName('")+"')"));/ e+ _7 z+ [# ?" l& S+ L
}catch(e)) u' J( L1 Q- i) D1 R% y- ^
{} * |) |0 T8 z: R
}
+ i/ h8 b" V# a4 x+ r/ k else{
3 n5 f0 q5 o' z/ n$ M. x* {, { if(a<i>.indexOf("#")==0){
0 n4 }& }/ L( I7 ?+ K" p o.push($id(a<i>.replace("#","")));
7 M0 F. Q8 x: H( W7 k' F: ]+ z }; v ^- |7 A9 f; v" Y
if(a<i>.indexOf(".")==0){1 |3 M |1 V- `8 E7 B! o
$push($name(a<i>.replace(".","")));& y! Q) M$ z! N- C. A
}; C& h7 h4 e$ |; Q
if(a<i>.indexOf("@")==0 ){ o8 Y! t- u, p6 b( P0 Y6 b$ r; U5 b
$push($tagname(a<i>.replace("@","")));5 X- Y: S$ Z! [ F5 o7 ~% O
}
5 G1 f! _/ u. P; r# s/ t; X if(a<i>.indexOf("*")==0){' q: a; \0 c' A' [9 z3 }7 {
$p= a<i>;
# Q7 e: D# T: u+ i A' z! h if($p.indexOf(".")< 0){
3 P; X+ }0 S Z) a; m $p = $p.replace("parent","parentNode")
" Y5 }0 l( |1 r5 w) G( e }
/ q3 z* I# @/ U A# ~; D var $p ="u."+$p.replace("*","");& M6 i; J& o B3 S
while ($p.indexOf("parent.")> 0){* C4 A: q1 p& u* ^; J/ l
$p = $p.replace("parent.","parentNode."). a/ u- F$ U+ e. |
}
X* [7 y" C& U. I& g4 l while ($p.indexOf("child{")> 0){" b. U+ C1 b* o
$p = $p.replace("child{","childNodes[").replace("}","]")$ s7 ^7 C$ C, [" P* ^
}
* ~8 \/ x; v" }7 O4 Q o.push(eval($p));" J* U; \+ z6 M! Z, U6 S5 j2 k0 h
}
9 B4 S( L8 K) l" C4 g if(a<i>.indexOf("document")==0 || a<i>.indexOf("window")==0){- m* {" D5 U# G; m. W- K
o.push(eval(a<i>));
# C) A6 u! {. n' F ? }9 C! ?" l/ y. t! w6 P9 A) `
}3 F. ]+ y- P, N) w
if(g!=null){ ! j3 I% d# O6 w. B/ O1 _; |3 `
o.push(g);g=null
1 \ ^, Y, n( J/ V }
& S. L$ e& h1 \9 } }
& B+ b5 b( l" K7 t' z' R& L }! Q+ c* {1 b. C0 o6 D& b" l
# ?* W2 T: A* G: C$ J3 w1 r
$o(a,o,c);3 B) a% }1 |! ^* T8 z
) y# v6 a* j1 M+ V# t" \ for(var i = 0;i<o.length;i++){* w3 |1 @% N5 ?
for(var j=0;j<c.length;j++){8 d; o) E6 P5 f8 Q: j* X. t9 T. ^
u = o<i>;eval($format(c[j]));
3 C7 m( g$ @ X }
3 l% r5 @# K) s4 W, c, Z, m }
. ^$ Z) ]# |5 C% e7 o% o$ ?& w' |/ N1 Q/ G; u7 M4 F0 y- h: ^! i
if(o.length == 0){& U& l, o. H, A8 ^( T( I X0 O9 r! ^7 ^
for(var i=0;i<c.length;i++){
3 d/ H$ {* m9 K! K4 b! }" ]2 d5 S3 E eval($format(c<i>));) r& r6 I* B" {6 W( r% Q( g! T
}
# L; W. x+ U* T; a3 a# K/ T }( y1 q! Z# C1 W) b5 t' q* O; X
' K {3 S* A5 f9 }5 V5 W
if(r!=null){, K) b' I/ i5 V
return r;% ^$ m* c. N F7 j/ ~1 x4 Z
}* a' x5 I) Y8 X& t
% A! b. e& P$ i' p
if(o.length==1){- ?! ? Z7 }8 m1 p$ s. v9 W+ D
return o[0];7 F7 _ {, R& v6 Y- H) w$ }
}% b; l" l: l! P) h
else{
. l: e! E) ?! z0 F$ P# Q. s: y+ L return o
- s. n- e4 x; |1 b0 \, B, ` }
- b; e/ x9 a! U
& C) X+ M7 S2 o. T7 f0 D2 a }
; w6 M' K9 C2 ]var lrc =$("#lrc;show()").innerHTML.split("[");
# c( ~9 y/ p! f! Yif(lrc.length>5){
& P- t- i5 Y; t5 Y6 h0 Pvar array = new Array();
/ v& ?" [. C5 g, \' p/ q* `. jfor (var i=0;i<lrc.length ;i++ )) H' R# L* U$ s; U9 T3 C
{( @$ n2 E7 n2 H% ]$ Q
var g = new Object();* @" s0 J- M! ~$ E. ^% b/ \- v: k
t= lrc<i>.split("]");
$ C- l1 i; T* B g.time = getTime(t[0]);
8 [4 @5 j( _6 }+ D; C if(isNaN(g.time))
7 }! d, n4 T; H7 b5 G8 h" a continue;
! j3 M! w# r7 S9 V; b g.c = t[1];
! b( S4 O: o# h2 ~' d5 q if(g.c == ""), i9 S' C! t+ O2 e, p; W
g.c = getNext(i);
# I+ d1 V* F) E7 J8 H/ R' R array.push(g);8 x' j7 _" L8 A5 V6 N. E) k" }' \
}: l- I2 L/ H& i) D
array.sort(function(x, y) {6 q' f% e8 W! e1 L, G
if (x.time>y.time) * O; P# m9 }# C0 z# @# p
return 1;
6 A) x( K0 P5 }, s+ e4 m* ? else if(x.time<y.time)
& G4 O8 J& R( J$ B# F return -1;
/ m* }! S7 f5 Z3 N else& Z7 \9 p. G* d; |; ?# s' l
return 0;
3 I8 [% D6 j% @& e' |4 K }
3 q- Y* Y* C. y) o, S: t);
) {, B% x2 J+ \. L; K3 B. @& Vfor(var i = 0;i<array.length;i++)0 U |4 R& g1 s8 C
{6 U9 H/ O/ |) R% C- W/ Y1 n' E1 r
var g = array<i>;
7 E* W+ w$ M! U5 L if(!g.c){
1 x3 K4 Q5 J0 f! i' ?2 i; v; ? g.c="";- w# J: A* T- ]3 a5 d5 }
}
% U& w6 s* N4 e1 n $("#list").innerHTML+="<div id=lrc"+i+">"+g.c+"</div>";$ j; F- q' U/ P _# l& r
}
3 U. i9 v; Q$ Zvar time = setInterval("lrcList()",500);
. g. L3 b8 D* l}else{
& B/ ]2 Q% e& n. r $("#list").innerHTML=$("#lrc").innerHTML;
9 Y8 P/ }/ n" d+ P, d3 @5 [# ^}
+ S/ {! H+ m4 o, J1 e6 z; F) Yfunction getNext(i)# X6 E; v8 K, Y3 K
{
/ m6 _* c- s- G" p$ U# y var result = "";
4 M' K( ~% i$ Q1 y3 P1 Y var i = i+1;% m C: P# W7 J( \- u
t = lrc<i>.split("]");) E, _" s9 Z0 [- S
if(t[1]=="")
" _# M* }: [1 H& l* T( D result = getNext(i);( N6 R; I" R x2 {& P1 X
else
4 a: C4 n5 E" C8 }' @3 v/ |) q: d" ]6 O result = t[1]! f* i5 m7 L# {
return result;( l) a' p. q& ~0 |
}
|9 _/ x" p) E( H+ p; b/ W, E1 |' h9 k" @- R& r( h4 K$ h" L2 u
function getTime(str)! J! E' C4 o4 Y$ R( @" d, @) H" A
{1 d4 V1 ~/ T" Z" n5 P, p
var time =0;
, y6 O8 P3 z- F4 u7 K( W1 m var ta = str.split(":");6 D4 C5 z5 z- q
if(ta.length<2)/ a4 R6 b; j2 K4 m6 {3 i; d- e
return time;
5 `+ x% H! y j$ k4 z5 z2 d; ~2 L# o4 [' ~: T
if(ta[1].indexOf(".")>0){5 R% z. `: y' H) A; g! q3 i1 v
var tb = ta[1].split(".");
9 Q( w* S5 K l7 ~! ?* U time = ta[0]*60*1000+tb[0]*1000+tb[1]*10;* r) D/ \5 u9 U
}
4 }6 Y/ R0 C: | else3 K+ S5 ~: x' `& i% n
time =ta[0]*60*1000+ta[1]*1000;2 s0 T; P) |( q/ _6 s; o5 @
return time;; S2 T1 W8 ^6 }$ [5 d7 M) i
}
! n0 l9 o3 ?+ i; Svar preTime = 0;
9 n1 e$ u! K4 ?7 vvar nextTime = 0;9 {2 J1 b0 P4 A7 V. g
var currIndex =0;. [+ R1 E3 j' u! k6 A
function lrcList(){
8 b" Z8 M! i$ ^# \0 u/ T var s = parent.document.getElementById("MediaPlayer").controls.currentPosition;% Q _1 h& h0 P4 ?
s = s*1000;4 j6 V( x ?0 r
if(s==0){
+ J% c3 W) }2 q" \ currIndex =0;
6 S% ^! r' s' r0 F $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
; Q0 U+ t; ^9 p/ D4 r for(var i=0;i<array.length;i++){& Q. \) c* w7 f' g/ _
document.getElementById("lrc"+i).style.color=colorNormal;
" O; D0 [2 I- V* }7 D }
# y: E( D. @! A return;
/ y/ f; }! l& V9 `4 p }
7 u( R, S/ G. f, H if(s>0&&currIndex<array.length-1) z( f5 v& e( r3 O# S( G4 c
{
1 Z- m# Y5 f M- v* ?3 x5 E7 r preTime = array[currIndex].time;
# c; j& T4 G+ \; J: M 6 X/ W# x. K5 |; ^0 P
nextTime = array[currIndex+1].time; V) z0 n! L: F9 [: q
3 M* x: x8 R2 i& t- f if(s>=preTime&&s<nextTime){
7 {3 P2 }1 ~4 {* o1 v2 C( U }
% J$ ~& x4 i5 W, C& n$ i else if(s>=nextTime)# R0 o/ w, i* f' a2 i9 J
{
4 m/ | b4 }+ U2 {+ R document.getElementById("lrc"+currIndex).style.color=colorPasted;
& y+ q8 B5 `8 k$ u currIndex++;
* N6 Y7 m H* {; ~+ g& b* j $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
+ z# j$ Y" x; r. r( U- S document.getElementById("lrc"+currIndex).style.color=colorPlaying; R) {3 {* P u; |1 L, `$ U# Z3 E
lrcList();
" H2 F% ? n' a3 E: F }
* P+ C0 q1 z; \* H: i- \; Z else{
0 }8 T) d u/ _. }: x document.getElementById("lrc"+currIndex).style.color=colorNormal;. V' E9 o$ s- y5 O# O9 I
currIndex--;
1 Z- R: X, m* t1 H2 S$ ?; y4 ?8 ` $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;/ o8 ?2 ]7 }$ i2 Z4 S
document.getElementById("lrc"+currIndex).style.color=colorPlaying;
" X+ l3 Z0 S, \' p: p! c$ A. S lrcList();$ P& N/ F+ |( L7 u9 k
} , n- i' [) x, Q" r- ?' z$ y; k! j" R0 q
}
- o5 J, u% W0 W* T else
Y, z& _" Z @ {
1 o! ~9 o M# F! p if(s<array[array.length-1].time){
y. H. d7 ~3 @+ [: A+ }; D currIndex = 0;
: v4 `1 N; E, `/ N9 I $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;" u E3 e+ `4 T
for(var i=0;i<array.length;i++){( {9 O9 ~/ C# d8 r' A. l1 Z
document.getElementById("lrc"+i).style.color=colorNormal;, f/ I: e# z7 ^! E% E5 H. i5 j1 W. V
}. J E( M1 r+ J
lrcList();
4 I! W. [ T2 J1 j3 c: p* m2 S, W }: V, @" h) O- [+ D1 [3 Z$ _
}" f2 V5 V1 D! I; `8 o9 L' U: O* ^
}. ]9 F' F- |7 \+ P
</SCRIPT> z' g& S( h# Q# p4 u" N
</DIV></DIV>
+ N3 i* l& L2 y9 ^/ O% s% d- |+ C i5 m6 ?4 E' w3 |6 b! M
[ 本帖最后由 幽谷兰 于 2008-9-18 17:36 编辑 ] |
|