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