|
<DIV id=list>& p7 ^9 ?) y9 w0 p
<DIV id=lrc1 style="COLOR: #666666">[wmv=0] http://lzbj.ncedu.net.cn/uploadfile/20083923248279.mp3[/wmv] </DIV>
5 a. k+ ?3 r6 d% s( ` J<DIV style="COLOR: #666666">|等一分钟|听到这首歌,觉得它很动听,旋律很优美,很是喜欢,传上来给大家听听。</DIV>
8 a, O" E7 c6 s& ~; b7 y# h, R<DIV id=lrc2 style="COLOR: #666666">词曲唱:徐誉滕</DIV>3 o* o( Z" h, G
<DIV id=lrc3 style="COLOR: #666666"></DIV>
0 e/ J' w+ B, g<DIV id=lrc5 style="COLOR: #666666">如果时间 </DIV>
& B0 w" q" C# Y B4 ^<DIV id=lrc6 style="COLOR: #666666">忘记了转 </DIV>
3 p( c% S3 T3 r' t5 K" @1 M8 ?<DIV id=lrc7 style="COLOR: #666666">忘了带走什么 </DIV> S0 Q \! K1 O$ }9 ~$ P: _
<DIV id=lrc8 style="COLOR: #666666">你会不会 </DIV>- ^1 t+ s+ A* w0 W$ C8 V
<DIV id=lrc9 style="COLOR: #666666">至今停在说爱我的那天 </DIV>9 O, K6 J% B. k
<DIV id=lrc10 style="COLOR: #666666">然后在世界的一个角 </DIV>+ ~: q) f4 D* Q/ v! Q( P
<DIV id=lrc11 style="COLOR: #666666">有了一个我们的家 </DIV>
8 ^3 f5 J k+ z: R1 `<DIV id=lrc12 style="COLOR: #666666">你说我的胸膛会让你感到暖 </DIV>
% h, p8 e$ i$ F7 X/ [<DIV id=lrc13 style="COLOR: #666666">如果生命 </DIV>0 p1 M8 B/ D- |/ o, n" P; m9 g
<DIV id=lrc14 style="COLOR: #666666">没有遗憾 </DIV>
! H* } x& q, s$ }+ b+ U) M, V2 K<DIV id=lrc15 style="COLOR: #666666">没有波澜 </DIV>
* g+ u2 r. x. ^8 }0 a, A<DIV id=lrc16 style="COLOR: #666666">你会不会 </DIV>
; Y' C! ~/ |0 K* E" a; t<DIV id=lrc17 style="COLOR: #666666">永远没有说再见的一天 </DIV>4 A" ]; H' k J
<DIV id=lrc18 style="COLOR: #666666">可能年少的心太柔软 </DIV>
6 q! j9 d4 H6 N) C<DIV id=lrc19 style="COLOR: #666666">经不起风经不起浪 </DIV>
: W( s7 h! P6 w1 m<DIV id=lrc20 style="COLOR: #666666">若今天的我能回到昨天 </DIV>
9 q6 m* w! s& _) E<DIV id=lrc21 style="COLOR: #666666">我会向自己妥协 </DIV>5 h" a4 j7 W, l) Y# ~& @0 c( f
<DIV id=lrc22 style="COLOR: #666666">我在等一分钟 </DIV>
5 z A) l. f" _<DIV id=lrc23 style="COLOR: #666666">或许下一分钟 </DIV>
+ c6 U: Z/ S0 e, `: j: j<DIV id=lrc24 style="COLOR: #666666">看到你闪躲的眼 </DIV>
* r* f: L# x9 F) s<DIV id=lrc25 style="COLOR: #ff3300">我不会让伤心的泪挂满你的脸 </DIV>
$ }) j1 T& d! ~( J& Q<DIV id=lrc26 style="COLOR: #000000">我在等一分钟 </DIV>
2 E+ o3 ]9 H0 }. p<DIV id=lrc27 style="COLOR: #000000">或许下一分钟 </DIV>
* o2 @3 n( y/ l$ b* H! u<DIV id=lrc28 style="COLOR: #000000">能够感觉你也心痛 </DIV>
" {+ u- x+ W2 q6 @5 |2 x0 T ^<DIV id=lrc29 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>
. d! { P( @5 C1 ?8 i<DIV id=lrc30 style="COLOR: #000000">如果生命 </DIV>
! c, J( H! h0 p- E* @<DIV id=lrc31 style="COLOR: #000000">没有遗憾 </DIV>6 R" k8 _0 u/ ?" Y# \% G; X& ^
<DIV id=lrc32 style="COLOR: #000000">没有波澜 </DIV>
3 e% X( a7 R; V& F- W<DIV id=lrc33 style="COLOR: #000000">你会不会 </DIV>
6 b! X' }/ y0 f y X5 t<DIV id=lrc34 style="COLOR: #000000">永远没有说再见的一天 </DIV>5 G! o" G' `; n
<DIV id=lrc35 style="COLOR: #000000">可能年少的心太柔软 </DIV>( `/ D* \ O: O p3 `7 z
<DIV id=lrc36 style="COLOR: #000000">经不起风经不起浪 </DIV>
, ` Q8 o2 u) h! z4 \2 y( J<DIV id=lrc37 style="COLOR: #000000">若今天的我能回到昨天 </DIV>
$ R; n% K9 ^0 F( H; n$ N5 N<DIV id=lrc38 style="COLOR: #000000">我会向自己妥协 </DIV>
$ _! P- F5 K1 o3 B v2 |<DIV id=lrc39 style="COLOR: #000000">我在等一分钟 </DIV>
8 l. P$ U# i @: e6 J J* @<DIV id=lrc40 style="COLOR: #000000">或许下一分钟 </DIV>$ B* H% w ?& T/ r: F4 ]
<DIV id=lrc41 style="COLOR: #000000">看到你闪躲的眼 </DIV>$ @3 m- |1 h$ s& \) n
<DIV id=lrc42 style="COLOR: #000000">我不会让伤心的泪挂满你的脸 </DIV>- u9 H4 Z+ c* r- m
<DIV id=lrc43 style="COLOR: #000000">我在等一分钟 </DIV>2 s( k6 N/ e5 x/ \- V
<DIV id=lrc44 style="COLOR: #000000">或许下一分钟 </DIV>
, C5 W2 f" ?% ^/ K4 T<DIV id=lrc45 style="COLOR: #000000">能够感觉你也心痛 </DIV>
1 s( H, c3 o! \# i" d# h2 j<DIV id=lrc46 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>. i' z' n$ h, t- o
<DIV id=lrc47 style="COLOR: #000000">我在等一分钟 </DIV>( d4 m& b2 x4 A$ E
<DIV id=lrc48 style="COLOR: #000000">或许下一分钟 </DIV>9 V/ p X/ G0 r4 E5 x
<DIV id=lrc49 style="COLOR: #000000">看到你不舍的眼 </DIV>
" ]( X" {7 r5 S8 G, v' m+ K<DIV id=lrc50 style="COLOR: #000000">我会用一个拥抱换取你的转身 </DIV>
9 {* d- N& l$ ~/ i1 ^8 B<DIV id=lrc51 style="COLOR: #000000">我在等一分钟 </DIV>; i) y! t, G3 z y
<DIV id=lrc52 style="COLOR: #000000">或许下一分钟 </DIV>
5 {+ P4 p- H+ V; i<DIV id=lrc53 style="COLOR: #000000">如果你真的也心痛 </DIV>
0 I/ x& Y8 Y6 C: N+ y4 ` k<DIV id=lrc54 style="COLOR: #000000">我会告诉你我的胸膛依旧暖
: W2 i5 r4 e0 ^- A, W<DIV id=lrc style="DISPLAY: none"></DIV>
( V3 d4 Y' |: d; m<SCRIPT type=text/javascript>
% \/ m/ H" P' l6 I6 O: P% odocument.domain="1ting.com";, b" E, Z3 E; n! [: H
var colorPasted="#666666";
& V1 [. I2 f6 d5 R9 e+ F+ ?: L1 Cvar colorPlaying="#ff3300";
6 B& g3 }% i' u4 R' Z. H5 f8 Ivar colorNormal="#000000";; _8 Q5 r9 X, B7 P9 }
$ = function (a,g){) O( G' W" s7 u6 C; t D
var o = new Array();
8 M1 p7 s/ \: M5 @' y var c = new Array();
7 `& |8 H2 A- W1 p var r; 4 |* @ x$ }' z8 F n8 \" n0 P
var u; , v! h) u! r. t* I
var a = a.split(';'); ; ^9 B9 X+ ?& u2 R" B
% }- L y/ _5 ^
var e = "keydowns,resize,load,dblclick,click,mouseout,mouseover,mousemove,mouseup,mousedown,inputchange,inputfocus,inputblur".split(",");
& @, E+ W5 |1 f6 T# i8 N, ]" ]! Z for(var i=0;i<e.length;i++){
; s) F5 D8 N' Z3 B0 b+ D eval(e<i>+" = function (s){eval($event('on"+e<i>.replace("input","")+"'))}"); |" |: u$ ~2 N& q7 _2 N6 I
}
4 b) y+ s8 V B% x, Q
( K R# p4 J6 W6 ^ after = function (t,d,s){3 Z6 C" L; a. z0 W( M( _" ~
$after = function (){* ]0 [8 T% `. |8 L/ q) D7 [
var $n=document.createElement(t);
% k3 v# S# @% }0 D" t, e if(d!=null){
$ r: I1 X6 J0 @/ I $n.id=d; ) B9 V* R6 g' |6 p! q, B
}: Y$ f* L8 e0 G y9 S
5 p, Y% o" U: W# X( E8 f) t* M u.insertBefore($n,null) / u9 t0 [* ^; T5 i! P' c
r = $n;
# ?9 T2 U; Z4 t7 p( g& y6 M* w u = $n; # f2 Y& l0 z$ K; y
}" W0 j7 A" S2 r( s- |
$for(s,"$after")
& s1 J% z. s0 g }
4 E9 p' b' c1 R- w) b( A
& L& a5 q$ P2 j1 V" E show = function (s){
- v. {; b/ t, d $show = function (){
# V I, H' \* A9 M& w5 E6 j, C$ A: P u.style.display!="none" ? style("display:none") : style("display:block") ;8 Q1 U" Z0 R9 e# k5 f* q: s
}
% d+ e" ~7 ^ K+ S2 ]/ s" p $for(s,"$show")
" x7 u# ^" n6 c) f* D }
+ ~ y+ d5 X# T' V7 V, B+ e# M3 S f* g, m; E% P6 ]
check = function (t,s){
4 v! {( @. C. r( `% W8 n& g $check = function (){
& I% n! E2 e3 j4 t n# N# m! @ if(t=="2"){
3 G$ u4 s. ]- g7 Y: i3 ^( B if(u.checked){
) {8 g/ f3 {1 Y. T u.checked = false;
1 d# N2 a) ~- g& y# O& E }else{# B+ s3 g. H( b
u.checked = true;% x* c/ C! d9 ]/ Z
}
( ?. Y' h' t- r2 Y; F$ R }else{
- k) x& f& ^9 W u.checked = t*1 ;6 i" ?3 Y/ }( X4 s4 z+ m
}
% Z& n2 L% O+ ~7 {, }# Y4 Y }
) I. Y* I# X0 z$ g $for(s,"$check")
; m+ E! C9 h: B; s; N" S }
) M4 L4 |/ V* z* O* ~3 g7 N% O7 E: K
style = function (v,s){
! t7 d+ l" f0 i $style = function (){$ L( P0 Q# P5 g. Z+ n
var $n = v.split(",") & T1 A, |' E8 u& E# b' }- @2 a
for (var i=0;i<$n.length;i++ ){5 @ ?1 f% R' f% s0 b* {4 Y
var $m = $n<i>.split(":") 3 i3 I/ V' M6 C" |/ L
eval("u.style."+$m[0]+"='"+$m[1]+"'");
; f' O) |' l9 O }: o8 i! k: Y ]7 T
}( P" U u1 a8 N
$for(s,"$style")1 a8 o0 C( @0 D' O
}
; o8 c& }4 ^5 N3 j) t* N$ ]) B0 h7 K0 i. v0 \% @
value = function (v,s){
) V. @( v/ y7 d$ C var $n= $this (v);) g5 H9 \ A3 I( `& R. y6 ~
$value = function (){ [* d% a: E. A$ Y
u.value = $n
& i- }! T3 Z4 f# F: z& I }
' X: i# `) B' u! [$ f $for(s,"$value") ) b/ O V- Y g5 M) l9 k/ n) n e T
}) h3 j& m4 }- B# ]2 F
, a3 E5 `6 L. j7 D+ { text = function (v,s){
" n7 w$ R( m) T- e+ M/ E. G K Y var $n= $this (v);5 Y/ j5 G: i) G6 G3 P% H/ B
$text = function (){
, [ F8 `. }0 ] a * v# ^. o. D" B* L' m
u.text = $n" m3 n# p5 L3 t" |
}
1 V! y6 R! _ E2 T5 h) Y $for(s,"$text") 9 T0 L/ n' P5 I
}
( s+ z) [$ R. c* A$ x d1 M* N$ i; j# g# b7 Z) k
innerhtml = function (v,s){( y1 j. H! c/ b% b6 O! [1 `8 O) r
var $n= $this (v);- p' E9 @4 r6 S3 O; X3 D4 d! b/ L1 b, @
$innerhtml = function (){+ m" z# i# R1 B K. I
u.innerHTML = $n1 \7 x: n) N9 J& [ x* g6 a+ `& r/ {
}% ?, ~7 ~! n, s, y, ~
$for(s,"$innerhtml")) d4 p! U F4 L3 B9 V% B% N6 V
}
$ w5 J2 q" C; T9 Y2 E
2 l' p c# G0 R& [; L& X removechild = function (s){
- h) } A( t( k; A $removechild = function (){7 a. }) e" y4 X* |
u.parentNode.removeChild(u)
/ M1 n. f2 T) H3 Z" I% } }
5 G5 i" w4 b5 ~- C $for(s,"$removechild")6 {$ S7 s+ z, z9 G
}
( K9 C9 M! F% E7 J4 M" V
3 S4 Y- d* ~0 v' f1 s$ C $this =function(v){9 ^6 a: l0 h* G/ O
if(v.indexOf("this") == 0){
8 e" ?7 Z" U8 P7 W. x' ]" O return eval(v.replace("this","u"))
7 p |- \6 d" J M4 L+ w& O U/ r }! _' n' T' d! X( R
return v;
6 [% y3 X* b# X: G }
6 N) U% _. i/ z1 I9 J" Z9 h$ {( e/ x2 C" S
$event = function (s){
, N' ]) m9 ~; q; A var $n ="u."+s+" = function(){$work(this,s);}"- E- N% Q* r1 }6 z
return $n;
- D ]1 F: T# ~ }( N, r" e& T1 A# e2 N0 @
! x) _* ~1 ~3 r2 J8 v1 K
$replace = function (s){# o5 w" U8 x1 p0 u
' Y! S# \+ Q1 s- j }; d& u0 Q3 }" j+ D0 ^
, d Q8 c: v# H% u
$for = function (s,c){
! _8 @- V- Q6 Z9 L ]0 j( F var $n="this."+c+"()" ;
i' J% E3 Z' C* a* Q0 g' x if(s!=null){1 `3 I' ^( ?* F- v
var $m =$test(s);
. s' K) t w7 e* ] for (var i=0;i<$m.length ;i++ ){8 M3 y' Q* Q6 x3 p) K9 A( L" p
u = $m<i>;
6 `/ G* g7 {" ~- K2 ^+ |# q5 W' @ eval($n); ]2 h. H0 r9 A: E. U" L
}& S' l# l3 p# g* q& o) z
}$ K5 U; T! Q+ C* d* e' I6 [
else{
9 _3 k# }3 H/ q! \5 g- |7 t A4 v eval($n);
8 C$ h6 a! x' C* ?! |$ k7 x/ X }) \$ ^6 F0 o o% d
}
5 q( |& w G7 M" M8 j 7 ^5 P ]# P! T! r
$test = function (a){
, X2 W* |3 ^ m7 | var o = new Array();$o(a.split(';'),o);
, X4 W, T% _! [6 i return o;, Z5 k. {4 X8 d: \
}" M) C$ h0 R m3 R; ? [4 t( h
4 ?- ]0 q! Q/ k
$format = function(s){
% Z# \' O! w: r4 ]8 Q while (s.indexOf("'")>0){
7 w4 ^- { W, x7 a s=s.replace("'","\"");
0 l$ b3 j+ I4 e }
8 r6 }) J4 r! l) h$ x9 y while (s.indexOf("][")>0){, F$ E# L8 U& e* A2 |, v
s=s.replace("][","','")
6 M8 _% O+ s7 Y1 E3 P, e }
0 O2 B' H/ S9 K while (s.indexOf("[")>0){: V& L# P0 _* P$ A) ~- x8 Y% E
s=s.replace("[","'").replace("]","'"), H1 E/ {! F6 `5 m, W) x( `# S
}
- H( p- _* y- { return s;+ g) K- Z: I* p" j, L" G- O& J
}! ?8 F* S$ c* ?! Y- l5 u
$ P% M7 M7 X+ V# ?, i- p $work = function(w,s){2 n# S' a3 W, K j& _6 E; R+ L$ {
u=w;eval(s)
$ f8 ~; G O2 |8 _8 c }) k6 v, F& [. P
. G# B. W$ L1 N1 n/ m $id = function (s){+ Q. x! F w& o" r! T
return document.getElementById(s);& G9 H, |" Z7 _! ^/ ]+ _/ k+ ?
}
7 z( ]. W; k0 p" J# @5 s$ f$ X: X1 B' n: }- j3 L
$name = function (s){
) V8 s7 ^$ q/ m0 q* ` return document.getElementsByName(s);
+ `9 Q1 O4 B. ~ }' ]/ j8 q# u9 U+ B6 g0 @" q- r% ~% o
; D. b# L, g) x9 c7 y* b $tagname = function (s){9 |2 m3 z. H/ G: x4 X
return document.getElementsByTagName(s);
4 V1 q" N/ ~8 x; _+ S }
! ?" g# P" O6 H8 ?
, ^0 v( t/ f, t+ A: \7 r+ z $o = function (a,o,c){/ }' a' _( w. Y' m
$push = function (n) {
# h, D9 J3 d5 D for (var i=0;i< n.length;i++ ){/ P0 n7 p* h8 o: v! d
o.push(n<i>);/ k k% D' \" O' ~
} 6 c# Q7 U) u5 ^& p4 F" ]/ l; a0 R
}
( Z; ]/ _* c" Q) ~, b* j: B' `2 m9 q for(var i=0;i<a.length;i++){8 ]/ U9 O% a9 n
if(a<i>.indexOf("(") >= 0){
* ^, v3 t$ ~" M z; j c.push(a<i>);
# _% l% A( E2 n" R4 R1 E6 M/ a }
3 J$ k8 n! v4 h if(a<i>.indexOf("~") > 0){
7 ^/ ]) p; L5 e' @- N try {% ^: `( P6 H8 O# q: y4 l/ [, s3 E
$push(eval(a<i>.replace("#","document.getElementById('").replace(" ~ @","').getElementsByTagName('")+"')"));- I# {2 s% \3 R, C
}catch(e)5 K9 C; @2 y: `
{} ; G. y6 A/ w& ?
}
6 Z2 S' ~" q& l2 P W& Z6 m else{3 ~ ], `/ G0 J
if(a<i>.indexOf("#")==0){
6 f; k, ^3 Y% `/ ^6 a7 q o.push($id(a<i>.replace("#","")));, T2 m- L0 j% Y) g* B9 T
} [; m+ Y. p/ {, D
if(a<i>.indexOf(".")==0){% c; C. M+ S* r# a% u* _
$push($name(a<i>.replace(".","")));6 p1 `' y0 \. u4 J6 v8 `
}
! F; j% Z, j# i- I* J& e2 i if(a<i>.indexOf("@")==0 ){5 o8 T; u4 a3 E9 g" R6 L
$push($tagname(a<i>.replace("@","")));' b# r6 K2 ~, T7 U3 B) {7 [* h
}" E" c( I2 T3 R \
if(a<i>.indexOf("*")==0){
2 ?. }# I& B- f; |/ }9 ^5 Y $p= a<i>;0 X2 X4 ?- f0 \
if($p.indexOf(".")< 0){ N% H( ~* n0 U1 s* i! B7 i" M& S E
$p = $p.replace("parent","parentNode")
4 S/ V: }1 Z7 V }$ t0 V) e* @0 V8 ? m
var $p ="u."+$p.replace("*","");
K2 f+ i/ {/ \ B! @ while ($p.indexOf("parent.")> 0){" O, U, y( g! t. a. s7 U% [
$p = $p.replace("parent.","parentNode.")$ L' ?& P; A% k c7 n, S) Q
}9 l5 L. D1 _ i" H3 A0 e7 f! c
while ($p.indexOf("child{")> 0){
' g' j( A/ n$ ^ l" s+ X2 o0 y $p = $p.replace("child{","childNodes[").replace("}","]")
- v2 y. h( D# g( K# t3 }6 ` }3 V9 m( l4 y" ~0 g# i6 z4 [6 |
o.push(eval($p));5 c9 l3 x: k5 U+ ?: A
}" \% J i0 ~7 a9 n
if(a<i>.indexOf("document")==0 || a<i>.indexOf("window")==0){
$ A V6 f) M: j' q2 b, G6 h o.push(eval(a<i>));$ p/ m' b+ h2 h# m8 U1 ?! x) a
}
7 Q% F$ ]5 \; m$ G, \ }! Z% E% w, ^4 @5 E; Q0 C c) a$ E
if(g!=null){ , R0 C# z) w+ v# a0 n& @
o.push(g);g=null
; H( K8 G. s& {$ o. e5 u3 q }
, b( R) W1 i8 y: A }
$ i9 w' g2 o" J# Q }! Y6 V3 B0 w$ H7 p: ~! @# e% N
- k. q% j2 M! ? $o(a,o,c);9 K3 `' B# ]/ ^8 @
8 C8 w) i* e! t2 L) c' e, i1 H5 f for(var i = 0;i<o.length;i++){
1 M8 F: e1 H/ e" `8 Z4 h for(var j=0;j<c.length;j++){8 V/ Q4 l5 o* ]* K
u = o<i>;eval($format(c[j]));$ y J* }1 W* } f' J
}. Q! `& T2 {7 W/ R& f
}; `5 P8 _5 s+ o& }
0 M7 C( K6 {- Y& w, a/ w if(o.length == 0){
/ V7 m# R5 [; V) N# B9 z for(var i=0;i<c.length;i++){
7 Z% Q; K9 q. u' P8 b( f eval($format(c<i>));
/ P' r6 \0 Q# u }) V4 ^, ^% Z+ n1 Q, j
}" g# m% h1 T) F2 S" k1 s
: Z8 J! b4 f# ~) G/ d+ U if(r!=null){/ z% }9 @& Z& `/ N
return r;( q' y+ @) M# w9 o$ u) }
}
! V2 F7 w5 c# P. p2 H
8 I) Q7 k! P' U if(o.length==1){
( v' X9 o6 r1 ^7 l3 f return o[0];
1 ]1 r! l8 v' v9 ?7 l+ A9 F! } } ]% f, I* b9 U. v. r
else{6 ]* }4 k) e3 u
return o! ~: n- k9 o* J6 l
}
+ U+ `3 Q g; K# a 5 x% M6 d6 Y' p7 T
}5 `% Q3 j" r& o' c" V$ f$ X
var lrc =$("#lrc;show()").innerHTML.split("[");- G" N# R. v9 Q) i3 ^3 Q! p& k- B; F5 \
if(lrc.length>5){% ~* O( K. p. a( x3 J: \2 k
var array = new Array();
0 L/ @% a+ O h- w* V0 wfor (var i=0;i<lrc.length ;i++ )
/ @# d& M0 Q, k{
2 R* h5 |2 v2 j6 |3 W var g = new Object();3 u2 y: m7 @: k7 l# P3 S: f
t= lrc<i>.split("]");
& P, n; G0 n- G$ T8 \. U8 y g.time = getTime(t[0]);
, N3 g3 m: Y F if(isNaN(g.time))" @9 B5 P7 D: Q' j" t
continue;, X0 Q. w6 m J
g.c = t[1];
0 f0 I( _ G$ D5 c9 S% \ if(g.c == "")
" l5 l; C6 x0 z, U& Q4 B. l2 ?# z g.c = getNext(i);
, K+ B w; G( G array.push(g);) @: P$ ^6 I$ [* C. \
}
* d3 I! k9 z" [. Farray.sort(function(x, y) {) ]% d6 j8 m& C- m: Y+ ?
if (x.time>y.time)
4 D) ~' n- ?- U! F+ `. j- @ return 1;, X! s6 x5 V) G+ ]# F. H
else if(x.time<y.time)2 F2 }) D/ P0 i
return -1;6 S+ C: z& c1 b/ _6 T# }8 u
else
" m; j K1 L+ Z* m# G! X6 R3 g return 0;& W; a- U8 d% v6 c/ k" Q J
}
6 f0 s- v' ^7 `' T* O0 u);
9 n" u/ w" Y7 ~& |/ lfor(var i = 0;i<array.length;i++) x9 n0 D. }: s: v. o) l
{8 K- N1 y2 v. V* o
var g = array<i>;
" m$ v5 b7 T& |! w" } if(!g.c){
7 L* O4 b9 t h- t/ ~6 E$ j g.c="";5 M g1 h$ C4 f2 Y! D( k7 j6 X
}- l' T" @5 M5 Y, g5 D4 W
$("#list").innerHTML+="<div id=lrc"+i+">"+g.c+"</div>";* c3 ]' c% F _. a
}
q0 j. r! G, d. wvar time = setInterval("lrcList()",500);
4 I6 |( d* H! V8 Q J& u}else{; u" @( t. A- h2 {& E; [; P, R8 M
$("#list").innerHTML=$("#lrc").innerHTML;: g& ~: J- L/ d7 _2 @. Y% i1 u
}) `3 I/ ^1 O, r* r
function getNext(i)
& n9 c2 O* z( g$ w J1 G{
* z+ d. M, W6 q var result = "";
; n6 K$ `6 S+ \ var i = i+1;# P. T2 e, R; R1 |0 _" A: X8 X
t = lrc<i>.split("]");
" v1 [; ]9 J M1 N if(t[1]=="")
9 z- ^, m3 s# R' W2 Z `1 o% p- T result = getNext(i);
+ \$ G( g+ ^ @' G! ` else
$ ]2 T6 {# u# X% [6 D* [ result = t[1]; J% a$ R; P1 m/ [
return result;
3 F0 ~4 f( e0 v+ m3 A3 ^}9 o* M. H3 L# a4 O& _& h
2 J; P0 a# ?4 _" Yfunction getTime(str)3 s! h+ u$ g% ]% D! P
{
: ^! y% H g& o) I, k( z. y var time =0;
) ^% D$ q K" i/ Y% L) } var ta = str.split(":");8 L5 b/ D8 e0 w$ F2 a V# I
if(ta.length<2)2 x4 r! y; g7 K6 \
return time;
$ A- U! O0 b6 z( F2 M& E$ A
; q# f5 u8 u9 f% X* H: U if(ta[1].indexOf(".")>0){; A" s" E/ c2 ~- e
var tb = ta[1].split(".");" F" |: p! j3 W, F5 @
time = ta[0]*60*1000+tb[0]*1000+tb[1]*10;
( o& @ }- l1 v! G# ~' X1 M }6 c' O; K4 M9 E# T$ k' d% X4 N. D
else
0 q! n$ @2 r4 A2 B( W) s time =ta[0]*60*1000+ta[1]*1000;
* O2 e* ~0 E7 T return time;* M; |) P, E: j* S- g c/ o
}
2 {/ B- j: ~2 X' Y! t5 gvar preTime = 0;
8 I8 C: A: F% ivar nextTime = 0;
" y+ D5 O. c2 {1 f4 i$ T$ K* Ovar currIndex =0;- N( A6 k( i) _7 [, C
function lrcList(){/ F8 t( G9 v8 q7 M
var s = parent.document.getElementById("MediaPlayer").controls.currentPosition;
" ^0 X" s" f1 q( O2 C* e- o s = s*1000;' d9 Q7 r7 [% z" `7 k) E+ ?8 \" c
if(s==0){
- c; z2 `$ P! X! t9 i currIndex =0;( {' \; K) s' @
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;; x: F6 k: X( ^2 G, e& K
for(var i=0;i<array.length;i++){
4 K6 s# v" d( C document.getElementById("lrc"+i).style.color=colorNormal;
/ ~3 n. E: Z- R0 [8 h7 m% @) Z }" y- g" {9 y6 | q8 w
return;
% \; f: r/ A1 b* K1 ~: M- n }+ y- u; Q/ p, K4 v( j
if(s>0&&currIndex<array.length-1); z" D* m1 m$ @; L( Z
{
9 K& J$ g! _% f! p7 C preTime = array[currIndex].time;8 m! P$ _( ~ S
# D s# h& f6 D7 G7 ?
nextTime = array[currIndex+1].time;
( @3 a( b8 s1 l) u) ~ / V! t. o- F6 m3 k& r" e$ H
if(s>=preTime&&s<nextTime){
. w: F; _; b, a% {( P, e2 b }5 a3 f- w/ Q' u. Z; ^0 Q
else if(s>=nextTime)
7 o# l: z3 i8 ] {
1 Y' {* k g7 R document.getElementById("lrc"+currIndex).style.color=colorPasted;
! K0 Y' t u$ e% D currIndex++;
4 _) }% _& }3 V( i $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
* q! h* m% e1 ^) l$ ^! u a document.getElementById("lrc"+currIndex).style.color=colorPlaying;
9 _4 G$ P! [+ C% D9 F3 V& B, L lrcList();) p o: K& w6 ^
}( p$ ?- Z) [* W
else{4 |" } `( `# c8 c ?2 |: p
document.getElementById("lrc"+currIndex).style.color=colorNormal;1 p; J, R/ Z- C- r. l$ ?
currIndex--;1 b: i! y. M7 E; ^ U/ [: u/ M
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
& q5 Z, Z2 a# X+ u& s document.getElementById("lrc"+currIndex).style.color=colorPlaying;0 c4 a/ T. P& D7 ?* l; k
lrcList();
/ ?! m% v" d, M1 z% h } ( n# T2 [8 y R& k
}
4 G; Y; G1 W/ ^: N+ e4 A/ k else
$ M: y1 c9 f* t, k {' f0 w5 b/ ^' O- @7 @% w) q
if(s<array[array.length-1].time){& Y: [+ o6 c% K/ Q. k3 W# F9 o! e
currIndex = 0;- X& r. p6 x9 ~/ x
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;& l" I1 Y, ^0 [' J, r. N' Q
for(var i=0;i<array.length;i++){. o6 v9 e+ }1 o: B
document.getElementById("lrc"+i).style.color=colorNormal;4 w ]" R7 a4 ^( ^" H2 `6 u% E
}
+ ?7 O! K4 b6 ^6 [( v. o4 R lrcList();" A, q; g: \( \+ V) ^
}
( a/ v# s3 N: i- A }/ g7 K9 C7 J4 T3 C
}- j0 n% }, K- @; m' ]
</SCRIPT>
0 x) j( k9 e8 H. t3 \</DIV></DIV>. `5 q/ O5 y& z2 k; w
8 x7 _6 n- E$ Q8 b
[ 本帖最后由 幽谷兰 于 2008-9-18 17:36 编辑 ] |
|