|
|
<DIV id=list>
" s( G( c8 c2 P! [4 p<DIV id=lrc1 style="COLOR: #666666">[wmv=0] http://lzbj.ncedu.net.cn/uploadfile/20083923248279.mp3[/wmv] </DIV>6 q' q7 C Q' B, h7 y
<DIV style="COLOR: #666666">|等一分钟|听到这首歌,觉得它很动听,旋律很优美,很是喜欢,传上来给大家听听。</DIV>
# c! b. `+ ^, l3 W<DIV id=lrc2 style="COLOR: #666666">词曲唱:徐誉滕</DIV>
4 D- p/ k( ?# {, p. Q<DIV id=lrc3 style="COLOR: #666666"></DIV>
$ I D( I1 m* M7 W& Z# t s<DIV id=lrc5 style="COLOR: #666666">如果时间 </DIV> a7 s6 j" l' q
<DIV id=lrc6 style="COLOR: #666666">忘记了转 </DIV>
: n+ P; r2 H o- `8 L<DIV id=lrc7 style="COLOR: #666666">忘了带走什么 </DIV>
+ T, M( P1 ]4 `/ v( h5 ^! n<DIV id=lrc8 style="COLOR: #666666">你会不会 </DIV>: O0 [( r6 H X6 ^! y
<DIV id=lrc9 style="COLOR: #666666">至今停在说爱我的那天 </DIV>
% ]* M. a: ~- }! J! g7 w<DIV id=lrc10 style="COLOR: #666666">然后在世界的一个角 </DIV>
. j3 W" \# n3 H8 } j/ U8 B<DIV id=lrc11 style="COLOR: #666666">有了一个我们的家 </DIV>
$ k3 B# S" x9 @' I. T) |<DIV id=lrc12 style="COLOR: #666666">你说我的胸膛会让你感到暖 </DIV>9 F2 ? q& j3 k1 M( y: e
<DIV id=lrc13 style="COLOR: #666666">如果生命 </DIV>
1 \9 [1 \+ U3 g/ Y<DIV id=lrc14 style="COLOR: #666666">没有遗憾 </DIV>) G2 [% C' E* e+ s8 U- V- X
<DIV id=lrc15 style="COLOR: #666666">没有波澜 </DIV>4 N( _3 C6 S. P4 J# l
<DIV id=lrc16 style="COLOR: #666666">你会不会 </DIV>. h/ j# A" U2 r
<DIV id=lrc17 style="COLOR: #666666">永远没有说再见的一天 </DIV>$ i$ |4 ^6 y8 ^
<DIV id=lrc18 style="COLOR: #666666">可能年少的心太柔软 </DIV> _* s3 m- S! @; b/ P7 |3 C
<DIV id=lrc19 style="COLOR: #666666">经不起风经不起浪 </DIV>4 }! o! D3 h \
<DIV id=lrc20 style="COLOR: #666666">若今天的我能回到昨天 </DIV>. p, f% a( j: e* U4 Y" y# t
<DIV id=lrc21 style="COLOR: #666666">我会向自己妥协 </DIV>
% r6 @6 o7 w/ U9 B+ J$ I5 U<DIV id=lrc22 style="COLOR: #666666">我在等一分钟 </DIV>% V$ _6 g) u) U0 ]6 o; F
<DIV id=lrc23 style="COLOR: #666666">或许下一分钟 </DIV>3 Z N( v4 G, E) G" y& f; ^
<DIV id=lrc24 style="COLOR: #666666">看到你闪躲的眼 </DIV>( U' s# U8 _8 I: w+ g& T
<DIV id=lrc25 style="COLOR: #ff3300">我不会让伤心的泪挂满你的脸 </DIV>% T u/ \2 T% p" R
<DIV id=lrc26 style="COLOR: #000000">我在等一分钟 </DIV>
1 P) ?" z2 T6 D<DIV id=lrc27 style="COLOR: #000000">或许下一分钟 </DIV>
+ S$ y% Q7 E+ c) X<DIV id=lrc28 style="COLOR: #000000">能够感觉你也心痛 </DIV>% V: C! U' ~* L/ `4 f, A& O1 D
<DIV id=lrc29 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>; G/ m# ]1 [# d$ h- _5 W
<DIV id=lrc30 style="COLOR: #000000">如果生命 </DIV>
1 B5 E3 D: B7 b% _' B j1 d<DIV id=lrc31 style="COLOR: #000000">没有遗憾 </DIV>
( ]. w" O& U" k9 o- }4 |4 L# u& K<DIV id=lrc32 style="COLOR: #000000">没有波澜 </DIV>( m& H _9 V. m5 P0 ^7 s
<DIV id=lrc33 style="COLOR: #000000">你会不会 </DIV>
5 a7 i/ z* t# K' Z! J4 F9 k<DIV id=lrc34 style="COLOR: #000000">永远没有说再见的一天 </DIV>
, w# j% n, u, \1 b! F<DIV id=lrc35 style="COLOR: #000000">可能年少的心太柔软 </DIV> E0 }, R; L+ H& n' I+ A4 I
<DIV id=lrc36 style="COLOR: #000000">经不起风经不起浪 </DIV>
& Z8 ^( G* W! X* E1 |<DIV id=lrc37 style="COLOR: #000000">若今天的我能回到昨天 </DIV>
$ n T1 c* `: a) f6 P+ j; T<DIV id=lrc38 style="COLOR: #000000">我会向自己妥协 </DIV>3 l3 B/ S& T- Y1 A2 F: _
<DIV id=lrc39 style="COLOR: #000000">我在等一分钟 </DIV>
. H% [% v! S, t<DIV id=lrc40 style="COLOR: #000000">或许下一分钟 </DIV>
) K; ?" P6 W8 S* ^4 y<DIV id=lrc41 style="COLOR: #000000">看到你闪躲的眼 </DIV>6 p/ J' Y7 E) T- v: `; o
<DIV id=lrc42 style="COLOR: #000000">我不会让伤心的泪挂满你的脸 </DIV>3 V! y2 H0 x. `* ]+ j
<DIV id=lrc43 style="COLOR: #000000">我在等一分钟 </DIV>
/ I4 \1 Y. n s: g! V<DIV id=lrc44 style="COLOR: #000000">或许下一分钟 </DIV>7 T" g, G3 ?. d" H$ b8 h
<DIV id=lrc45 style="COLOR: #000000">能够感觉你也心痛 </DIV>8 ]$ [1 Z& R7 `$ n# T, i, t F" f
<DIV id=lrc46 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>
; t' W) E' E( D' a<DIV id=lrc47 style="COLOR: #000000">我在等一分钟 </DIV>
$ Q- T: }1 f/ M4 m# R* d+ u<DIV id=lrc48 style="COLOR: #000000">或许下一分钟 </DIV>
, d9 g# Y8 T9 ~- `; I) R/ T<DIV id=lrc49 style="COLOR: #000000">看到你不舍的眼 </DIV>
0 j0 ?8 `% q3 r( K. |<DIV id=lrc50 style="COLOR: #000000">我会用一个拥抱换取你的转身 </DIV>
$ P" I) H# u2 |3 F p [<DIV id=lrc51 style="COLOR: #000000">我在等一分钟 </DIV>
! ^4 c1 R: e; E7 @2 j4 g% p<DIV id=lrc52 style="COLOR: #000000">或许下一分钟 </DIV>
0 A+ J$ Q6 C0 |* A<DIV id=lrc53 style="COLOR: #000000">如果你真的也心痛 </DIV>' {5 Q- S; E3 F
<DIV id=lrc54 style="COLOR: #000000">我会告诉你我的胸膛依旧暖
4 d) Q. G! m1 @0 P' U' s<DIV id=lrc style="DISPLAY: none"></DIV>
3 P9 P7 [# z6 B0 T5 T5 y# ~5 w<SCRIPT type=text/javascript>9 Z. U0 R. O" Z9 s' F% b
document.domain="1ting.com";$ K/ Q& h8 w: ?7 O
var colorPasted="#666666";
- d, W' C3 O% Qvar colorPlaying="#ff3300";
+ U# Z6 P. K/ g' Q, K9 T( Jvar colorNormal="#000000";% Y* w" V) D5 N1 x
$ = function (a,g){+ t* m/ a* v( }+ t, G! B# q1 y1 { B
var o = new Array();
5 J' I, w# F" Z/ U! p# b( b. T var c = new Array();
( q4 b) z% K& ^# f- P2 @( P6 A var r; ; H; g A- |: e, C a7 T+ @
var u;
) v: D+ M1 a: d# t# W* ?+ L2 \0 y var a = a.split(';');
9 l5 c* r7 f3 g E4 G- Y# D8 S2 f: c- W" Q# I9 H, ^- D
var e = "keydowns,resize,load,dblclick,click,mouseout,mouseover,mousemove,mouseup,mousedown,inputchange,inputfocus,inputblur".split(",");
( u/ l$ D8 d" ` for(var i=0;i<e.length;i++){
9 a' M }3 e! Y5 _ eval(e<i>+" = function (s){eval($event('on"+e<i>.replace("input","")+"'))}")7 C1 g2 z6 h8 N
}6 K" A0 Z! Z) \9 c
^' i6 v' A! j& v6 p after = function (t,d,s){
$ `: p; [# V1 { s $after = function (){
- q, X2 a f8 G) r% f7 N1 y7 c var $n=document.createElement(t);, ]' f( |* \* j% C { j
if(d!=null){9 ~# L$ U' C$ x& F" A1 O1 K
$n.id=d; % P' `, y- m1 O
}
3 b: f @9 d) r' @' M
$ `1 i% T7 U- N* _2 ` u.insertBefore($n,null)
9 m( g; X5 l$ P/ c: J2 g r = $n;
$ ~5 V6 D7 E7 i% | u = $n; , h8 @' J1 n1 n: Z7 d9 \- M
}
: y. H, j2 ^/ Y+ D+ Z; \8 S $for(s,"$after"), P& O/ O" T% g# s
}
$ h2 d$ h, {; i, ~5 t/ C4 Y; D- `; k
show = function (s){
: Y% M# @& X0 [- Z3 w9 c3 I $show = function (){
; E& f* n! S' M9 g* S6 P! n: R u.style.display!="none" ? style("display:none") : style("display:block") ;# @2 P" t! C% j6 S! G3 R
}$ h% \3 U8 V4 _# C) b& y$ a8 ]
$for(s,"$show"). I9 p- a7 ]5 A& Z/ q
}
a( {" L: H6 {. M, i, H: H- E
" n. E- m1 X) _% B3 s7 K check = function (t,s){, F+ d X! Y6 l) W9 a1 |2 e
$check = function (){6 P6 a5 }* f5 Q
if(t=="2"){
7 {- O" n. N0 y! m; m& Q if(u.checked){
5 W' J% a B( A% o$ n u.checked = false;
/ ^: M n( V/ c1 G. a; c: S }else{$ V* V+ C, S. a1 X1 b
u.checked = true;2 j9 i3 w5 _- J H
}, b! z- S' d" r
}else{
! t" \0 T# m% o, H8 a- _ u.checked = t*1 ;9 M# {$ |% J1 }0 [) W+ v
}
! m ]( \5 T/ [/ l7 h }# U3 m. J; u/ u! P$ X% F: C: K
$for(s,"$check"), ]+ m6 Y9 B4 y; t
}
1 ^: [9 Y$ a0 A) j' h+ u' s6 }
8 F" x. m, f+ [5 o+ ~8 I style = function (v,s){9 J3 g- L' g: J a
$style = function (){
, O( {3 q* ?/ M. ~* k8 q! \ var $n = v.split(",") , f2 e7 ^2 _, ~5 Y
for (var i=0;i<$n.length;i++ ){: m( _" `) C- F2 v& W4 H; B" T
var $m = $n<i>.split(":") 4 a# y2 ~+ k& C* }# O
eval("u.style."+$m[0]+"='"+$m[1]+"'");
5 t+ h6 [4 ~ y5 R5 b0 J# q }. I6 r2 n! {2 g3 Y
}
9 x' T8 e7 H. T# M1 f0 _1 `! Y# \ $for(s,"$style")
, e3 [7 d2 n- v$ V }1 H) k ]! @: l' c; M+ D
1 ], O7 I8 d' ~8 w: [' _
value = function (v,s){
$ \ \ A; t4 G. V1 Z$ a2 y( j var $n= $this (v);4 I3 g2 P) H( x# H5 Q
$value = function (){# ~: q0 `$ q3 E3 V( D
u.value = $n
# ?$ x* F6 s4 O }
* ]1 l7 ^/ V$ Q% m* F f: X $for(s,"$value") 0 |/ \7 I; ], O2 P7 E
}; t, e: z& h2 l& {7 m
a: H; F+ A; M% D% X2 C
text = function (v,s){9 x0 j9 O6 Q. Y4 ]" q3 M( S! e
var $n= $this (v); \* V4 X2 I+ J- v
$text = function (){- c& m) b l! O! b% C
9 o$ }" e2 r; a1 S
u.text = $n' [6 K( V' x, I1 T4 K) C7 V
}
1 G( f: e/ g0 M4 q$ v) V7 X $for(s,"$text") 3 h! u! G) Q' b0 o7 M. Q( ~
}
. C' K% A I6 i1 @ ]& u) L& u
8 t Y H: w( P1 \- _$ B: k innerhtml = function (v,s){9 B2 R2 K3 z7 p+ q( e* R5 M( S
var $n= $this (v);+ W0 f5 u' j& N9 c+ Q% f
$innerhtml = function (){
. U$ z7 O$ e; P4 ] u.innerHTML = $n
2 T; O2 j& N, z0 @9 ~; K& e" R, Q. C }
% t7 O4 s1 z2 ~, ] y3 x' g $for(s,"$innerhtml")
. v1 k" x- S2 Z G: ^# M }
2 D3 I0 ~8 \5 ~- X ' G( a+ X1 A( e* t
removechild = function (s){
, r; B# W a4 f $removechild = function (){1 i, U. e2 t9 [5 \' P
u.parentNode.removeChild(u)
) ]% }5 e3 T+ T" k }
- a3 x. r4 D2 a7 E $for(s,"$removechild")
8 o, b. ^7 [4 [( F; l! A( P }2 z5 k1 t4 K( |6 C( C) e
, s* `7 D# I$ S% Z) O# C
$this =function(v){
1 e. p" t z. X if(v.indexOf("this") == 0){
/ d8 p* X% M2 A" c% q return eval(v.replace("this","u"))
; p6 O1 o* Q9 ]/ W! c+ x }- w4 |( E& s1 G$ W: v5 l7 `) l2 h, W' p
return v;
) o) O; ~3 M) ?0 @! b }
3 o. g# o, G+ B' f, D. ]- w4 }2 U& V, g7 ]
$event = function (s){" [2 C& i+ x+ G# u
var $n ="u."+s+" = function(){$work(this,s);}"
- m$ O" Q8 G& Z+ _8 b return $n;$ [2 U' O& Y+ q. F
}
: C, m' D7 ]( M, v
5 f k" R4 s6 K $replace = function (s){
4 e4 v$ |, m) ^" A
9 `6 Q8 {+ Z; o* ~. ] }
( v- h( f% @+ {2 ^; h0 X+ ~
3 u6 ?; p6 S8 f' ?/ I7 P2 v $for = function (s,c){" x* l7 v: k4 j+ u. s
var $n="this."+c+"()" ;
: U* k/ w4 P! M9 A# Y if(s!=null){
! q& ~) E/ g! Y3 Q' j+ d: r var $m =$test(s);
! d3 y( ?% N$ u0 l; Z for (var i=0;i<$m.length ;i++ ){
5 [2 @: F) C% d u = $m<i>;
6 v# I/ n# S& ^7 n$ o* w) A1 e eval($n);7 U2 a" i7 A. f) i6 |1 y
}
" D6 t% m3 X/ x: [) A" O }( [& Z( T! ~- I7 O5 j0 c8 u3 b
else{) {- C+ a/ Y l8 P
eval($n);9 K% W& j# q& z- T4 g: w( K; l2 K' C
} v# E; g! f1 r P, T, H
}
! ]5 R2 `- o1 P2 c$ n9 { # k# v e/ _$ ~* O: y
$test = function (a){9 }* r+ U7 r9 f! m" K* N7 @
var o = new Array();$o(a.split(';'),o);: D5 U0 Y- ]) F0 {' l
return o;
0 K! r/ n( N2 z% o }' |$ r0 O! b8 v( Y) o( m5 c8 @
* L9 G, A: R4 ]; l# o/ P $format = function(s){3 x% f+ w) S9 _2 I+ Q, l9 A* \
while (s.indexOf("'")>0){
$ \ U5 h: A3 s# g$ Y s=s.replace("'","\"");. K# `" [5 v( \. E
}! t9 N' `( V5 J- G
while (s.indexOf("][")>0){0 i" z* e7 ^( [( k$ ^' Q, }* `$ a
s=s.replace("][","','")
9 b- m2 j' [8 E: @: { }( Z" z9 O( d- b8 O2 q& X
while (s.indexOf("[")>0){8 F! ^6 j7 @7 J$ m( \ o
s=s.replace("[","'").replace("]","'")
0 l8 b! v$ \: K8 Z9 q* h( | }
/ g; @2 Z" D- Z3 |* p! s return s;0 ?/ |& k7 c" j: p- u- P0 ]: n
}
/ H5 m5 m" Q# d Z/ [+ ]+ J4 U* G2 }( {% T) d' ^
$work = function(w,s){
9 r0 L/ |1 O. J( ?6 D9 |1 U u=w;eval(s)
" j2 g1 J1 P/ | }
( N% O1 {7 }' f) C4 u1 ]. C; _4 G0 |2 w6 _9 F4 D K
$id = function (s){
! c) m. B& R2 Y$ S return document.getElementById(s);
8 {0 S# Y* F$ P( A' ], v }
* `7 L2 \/ V$ A' S7 ~8 i( }, B. Y* X: c, j9 Q2 W
$name = function (s){ z% ^, @, l+ ^) L
return document.getElementsByName(s);6 b% B' I; C" S- J8 S, O/ z
}. w& b' T2 g& y F Y6 ~) Z, q& z
( v) T& M& |0 q" C" X $tagname = function (s){) A( s3 I3 w: N/ @7 Y
return document.getElementsByTagName(s);4 i6 Z* q: v; }% }5 d
}6 ]5 {& H5 t' _8 ]" z" f' Z
5 D/ F" `) R; n( ~- x# x) e
$o = function (a,o,c){
i7 s( H( [0 Q7 f( k5 \5 D. R1 H $push = function (n) {) U9 f ]6 @0 T [1 `& o6 p( P
for (var i=0;i< n.length;i++ ){+ O F" I. z4 @' q
o.push(n<i>);
9 p u* C8 D3 y2 _8 Q, k } 1 ^' A5 }0 O) ~/ a* e
}8 P1 l2 ]' O2 ]7 v0 D3 Q
for(var i=0;i<a.length;i++){% ]5 S3 \- Y4 X2 L1 W0 g
if(a<i>.indexOf("(") >= 0){
9 K+ c1 s. l8 X c.push(a<i>);3 r l6 ^8 E- t; H) O4 w4 M6 _
}0 Q, d2 W W2 U) T9 g' n
if(a<i>.indexOf("~") > 0){
6 I/ R8 h: Z) j4 W6 g% H, b try {
. J: z1 v. Z' J/ H) a) ~ $push(eval(a<i>.replace("#","document.getElementById('").replace(" ~ @","').getElementsByTagName('")+"')"));) s! Y5 Q& W- x, y4 v
}catch(e)
5 i& U* m: ^- {+ {3 T. T {}
F( m v4 O9 b. B- k' n }
5 `4 V6 `- z/ Z1 v* D$ e# O) d else{
9 B# v. d |: ^6 r if(a<i>.indexOf("#")==0){& D. B5 Q" a8 t+ h
o.push($id(a<i>.replace("#","")));
: [9 e2 W* e" X ?, [ }
( x& l0 d8 W8 F# o, D if(a<i>.indexOf(".")==0){" }/ i. l; @* W& W
$push($name(a<i>.replace(".","")));. A+ `& E5 |& X( y# f
}' s5 w4 W+ t: X8 d0 Z
if(a<i>.indexOf("@")==0 ){
' \+ q. W& g }9 |: P2 I1 S* r6 y $push($tagname(a<i>.replace("@","")));5 L" b' D2 V8 k6 Z) f
}
7 M9 p, @4 S) V4 Y- A if(a<i>.indexOf("*")==0){& z0 ?) A, A" g* o
$p= a<i>;
" \/ [7 V! X z$ K2 n. q" b if($p.indexOf(".")< 0){) o6 P/ o1 A' u' G+ o' S$ p
$p = $p.replace("parent","parentNode")1 Z" H( J4 ]3 X$ f/ l5 j
}
9 T- I0 F" I4 H- F$ r! | var $p ="u."+$p.replace("*","");
4 j( h) M2 d/ Y while ($p.indexOf("parent.")> 0){
5 {1 N% U4 N' A# s $p = $p.replace("parent.","parentNode.")
3 v5 F' O0 F% X% f- W; M( A }2 _- O- T9 ?: ~
while ($p.indexOf("child{")> 0){( T* f0 l% e1 M" a0 s5 c
$p = $p.replace("child{","childNodes[").replace("}","]")
9 x5 f w' ?5 O- w9 p; i }
, r) [% A' L/ ]+ T( x9 A- z o.push(eval($p));7 A7 |, e {2 ?: n2 S
}
1 ?0 u2 B" E. {. g* E6 h* y if(a<i>.indexOf("document")==0 || a<i>.indexOf("window")==0){3 r' D# \6 Y0 Z9 _
o.push(eval(a<i>));* p7 W* e0 Y( n, {, Q
}
( n$ N+ [6 F0 S# L( G0 v, H }. {# ?3 ?0 j9 z7 j3 F% m
if(g!=null){
7 X' V0 f1 J. t" \7 e7 x0 | o.push(g);g=null
K7 ~' c; B$ a }
/ x% G- g5 N; r& Q4 L/ Q6 \ }
: D s+ w' x# d0 ~4 H/ ] }
& F% m5 A( i) ^0 [! q, }# W6 N- I! V0 W( G" v
$o(a,o,c);* e* K* m3 ^3 k( n3 o, U5 J2 \
6 D2 t5 S7 f0 l' y
for(var i = 0;i<o.length;i++){1 |% x# r; F0 R, _ {
for(var j=0;j<c.length;j++){. u4 s, u: b1 S/ b; V- a
u = o<i>;eval($format(c[j]));
/ h+ H# v, ? I4 v& s! G- a# _ }; k+ L( u9 W1 Y- n1 }7 p
}
2 n8 W3 j* F+ Y; h
F% Z$ P! N1 i if(o.length == 0){
; I T# a3 v3 N# y6 p( [+ N) g for(var i=0;i<c.length;i++){9 p2 [: }" _% i) Q }
eval($format(c<i>));
z) _; L8 v. E+ v" k+ g9 v }1 @0 {. X7 b/ F/ @+ _
}
7 P* K/ P, e3 W
: M* p* l8 ~! t if(r!=null){( R7 k/ J" ^* i
return r;% ]5 i' f1 r8 G X% q
}$ C' E5 G/ T; K4 v% P' r
* P" ~- Z, ~. a if(o.length==1){
$ C1 Q9 u% N6 \ return o[0];1 N3 H, J6 _. M+ D
}
. [8 Z. f" t5 V else{) z3 Q$ V/ {& G( p! g
return o
# G. p s2 s5 h* Q9 V+ v } ; x0 o8 ]9 O' o" ^0 x( Y
) w% R1 o4 D4 n, C/ ]% P, A& A8 ` }
# V7 X! V: Q. A% g% z9 H5 Q& f/ ~; bvar lrc =$("#lrc;show()").innerHTML.split("[");
. I7 R* ^$ w* T( r+ I* hif(lrc.length>5){
. Y. m' o: m1 h; N( Vvar array = new Array();
' q0 w: p6 u+ \; N# lfor (var i=0;i<lrc.length ;i++ )0 M: |* H: _* j+ \
{$ \- v' |0 `; E) A: A/ r
var g = new Object();& }3 H& H: q& w. a* W$ X
t= lrc<i>.split("]");
6 U: B d' N/ l1 p g.time = getTime(t[0]);9 S& V* z: Z. e% b- B% w* ?
if(isNaN(g.time))
1 E [0 S, j' n0 r# n continue;
% m( ~" u% K; L# I8 w g.c = t[1];; F2 `, E1 j" F! b K- P3 i' `
if(g.c == "") S I3 o! D& T. h4 V V
g.c = getNext(i);
$ w1 D- v( T1 n" v array.push(g);
' \; m+ z* Z/ w7 o6 b' o. `% ?+ |}5 L, P- L3 k6 r1 k7 [2 Y6 G; O- L
array.sort(function(x, y) {
1 O9 R, O# J) _0 D$ L if (x.time>y.time)
: R4 s$ ]+ f: |) H return 1;# w r% z L4 v/ f/ A
else if(x.time<y.time)4 h0 b8 ?4 M! d2 ^; _1 q5 y
return -1;
. F3 d7 v3 z8 K else6 K* j" h- R0 @; b j# h5 e, x$ D
return 0;" @; A2 D# ~+ d! c
}
% P3 C/ G) e9 f1 V* O4 C; r( k. y# B);
7 z g4 c! y0 U0 lfor(var i = 0;i<array.length;i++)2 }& a! w. I4 S, F
{
# e) x' l" w; E8 X# {$ Q6 n* } var g = array<i>;& T- j I+ C; ~( B: W7 |8 B
if(!g.c){
3 t7 J, o# G# y0 @! E g.c="";
* k+ E% |' ^5 x) D6 I) g X }6 N" v/ p8 j* D; l( V
$("#list").innerHTML+="<div id=lrc"+i+">"+g.c+"</div>";
+ q( G6 Q' A" o& N- @$ P& j}' V1 o1 n$ S; [
var time = setInterval("lrcList()",500); & s* b5 r- [: U8 s7 K m8 u9 `2 y
}else{
6 ?, ?( i% [: Z, L $("#list").innerHTML=$("#lrc").innerHTML;
6 W6 q6 s! }0 ?* ]}
h& n+ Z% H' K3 Q) Mfunction getNext(i)! v7 `- }8 e) K S% L- D
{; z$ Q5 A; T+ W
var result = "";
% o3 r1 M4 c" m. X var i = i+1;
' b) b6 d& X, J2 ~" q- h t = lrc<i>.split("]");
) F+ @% p- J3 d4 l% G+ l if(t[1]=="")
; U9 `. H4 H, b" ~5 ^# E, @ result = getNext(i);, N5 ^2 @" }7 W g+ ?, O
else I7 W& \# V6 {0 b" q
result = t[1]
' u5 N! W4 ^% e) U$ a return result;
9 M9 e0 T, w- |; r) Z}6 A4 G/ ^, r4 g6 i) a' k3 A
/ p! t' t2 D: I
function getTime(str)* _& }& [& B# X) u# g! g0 i0 ]
{
: \+ m4 H6 s: W var time =0;
0 n9 }; q8 f5 s M+ y3 f2 l var ta = str.split(":");: R: _7 s/ F0 N$ H
if(ta.length<2)- r2 B4 Y7 n- r0 i4 |, y
return time;
# H6 g% _3 Y! ~% n& i3 E3 e' U j6 V+ a/ c6 F" T& R+ ~/ ?
if(ta[1].indexOf(".")>0){
% F5 P9 t& h& n( h' Z) M var tb = ta[1].split(".");3 h" J0 u0 [' b7 H, \- `0 @
time = ta[0]*60*1000+tb[0]*1000+tb[1]*10;
# ^6 v5 i- b \' } t) Z8 l }
! a; l& B, r; w5 o: n" R0 ^ else
# E5 c% R5 J9 H+ i3 {9 I/ b time =ta[0]*60*1000+ta[1]*1000;
7 b. s/ X. t* X return time;6 J/ j( Q! Q0 t8 r
}
9 N) ~9 z( l# N+ @var preTime = 0;
, q, A, h0 {& V7 }, m* pvar nextTime = 0;/ P8 J! j2 r* A8 w+ t, y
var currIndex =0;# r X8 q, \% x
function lrcList(){
+ @' r( M1 u! v% ]+ ~9 w var s = parent.document.getElementById("MediaPlayer").controls.currentPosition;: w- @! N, G% n) N
s = s*1000; e' |7 A# {" f; b4 e9 J: t, d
if(s==0){% d- Z) t% \; F! V! _( [6 O$ F4 u
currIndex =0; a" L# A5 \! E0 ^8 P( f5 r
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
' W( ]+ z2 Q9 W1 ? for(var i=0;i<array.length;i++){
, B. p- c# T$ L$ n9 |) ] document.getElementById("lrc"+i).style.color=colorNormal;( o0 ^3 Z/ i& V4 S, p
}* J- `, d0 W' F' k- B
return;* q2 n! i1 O2 K
}1 D! G' o; W* s7 x
if(s>0&&currIndex<array.length-1)
v2 g5 P3 L! }( E { 9 g* v. S1 \. n0 X' G0 C5 x4 ]
preTime = array[currIndex].time;; T& g# C' G C
0 S2 Z7 u# R8 \& W5 R. `$ W nextTime = array[currIndex+1].time;+ r) Q& V# {) c0 g& q8 k* q
0 ?( x2 _, O" f8 `/ m% x1 _3 w* ~5 l
if(s>=preTime&&s<nextTime){, x9 \6 p# U: f$ o$ P
}5 H3 I4 C) B# m
else if(s>=nextTime)/ s4 U6 {6 A" |8 u" b6 y7 x
{
8 N9 D3 H0 {; J* ^( |' [; x: Z) Z. f document.getElementById("lrc"+currIndex).style.color=colorPasted;
+ ]5 B9 w0 s# Y! N currIndex++;5 e5 O- y/ {. ?2 s. b
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;! h% w# l$ \& ~! _+ _
document.getElementById("lrc"+currIndex).style.color=colorPlaying;
" k {! Q/ i8 x$ x' i' q+ G, r lrcList();
~5 F# b" L/ g: S) G; C1 ^$ x }
$ s7 r" v* [+ @" p9 x" D( k. Q3 Y else{, [% Z H, x! }( k
document.getElementById("lrc"+currIndex).style.color=colorNormal;, [, d& y9 s r4 Y" [
currIndex--;( R( t; Y5 B8 C. w, }3 w4 e- j; w/ [
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;- j- D- R; B. f4 I/ V, y
document.getElementById("lrc"+currIndex).style.color=colorPlaying;- e4 n2 ?3 I3 ^' {
lrcList();
. W$ {# ^2 z6 U+ o) }' K } ; Y- R/ ?* V7 }
}7 E3 B m: m9 |, g# s3 L
else
, ^$ t/ G+ H, G3 C {
7 u6 n" R, x. T% g3 f3 {5 @, Z if(s<array[array.length-1].time){. [1 l# v' E+ O$ |5 j8 X
currIndex = 0;
" n1 p% V! r- X% M $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
" Z( Y$ W7 {8 m+ H% z for(var i=0;i<array.length;i++){" Z0 b, r+ D' z* h
document.getElementById("lrc"+i).style.color=colorNormal;: S, `. f8 \0 X4 b& j7 `
}
1 f; `% b% @( I7 z lrcList();
2 @1 v; k) ^' ], U! y! m }
) a+ ?/ h8 Q2 K$ j' E0 R }0 k! h1 k, L' I7 J+ |; E# V% r9 ]
}
2 x) S: Q1 v4 U" A9 ~0 N</SCRIPT>
2 J, d& [3 b1 [- `5 P</DIV></DIV>+ M9 ~, }0 d6 L/ _, J. Y
7 [+ H: [9 V& U, A4 e
[ 本帖最后由 幽谷兰 于 2008-9-18 17:36 编辑 ] |
|