|
|
<DIV id=list>- s, g+ b% T! r5 S
<DIV id=lrc1 style="COLOR: #666666">[wmv=0] http://lzbj.ncedu.net.cn/uploadfile/20083923248279.mp3[/wmv] </DIV>3 ^$ I0 M- {2 j9 N7 I5 x/ o* c
<DIV style="COLOR: #666666">|等一分钟|听到这首歌,觉得它很动听,旋律很优美,很是喜欢,传上来给大家听听。</DIV>0 o# y1 m7 M5 N2 E! [
<DIV id=lrc2 style="COLOR: #666666">词曲唱:徐誉滕</DIV>" J0 @( ?' u7 u+ a) h! W- `4 M" w
<DIV id=lrc3 style="COLOR: #666666"></DIV>
! l$ T" v+ R1 w9 c4 b1 r+ B1 [: t* I<DIV id=lrc5 style="COLOR: #666666">如果时间 </DIV>
/ b" r% X* W( {( r! g6 }<DIV id=lrc6 style="COLOR: #666666">忘记了转 </DIV>% n, ^4 m, `4 e& |: d3 y; w
<DIV id=lrc7 style="COLOR: #666666">忘了带走什么 </DIV>
: I. d d- S0 R, M<DIV id=lrc8 style="COLOR: #666666">你会不会 </DIV>, \. i$ L1 k, |; T. w2 T7 u
<DIV id=lrc9 style="COLOR: #666666">至今停在说爱我的那天 </DIV>
e# R3 [# W* D/ w% C# @" |8 N<DIV id=lrc10 style="COLOR: #666666">然后在世界的一个角 </DIV> p3 A3 q4 O- n. o6 }1 L# B
<DIV id=lrc11 style="COLOR: #666666">有了一个我们的家 </DIV>
, o! t4 I6 k' p1 U+ z( U<DIV id=lrc12 style="COLOR: #666666">你说我的胸膛会让你感到暖 </DIV>8 f7 j1 u% n8 c( p2 A& i2 A4 P/ ?
<DIV id=lrc13 style="COLOR: #666666">如果生命 </DIV>4 @( {6 P. t+ I, Z' J! a! V
<DIV id=lrc14 style="COLOR: #666666">没有遗憾 </DIV>
1 u0 E c1 n) e& x<DIV id=lrc15 style="COLOR: #666666">没有波澜 </DIV>* L% d/ a! r O. }1 N8 {
<DIV id=lrc16 style="COLOR: #666666">你会不会 </DIV>
: b8 S/ s W- x, s<DIV id=lrc17 style="COLOR: #666666">永远没有说再见的一天 </DIV>
# C" ?* X; d4 _- U' v8 p<DIV id=lrc18 style="COLOR: #666666">可能年少的心太柔软 </DIV>1 M. _0 Y, E7 ^1 C# A
<DIV id=lrc19 style="COLOR: #666666">经不起风经不起浪 </DIV>
9 B/ M) T( t/ {<DIV id=lrc20 style="COLOR: #666666">若今天的我能回到昨天 </DIV>2 C# s; A- g4 ~" S3 W
<DIV id=lrc21 style="COLOR: #666666">我会向自己妥协 </DIV>1 E- ?) j- n6 [% n/ Z
<DIV id=lrc22 style="COLOR: #666666">我在等一分钟 </DIV>7 c6 G; e4 q' q
<DIV id=lrc23 style="COLOR: #666666">或许下一分钟 </DIV>- m" p4 y/ N, y7 }8 c% p
<DIV id=lrc24 style="COLOR: #666666">看到你闪躲的眼 </DIV>
3 _% }4 J; g1 m3 t<DIV id=lrc25 style="COLOR: #ff3300">我不会让伤心的泪挂满你的脸 </DIV>
d$ p7 ?9 C/ p2 h! h<DIV id=lrc26 style="COLOR: #000000">我在等一分钟 </DIV>
, d" Q. r3 x8 E& a+ ?<DIV id=lrc27 style="COLOR: #000000">或许下一分钟 </DIV>9 F+ ~8 }; [8 o
<DIV id=lrc28 style="COLOR: #000000">能够感觉你也心痛 </DIV>
- H ^6 i( O; t( T<DIV id=lrc29 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>
# i* W7 h- g7 z<DIV id=lrc30 style="COLOR: #000000">如果生命 </DIV>) |( @* Z; P e4 \
<DIV id=lrc31 style="COLOR: #000000">没有遗憾 </DIV>6 e0 G3 G0 @' O$ e
<DIV id=lrc32 style="COLOR: #000000">没有波澜 </DIV>" [4 o! m0 _8 T" U# J) X( D( x
<DIV id=lrc33 style="COLOR: #000000">你会不会 </DIV>+ ]. G- j/ \6 s6 \0 r' f. m
<DIV id=lrc34 style="COLOR: #000000">永远没有说再见的一天 </DIV>
/ X' u) ]0 R3 U4 Y; O<DIV id=lrc35 style="COLOR: #000000">可能年少的心太柔软 </DIV>
. R$ E0 t+ f. ^' o9 h<DIV id=lrc36 style="COLOR: #000000">经不起风经不起浪 </DIV> O9 Q; e- i' [, o
<DIV id=lrc37 style="COLOR: #000000">若今天的我能回到昨天 </DIV>
: `6 p- P6 U, i3 c: z% R<DIV id=lrc38 style="COLOR: #000000">我会向自己妥协 </DIV>
, y7 }$ K! x% R" P9 q: e$ i' T<DIV id=lrc39 style="COLOR: #000000">我在等一分钟 </DIV>
) H0 `) o3 H! F$ Y( x6 ~1 ]<DIV id=lrc40 style="COLOR: #000000">或许下一分钟 </DIV>
- v( ~3 I( [/ v4 g<DIV id=lrc41 style="COLOR: #000000">看到你闪躲的眼 </DIV>
) Z+ g7 F |* y+ w<DIV id=lrc42 style="COLOR: #000000">我不会让伤心的泪挂满你的脸 </DIV>
( y6 O: C. M/ f# `5 z<DIV id=lrc43 style="COLOR: #000000">我在等一分钟 </DIV>, u# }! t5 D w- V' n
<DIV id=lrc44 style="COLOR: #000000">或许下一分钟 </DIV>2 V6 u9 i1 W2 M8 O0 e5 v0 m
<DIV id=lrc45 style="COLOR: #000000">能够感觉你也心痛 </DIV>+ K; w3 {2 O/ N/ |
<DIV id=lrc46 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>9 P6 e) M- t2 M' i# C9 ]6 \
<DIV id=lrc47 style="COLOR: #000000">我在等一分钟 </DIV>( e! R/ o C4 w+ H- N6 z
<DIV id=lrc48 style="COLOR: #000000">或许下一分钟 </DIV>7 C9 h9 @6 s* O+ x
<DIV id=lrc49 style="COLOR: #000000">看到你不舍的眼 </DIV>* Q+ x* I* ^8 r+ J5 M7 s
<DIV id=lrc50 style="COLOR: #000000">我会用一个拥抱换取你的转身 </DIV>1 y3 f9 `- {/ C1 e K
<DIV id=lrc51 style="COLOR: #000000">我在等一分钟 </DIV>
! s$ b, E( o, m7 \. S m, G<DIV id=lrc52 style="COLOR: #000000">或许下一分钟 </DIV>; f% P4 B" G. y/ {
<DIV id=lrc53 style="COLOR: #000000">如果你真的也心痛 </DIV>
3 ~( ?4 B% U& ?) b# m/ z) g<DIV id=lrc54 style="COLOR: #000000">我会告诉你我的胸膛依旧暖 9 B3 c5 C: f+ A! M
<DIV id=lrc style="DISPLAY: none"></DIV>
0 V" R Z( H/ w3 e) y! T5 Q/ z- N<SCRIPT type=text/javascript>
) @. f4 O1 Q$ B2 G* y% t! zdocument.domain="1ting.com";' T% ~9 b) ]0 z# m; g4 H
var colorPasted="#666666";: c0 `5 K$ I# w3 m' o
var colorPlaying="#ff3300";
0 z# L K. }; tvar colorNormal="#000000";
( _( T9 Z- \5 X- G( W$ = function (a,g){
~) n& }9 P7 I var o = new Array();
+ f* |; L, D1 K var c = new Array();
( b/ r1 ~- U4 I" X- v% A! J var r;
2 Q+ e' X" R+ I- y var u;
2 P$ b; y. } d4 ^0 ~ var a = a.split(';');
9 a1 l3 `* N* r& S4 B& {4 Q$ p5 X
/ d7 S: C* \, w8 @2 Y( [8 K6 h1 M, q var e = "keydowns,resize,load,dblclick,click,mouseout,mouseover,mousemove,mouseup,mousedown,inputchange,inputfocus,inputblur".split(",");
3 O. W$ @9 u$ ]; i5 }6 X- V for(var i=0;i<e.length;i++){
" K' b! |. I# ~5 D6 n, ~ eval(e<i>+" = function (s){eval($event('on"+e<i>.replace("input","")+"'))}")
* B8 S4 M$ y4 s) r }* b; `2 j0 q5 \% h4 n o
1 r5 @/ j" n3 t7 V% f6 G
after = function (t,d,s){. e `5 F! m7 S5 `4 n8 f
$after = function (){
( n0 q! Y/ s0 h0 h/ a3 P1 U; N var $n=document.createElement(t);
/ s; \$ X4 w w1 a1 W! D if(d!=null){0 ]: t+ U) Y- G5 j) x
$n.id=d;
. {; O" q9 k' |' L% V }
! x! n0 A( B0 `5 B 9 w( ?+ @0 A- ] U+ E
u.insertBefore($n,null) $ q5 n6 n9 K* ] j) u
r = $n;
+ H7 |" M/ X' T' x u = $n; 5 k3 K' E( K3 e
}1 G* h6 S. r- M. Z/ g+ j
$for(s,"$after")$ h a. |9 S9 K$ k- T" s4 m9 f# ^7 U
}
, p; f# m* ~" A& H3 H$ j$ o3 I/ z! o2 f
show = function (s){
" g3 V6 w/ ]( }+ t: p/ t- q $show = function (){
2 }6 p. g) t+ _# ` u.style.display!="none" ? style("display:none") : style("display:block") ;0 y" i! M: d* d5 [5 t/ W8 Y/ L
}
1 u Z% F6 I$ n% t) c7 a $for(s,"$show")4 G+ i/ Y+ w; ?
}2 \, R* M7 z6 P; \. R \
6 r& \' o/ A5 i# j' _" U check = function (t,s){
: W% ?% T. j* ~+ a $check = function (){8 D6 u1 f& Q; O3 `( }
if(t=="2"){+ R! Z. R" ^) L! B5 F% g- N3 \
if(u.checked){
) c( W- `: ^ ?' o u.checked = false;; r6 }: }1 Z* h+ w* [ U: O3 d
}else{; F: y. {/ _3 \/ x( Y4 d
u.checked = true;
1 h# f; f! G6 g. [& v! y }
) c. m# A) g& D4 K; z }else{2 D" ~5 t- W5 |) }( t
u.checked = t*1 ;
& r( C; c+ B8 A }2 z- b1 N. b% H1 d& q( B
}
1 r$ A6 G4 L$ }4 D1 e1 D4 f $for(s,"$check")
( a: Q. F( \1 R- m2 _ }7 q$ D4 q; \2 J0 c" J# U; y' x
' S& H7 g8 [, h. ^. R$ y
style = function (v,s){% O6 w$ f* ]1 p" _
$style = function (){
; x" D0 [6 B' J! \; S. q; M6 ? var $n = v.split(",") ' t( G" x+ e( O2 G) T
for (var i=0;i<$n.length;i++ ){( d' z7 l0 ~: Y) F8 _# N
var $m = $n<i>.split(":")
7 U: Y' T5 T7 C7 ]4 ~3 q' F eval("u.style."+$m[0]+"='"+$m[1]+"'");
7 }- }- {$ Z$ T6 W; u+ N7 ?. Y }
. d5 q$ q$ l8 B: j- J/ D }
0 W4 I8 V4 T" l+ u4 t $for(s,"$style")2 W o6 E% Z1 `
}) f3 `" S z z
9 G" i8 c( n6 O8 A4 s4 J value = function (v,s){( ?! N+ d' A! ~5 z z0 f
var $n= $this (v);8 P$ }4 u5 `9 P2 y
$value = function (){
. l) T. r1 [3 R9 K- g u.value = $n
; l* b+ v" _* [4 ] }" O% R, i9 d. t0 u. X w
$for(s,"$value")
/ u% c* |' ?0 |: r }
: \& |7 {% ]+ d3 _% L& z" R* D& S% y+ W5 l, _7 s0 `- ^* F+ T' m
text = function (v,s){
9 E7 B3 e9 O K var $n= $this (v);
6 f: r9 _$ d/ Y4 J# d9 w $text = function (){
3 \7 I4 }7 m K+ o6 a" ^ ' ^2 N6 d1 t0 t1 h3 ~+ P
u.text = $n
3 k- \$ k+ u5 ~0 Y- Q }- O6 w0 {8 Q" w: l3 K
$for(s,"$text") % x6 ?1 j0 i3 T& S1 f
}; O' A( S: a* Z, Z' |9 ?
+ M: X! y: y/ E* G$ |/ ?
innerhtml = function (v,s){
8 d$ d& s4 t6 q/ B0 `4 t2 k9 i6 { var $n= $this (v);
# G1 r e& v K3 t, @# C" M/ a $innerhtml = function (){
+ S' s- b9 h1 X. C u.innerHTML = $n
4 _4 j. O$ e% _/ w }
4 M& f6 {5 R$ I& B. o# d$ z9 X $for(s,"$innerhtml")8 Q) d0 D* X6 Z. z4 ~) h2 I
}
' v% h( q x9 L x) a. Y
( |8 S) K) h S4 x8 J3 i" _# ^% N removechild = function (s){9 X! C$ C& d. _( Y5 c6 c E
$removechild = function (){7 X# n# W& T! j# e! y2 K
u.parentNode.removeChild(u). d7 ^6 W( D! n# I
}* @" l/ F+ C$ Z6 y* x Z& f
$for(s,"$removechild")
: s3 E8 @9 L* e! | }( z% U& w4 ?, K! n$ a: Y, p0 R1 e
* [4 d, @" }9 a3 G
$this =function(v){
2 W3 f' E1 s9 h8 J: g: x. ^ if(v.indexOf("this") == 0){! a1 f; ^ ^6 N1 [- s1 ~7 @2 Z2 ^
return eval(v.replace("this","u"))
. f* I" c/ @5 p8 r# X3 u( [2 C }
3 f/ s8 Q6 D# ], u$ D+ _ return v;
" H) r. Q4 Z- ^/ j }
6 O ], B7 B* {& `7 A0 k+ ?: ~9 L* _' @6 F0 k/ F ?
$event = function (s){, m* Q8 L/ \* Q( V8 B
var $n ="u."+s+" = function(){$work(this,s);}"
: S5 u. C( W3 e+ P return $n;
* W, d2 Z* G9 }& _0 H' T }' ~" x' g& I2 }! t
" q" E' c6 n& R" w
$replace = function (s){- \7 s: x9 k9 M# n" s
% D! ^% y& p, z" f$ f, H+ W- O; J
}
P+ R: W5 Y4 b- H% ~. k* O( g0 I4 A+ W) X% a. T$ t) y: t1 I: t$ d0 q
$for = function (s,c){
5 H$ m0 X* t. q( d% b! Y- L- \ var $n="this."+c+"()" ;
/ W; N# }8 [* w if(s!=null){
" \+ t5 a7 V$ y3 D1 V var $m =$test(s);
# \: F4 T+ R; y4 H( a! ` for (var i=0;i<$m.length ;i++ ){
; K* f T% ^2 t% ]! V+ Q0 G: a& u u = $m<i>;
" D/ x1 E# w) R" J1 r7 j eval($n);
7 i* O5 l& V" F- w }: X5 m- |" X4 }" a6 c2 c
}
" J" R5 R& H& T; k4 v Q else{
/ r- ~! S2 d" ^" m& N. [ eval($n);
0 ?$ w$ C1 z& ^ g }9 ]2 U" m F. p* @+ g4 K% W" l
}
0 j1 M" l! \ E7 \) y
4 H k4 u- `, C3 d, G $test = function (a){" L+ q7 @( A: n
var o = new Array();$o(a.split(';'),o);! v" e' z1 A1 `
return o;. D$ A {3 h2 w0 |5 i
}9 B& ~5 ~# f0 f' t: m* \
2 Q0 M' n9 ~$ D) A: c $format = function(s){
4 h+ g$ |/ K- I3 [! j, I while (s.indexOf("'")>0){
' N6 ^ R: ]2 z* P: T* w0 N s=s.replace("'","\"");' x) `! @7 G6 C8 n& F$ b$ l
}7 b7 N- A5 C% W6 b, F6 b4 Z
while (s.indexOf("][")>0){5 W5 A1 j/ b7 u- }4 b c
s=s.replace("][","','")7 L7 c* @8 U. g1 w; J. Z
}( B. H0 L& X9 i; b! g8 Y
while (s.indexOf("[")>0){
0 K* [3 l. m' q* {5 H. E s=s.replace("[","'").replace("]","'")
( c; ?% W0 D. M6 w2 B }
1 a7 ^( l! X- A/ T1 q return s;
8 @# d4 Z, l$ h9 Z }+ d% E3 b M" g8 m
/ O$ E6 p1 D& U1 d- S: y
$work = function(w,s){7 b6 T0 g5 ]+ Z9 N3 h. L5 T
u=w;eval(s)
) v1 u5 D& f! X" L! {2 j }; [, C7 U8 E: q. H3 A2 u5 X9 t
2 o6 _/ k3 [) G) d $id = function (s){. _7 x7 \ c3 {
return document.getElementById(s); z9 R1 L& Q. r* `
}$ f: c) q5 I# k9 B$ @
+ H3 ?6 `3 ~; O
$name = function (s){
* o7 x! V# W, y& q return document.getElementsByName(s);8 H) \% {0 o! c8 } M
}% t2 Z& `3 W) f4 h- `- H: Q
- i6 ?! }4 F" P4 A% `0 q! K $tagname = function (s){8 ~- V" N1 t" B' ^. G# B
return document.getElementsByTagName(s);& i( b* C/ P& ?) P) G- B2 U
}9 t+ T0 c9 j- ]7 n! g
+ n" w0 y9 ?8 I& q W3 R $o = function (a,o,c){2 c& v1 X- T4 u C: H0 C
$push = function (n) {
1 ~" J# `0 H" b. @4 ]0 \ for (var i=0;i< n.length;i++ ){
2 P5 T" |; g, H$ {/ T: h7 H o.push(n<i>);% q# y- k" G8 G! z
}
0 D' s7 X( L0 B: [ }) C3 l8 L' P% ]2 q+ R' Q# ^( e
for(var i=0;i<a.length;i++){( f$ T* w% b* Q' u
if(a<i>.indexOf("(") >= 0){& }5 U$ L! M) J/ l! z
c.push(a<i>);) \6 J$ I. n. v' N, U8 H
}% ~4 ?' I8 U$ }" `0 _
if(a<i>.indexOf("~") > 0){0 m- A3 y- |$ ~% w
try {
+ `* T* X& J4 Z; G $push(eval(a<i>.replace("#","document.getElementById('").replace(" ~ @","').getElementsByTagName('")+"')"));
. ]' g0 u9 A* R }catch(e)
* X, r* w# T+ N9 S {}
' j+ E/ Q! C' a/ z G+ |- b }
; }) F4 x: W6 O else{
& r! {+ C; {8 O2 x if(a<i>.indexOf("#")==0){
, R: r: N6 v# v/ M- W! p f2 y% T1 E o.push($id(a<i>.replace("#","")));
8 _$ J& U( J5 V& ]8 Y, o( B1 t. V3 v }
1 Z* Q3 h" T* @2 n9 I4 v if(a<i>.indexOf(".")==0){2 D5 g$ M/ ~3 \3 b5 ]
$push($name(a<i>.replace(".","")));
7 S2 e$ L( X/ M" t7 I/ E/ [4 r }5 C4 B5 x$ b1 I6 W: k5 y: G$ S
if(a<i>.indexOf("@")==0 ){/ D% V9 G+ J/ ~/ I2 C! M" C0 f0 _
$push($tagname(a<i>.replace("@","")));6 J* P, U6 \. V( k( i
}6 \! D1 Q( I5 H9 m3 W$ p0 k2 f
if(a<i>.indexOf("*")==0){
6 M- F5 }8 P9 X; `& ]: N2 D $p= a<i>;
: K8 M# f/ P8 D( x& J if($p.indexOf(".")< 0){
: b- d3 c* t1 i5 z6 `" [ $p = $p.replace("parent","parentNode")
% j4 k5 { w& ~+ ~# [9 v9 x }
$ z" u8 ?6 _8 v( X+ Q6 [ var $p ="u."+$p.replace("*","");4 u: h, x- o* l
while ($p.indexOf("parent.")> 0){7 m9 K, Y7 Y! {2 e3 D- S: B5 s
$p = $p.replace("parent.","parentNode.")# ^- {' }$ [/ n( B
}
+ R' \, D3 l5 d2 r% W, r3 J* a" [ while ($p.indexOf("child{")> 0){: Z& b* i; y5 g& F' ]# q
$p = $p.replace("child{","childNodes[").replace("}","]")& H! v: s' Y* q
}7 D9 b) y+ j/ e
o.push(eval($p));1 z! {8 |+ O/ @+ a% {* e+ t
}& ~6 F% m' T9 Z- B
if(a<i>.indexOf("document")==0 || a<i>.indexOf("window")==0){
" v3 n) p' C) e9 W0 A* ^! @ o.push(eval(a<i>));* s/ a2 j P: v; z: H+ ]1 q
}/ d5 w2 T+ B4 x1 w) ~0 P
}& \7 W* V: S ~5 A ~; Z* t
if(g!=null){
]; ]/ I9 ?2 ]* D o.push(g);g=null- f4 N2 |0 ]( b
}
9 W, _: q8 ~1 _; R }/ `0 a% L- K! n0 Y& s1 U
}) U5 {" i! Q" O
% e7 W3 I/ c) D. }1 a+ T3 [* F# _
$o(a,o,c);/ f; d+ U0 k/ V& f# }, t
1 ~7 o, C. D- |, ]5 j
for(var i = 0;i<o.length;i++){
4 w4 v+ U% O( [$ P for(var j=0;j<c.length;j++){5 q0 F1 o ^1 F, X+ }
u = o<i>;eval($format(c[j]));
. _. M% ~1 y) U }! m. z, m6 @0 b2 R' |! j! `
}
1 I! ` _, d# n+ F8 f5 F( z+ c, A
1 h; I9 F) w Q$ e. p+ Q" ]3 }' ?5 { if(o.length == 0){
5 t& R8 ]8 u3 X0 B( _ q for(var i=0;i<c.length;i++){
+ V% T+ O7 Z6 m3 i eval($format(c<i>));
( h3 x4 d/ o1 y3 i& q! C0 K: H* f }6 S4 ]3 `2 ~9 D2 H, ^5 Y: q
}
8 G. A9 W; _8 @6 o D + w4 @) K) i# u6 g, b
if(r!=null){" W. I0 c2 e& t4 Y: a, Z! G( s
return r;7 |, }& p* I1 R3 P
}
( k7 F8 ^) x! u4 R6 \6 k/ ]
7 k6 ?/ n' |. C3 O$ F) Z if(o.length==1){, e) ~5 y/ u+ j, z6 X9 z/ G0 r
return o[0];& j4 ~) S$ @" o. H, e$ v
}
! \! b/ E! {0 f else{( ]5 K9 M. {9 h* ?: Y# g/ Z
return o/ ~% \+ N6 {( F# M9 ^+ k: Y7 Y
}
S" y" K. C4 M( b" N % f7 W0 u6 a. w# A- }9 _' n
}
0 r# X/ R* X, S: Svar lrc =$("#lrc;show()").innerHTML.split("[");* ]- W6 K$ U0 _9 ^7 n
if(lrc.length>5){
, v7 t% K9 ^' H) ^. Rvar array = new Array();: j* R' v8 d% p- i( }: A8 B
for (var i=0;i<lrc.length ;i++ )
# I4 s' A, ^$ g/ J3 P{
4 @: K( v6 Q* |* ]% L1 u var g = new Object();# Y" N, N8 `7 W4 `6 Y% S
t= lrc<i>.split("]");8 O; H& A+ `7 X/ g# e
g.time = getTime(t[0]);9 i; O3 K( f$ J' {% r
if(isNaN(g.time))6 n' P" {) r) u( U: Z
continue;
( d- {* L8 {3 X) j. m g.c = t[1];" Q% q2 a0 g! }& z
if(g.c == "")
4 j( g5 ]) K+ v g.c = getNext(i);5 h ?9 }" C2 ]3 W$ O m0 T' ~
array.push(g);+ B+ Y1 t: i& W) C" ]
}
8 M# ^0 k- X3 y% m( E; I( Barray.sort(function(x, y) {
8 Z" H2 }% _: W if (x.time>y.time) ; L, u' B+ d' z7 L. \# _# v, H2 X
return 1;
" L1 h6 v. I( @9 k else if(x.time<y.time)5 v% M; z' T* K2 g
return -1;
4 N7 A `2 y1 L) z2 p* Q else
0 ^. V3 H1 k# m: v5 a0 `, h) C3 x- I return 0;
* [, u2 e% a' Q9 p% R3 M, C }
+ m& |$ W8 q+ R+ q);
0 b0 @4 N: {+ z( Q5 Mfor(var i = 0;i<array.length;i++)
5 |% K$ k5 G! I# b3 Q3 o{
0 d9 M6 f$ h2 d8 U var g = array<i>;
+ L+ T# U3 L+ e$ X if(!g.c){
7 D6 m6 A' d6 F$ |9 q1 @ F g.c="";2 N' |6 C6 ~# ?
}% I5 K" C# M( n" t; ]) N
$("#list").innerHTML+="<div id=lrc"+i+">"+g.c+"</div>";; G$ k7 Z' b) k/ `, e7 E" W1 Y. ]
}& z% w' c, v1 s5 s5 X' j
var time = setInterval("lrcList()",500);
& H+ h0 o _- p) N8 ]& E% I. B1 D# F2 H}else{
8 G8 F: Z7 l* g $("#list").innerHTML=$("#lrc").innerHTML;+ d( Y, @) B2 F4 Y/ F$ t7 l
} M) g7 Z) g: i, L% J# i
function getNext(i)
9 T( V' u% b( b4 s6 O{
/ S& F& y6 a B) ^3 F! C var result = "";
2 D/ s% G' ~! o+ z' I% g9 U+ J2 O6 p+ d var i = i+1;$ G( r0 P* ?. {* K$ L' {
t = lrc<i>.split("]");! F: A# k3 p1 v! v6 q
if(t[1]=="")
8 I0 H4 I! }5 k# g i' g2 k) A result = getNext(i);
# f& c+ d2 |5 D1 d else, F1 ^" l7 t4 a, n
result = t[1]( J6 D& L- y8 _4 N3 M: J R
return result;; L2 e6 ^ g( f% h
}
/ V( S# G5 F+ H( s6 C$ ?8 F1 K* E3 D: L( _( M; @+ Y5 Q, k% R: R
function getTime(str) n, [" Y9 t) o4 p+ n( H. t
{; [" Y+ P/ ` Z
var time =0;) W; }2 f# S8 _
var ta = str.split(":");. z5 \1 s7 Y. I6 }* o3 C7 ^9 _# V
if(ta.length<2)
( Q" ]0 ~$ q4 c* x return time;% u+ O# A+ I0 T: M: d8 d# Y; _$ v
5 i, c' g( d( J& x. {4 l if(ta[1].indexOf(".")>0){- ] }2 b) @& X9 x5 ?& j3 {
var tb = ta[1].split("."); Y+ y# `# q d7 S8 m8 G
time = ta[0]*60*1000+tb[0]*1000+tb[1]*10;
2 p/ \* h& P% w: z8 \! M: a }( j9 ?3 [' o, P1 j( H7 U8 Y5 z
else: {2 Z# [5 a& ?1 j% `6 f
time =ta[0]*60*1000+ta[1]*1000;
% R, v& y; L$ ^" d# w! K return time;6 w+ C2 f! g5 b% R/ K- ~8 s ^
}1 T1 y2 _* v9 h! _
var preTime = 0;" {, E, j; {: _
var nextTime = 0;
9 u* i; _( }8 S4 Q; I' a( avar currIndex =0;
9 d. X. e2 g: a4 ?function lrcList(){
! c/ a; `$ E8 R3 W! M3 _ var s = parent.document.getElementById("MediaPlayer").controls.currentPosition;) `' f0 t5 E! w$ f! e" l$ ~5 c! b# \3 v
s = s*1000;
3 J3 Q% \0 t5 D9 }" d% I/ H: ~0 M8 h# X8 x if(s==0){! o# ~8 X$ i1 d. I, q$ y
currIndex =0;
. t& \$ b. c1 N1 R% }# z $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;7 u3 ?+ C& \& }$ o
for(var i=0;i<array.length;i++){
$ \8 l5 E7 B7 S3 v6 Z document.getElementById("lrc"+i).style.color=colorNormal;
% c5 c' j f* ?- |: K }) [6 V; \, h+ h& f) D% v% @+ r
return;- u4 j3 }) }8 |- d/ b
}
' I1 |, n( K# ~' F) }: Q, `$ P# H if(s>0&&currIndex<array.length-1)
/ f) ?6 f3 z' u0 \ { 6 `6 ~- |. H+ z# I' N: I' a
preTime = array[currIndex].time;+ b; l9 F: ?. i+ i
/ J6 w$ S- b' O" T1 W nextTime = array[currIndex+1].time;+ H- [! w8 U; e$ I5 m
& A0 l2 W1 b. {# r
if(s>=preTime&&s<nextTime){! p1 H f# G0 w
}' G- Y2 a2 P! Y1 e' F
else if(s>=nextTime): A% o1 U- n( x
{' d/ ^: Y" Z8 A& }2 d1 ~
document.getElementById("lrc"+currIndex).style.color=colorPasted;1 ]! x% U0 f @ D O7 D: p: U
currIndex++;
) p4 M: O6 Y) k. u5 G $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
/ ]- S e% M: g4 H5 e document.getElementById("lrc"+currIndex).style.color=colorPlaying;8 R. F% B. x9 a, c* X) x
lrcList();- b/ \$ m: e6 G8 \: L; c6 B
}
" L" o5 X+ {: A/ v- W) l4 x' n/ { else{" p5 f: p2 ]$ u& B ~
document.getElementById("lrc"+currIndex).style.color=colorNormal;
. I7 h% l! N1 A/ A6 Y, \ currIndex--;
9 t: H0 o) j' O $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30; f# w: } R. c4 ~2 [
document.getElementById("lrc"+currIndex).style.color=colorPlaying;
\/ g3 A1 z2 m+ r. E lrcList();- x5 S+ W5 e/ i# w7 _+ o4 E# r# x
}
* s8 p- M( x' o& V5 t4 P! D }: A3 @' m. G0 s, [) D8 [& j* A5 z8 M
else8 r. W- H3 A" I# f" E) \. K
{. A3 T8 }3 n) C8 S3 s7 S
if(s<array[array.length-1].time){6 o2 H0 ?$ Y k4 D. O3 P8 @
currIndex = 0;
$ b4 u$ s( ?8 h2 b9 m0 _ $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
' n4 @! Q% L7 a- o- z for(var i=0;i<array.length;i++){
% h$ P, R0 I# M9 ^( i- F document.getElementById("lrc"+i).style.color=colorNormal;
/ E" R8 A9 W4 `! x8 P* S' u }4 p7 S; e& u. L$ U, i ^8 v$ j
lrcList();2 T$ N8 x! [4 ]
}4 w5 y W( V" J$ ~) p/ _5 |
}+ h i5 E9 F( w! Q' P
}
' N) [: p0 C# i4 @</SCRIPT>* n9 R b- R2 A5 f
</DIV></DIV>2 L. i; l: C$ Y- e5 O3 q
# P3 M3 ]/ \6 }8 k[ 本帖最后由 幽谷兰 于 2008-9-18 17:36 编辑 ] |
|