|
|
<DIV id=list>
! z p/ l! f) Z# z( @: K<DIV id=lrc1 style="COLOR: #666666">[wmv=0] http://lzbj.ncedu.net.cn/uploadfile/20083923248279.mp3[/wmv] </DIV>
$ z) p& t- L0 R7 S* _( \<DIV style="COLOR: #666666">|等一分钟|听到这首歌,觉得它很动听,旋律很优美,很是喜欢,传上来给大家听听。</DIV>9 r$ j) s2 |" s5 Y) ^ z. Q* e) J( [
<DIV id=lrc2 style="COLOR: #666666">词曲唱:徐誉滕</DIV>
; X( H' s, I% ?- {: D; ~<DIV id=lrc3 style="COLOR: #666666"></DIV>
& R I; _! ]# W; `. M<DIV id=lrc5 style="COLOR: #666666">如果时间 </DIV>% Q$ e0 W( X& a
<DIV id=lrc6 style="COLOR: #666666">忘记了转 </DIV>9 J+ J8 @" R, @
<DIV id=lrc7 style="COLOR: #666666">忘了带走什么 </DIV># p/ V1 E' i- e0 U
<DIV id=lrc8 style="COLOR: #666666">你会不会 </DIV>
2 c2 f: x3 |. D) j<DIV id=lrc9 style="COLOR: #666666">至今停在说爱我的那天 </DIV>$ L' ]5 L: u$ C# ?% s
<DIV id=lrc10 style="COLOR: #666666">然后在世界的一个角 </DIV>" k5 K7 O9 W' x9 f
<DIV id=lrc11 style="COLOR: #666666">有了一个我们的家 </DIV>
# s4 H, J1 I6 s9 s% }: e" E6 u& h<DIV id=lrc12 style="COLOR: #666666">你说我的胸膛会让你感到暖 </DIV># y7 s3 o! G( {. I0 }
<DIV id=lrc13 style="COLOR: #666666">如果生命 </DIV> y8 L/ T& h0 R' }/ J3 H; a$ X4 ~/ w
<DIV id=lrc14 style="COLOR: #666666">没有遗憾 </DIV>4 f" H% J7 B5 q: W3 v9 Z
<DIV id=lrc15 style="COLOR: #666666">没有波澜 </DIV>
/ w/ m, D% [$ ?3 l* k" w<DIV id=lrc16 style="COLOR: #666666">你会不会 </DIV># ?) I' I- h& _$ e7 V- \$ H
<DIV id=lrc17 style="COLOR: #666666">永远没有说再见的一天 </DIV>, Q9 j+ X7 _4 V
<DIV id=lrc18 style="COLOR: #666666">可能年少的心太柔软 </DIV>
! L0 a: C$ M' D6 H, N8 z. |# ^<DIV id=lrc19 style="COLOR: #666666">经不起风经不起浪 </DIV>
; b P y- m" y$ Y<DIV id=lrc20 style="COLOR: #666666">若今天的我能回到昨天 </DIV>9 G5 ]* B" y9 g% s
<DIV id=lrc21 style="COLOR: #666666">我会向自己妥协 </DIV>1 v9 y0 ?0 M+ D# f) P6 e
<DIV id=lrc22 style="COLOR: #666666">我在等一分钟 </DIV>' n4 t) c j# L
<DIV id=lrc23 style="COLOR: #666666">或许下一分钟 </DIV>
) }" ~. c3 ^/ @* F<DIV id=lrc24 style="COLOR: #666666">看到你闪躲的眼 </DIV>% R3 W1 @ U( d9 G$ Q% I
<DIV id=lrc25 style="COLOR: #ff3300">我不会让伤心的泪挂满你的脸 </DIV>
5 _7 d4 n: b( m6 O<DIV id=lrc26 style="COLOR: #000000">我在等一分钟 </DIV>5 Q; E" t2 o, F7 @ |, B
<DIV id=lrc27 style="COLOR: #000000">或许下一分钟 </DIV>7 G7 B! A* w4 e: `9 \
<DIV id=lrc28 style="COLOR: #000000">能够感觉你也心痛 </DIV>* g' ~& @/ j2 y9 W1 U4 A; U
<DIV id=lrc29 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>
6 v0 R& u9 G8 h) a* E<DIV id=lrc30 style="COLOR: #000000">如果生命 </DIV>8 D' i' F, u3 h0 w2 |; L
<DIV id=lrc31 style="COLOR: #000000">没有遗憾 </DIV>* k4 f7 @# z! I! c
<DIV id=lrc32 style="COLOR: #000000">没有波澜 </DIV>! x. ?6 o$ I4 b5 C
<DIV id=lrc33 style="COLOR: #000000">你会不会 </DIV>4 o2 z/ i5 p% |4 ~& C; t
<DIV id=lrc34 style="COLOR: #000000">永远没有说再见的一天 </DIV>; P5 T6 I" m7 `& j3 l j. V2 N Z
<DIV id=lrc35 style="COLOR: #000000">可能年少的心太柔软 </DIV>
" K9 P* C, h$ J<DIV id=lrc36 style="COLOR: #000000">经不起风经不起浪 </DIV>
5 g* r% q9 U; X9 s8 [& H<DIV id=lrc37 style="COLOR: #000000">若今天的我能回到昨天 </DIV>, u9 M+ u c, C
<DIV id=lrc38 style="COLOR: #000000">我会向自己妥协 </DIV>
6 z0 e j0 ^* Q! N' X$ D<DIV id=lrc39 style="COLOR: #000000">我在等一分钟 </DIV>7 S# J& @, r" X( l" P9 V
<DIV id=lrc40 style="COLOR: #000000">或许下一分钟 </DIV>% \0 D* J9 r `: T6 Y' i3 Q+ P
<DIV id=lrc41 style="COLOR: #000000">看到你闪躲的眼 </DIV>
8 q& i% F. v e: a4 J<DIV id=lrc42 style="COLOR: #000000">我不会让伤心的泪挂满你的脸 </DIV>3 L# U: X* T* {9 v2 S
<DIV id=lrc43 style="COLOR: #000000">我在等一分钟 </DIV> Y0 n# M: e. ]! E. N( ^# o
<DIV id=lrc44 style="COLOR: #000000">或许下一分钟 </DIV>6 p, v7 B" q% ~+ r$ B, f a; b
<DIV id=lrc45 style="COLOR: #000000">能够感觉你也心痛 </DIV>9 c8 l! d& R {* V$ t7 ~7 U6 u
<DIV id=lrc46 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>% P& t C* h9 C7 q: \+ ^
<DIV id=lrc47 style="COLOR: #000000">我在等一分钟 </DIV>
, w! w* D/ P- p3 Y' D O<DIV id=lrc48 style="COLOR: #000000">或许下一分钟 </DIV>! K: g% k- x3 \4 ]
<DIV id=lrc49 style="COLOR: #000000">看到你不舍的眼 </DIV>
# }/ k( I- \. j) t<DIV id=lrc50 style="COLOR: #000000">我会用一个拥抱换取你的转身 </DIV>8 P+ k( X8 k) O$ k5 s8 T. ^
<DIV id=lrc51 style="COLOR: #000000">我在等一分钟 </DIV>" m0 R1 P+ c0 ]8 F+ b
<DIV id=lrc52 style="COLOR: #000000">或许下一分钟 </DIV>* Z% `6 q B; A- p9 w6 |6 d7 L
<DIV id=lrc53 style="COLOR: #000000">如果你真的也心痛 </DIV>- |! t2 A# {7 P% j
<DIV id=lrc54 style="COLOR: #000000">我会告诉你我的胸膛依旧暖
8 z( Z+ X& o {<DIV id=lrc style="DISPLAY: none"></DIV>
- a! `; m8 b& p2 W7 h: h<SCRIPT type=text/javascript>
$ ~/ P4 d. e- a" B4 d- ddocument.domain="1ting.com";
; E) r/ G6 i) r& fvar colorPasted="#666666";
( I. p- G' C5 h& t, n4 Bvar colorPlaying="#ff3300";
3 U& N$ g' u* e4 Rvar colorNormal="#000000";
X% e6 Z3 S0 G$ = function (a,g){, H9 V7 p( F5 B0 N8 A+ {+ Y8 G4 i
var o = new Array(); * a/ r" e3 z T0 R1 R
var c = new Array();
& k5 @/ i9 L6 ]# k5 }2 E+ p var r;
* f1 M3 t% o' e: q# p9 u6 Q var u; u1 B3 g4 s' ?' I" Q/ i9 J0 @$ |
var a = a.split(';');
; B# G, i7 i5 l5 X. ~) A. E) |' Q+ L {7 Z2 O- @. G. w: X9 }
var e = "keydowns,resize,load,dblclick,click,mouseout,mouseover,mousemove,mouseup,mousedown,inputchange,inputfocus,inputblur".split(",");
& X4 L9 v8 p; g; B for(var i=0;i<e.length;i++){' m% @) T! T- k, q# q
eval(e<i>+" = function (s){eval($event('on"+e<i>.replace("input","")+"'))}"); ]% l! n9 o% x* W3 c- y; ?
}+ d3 d& z2 I( }7 ?8 r# o; T
9 k9 Q' A1 ]5 d: { E. u9 S
after = function (t,d,s){
1 Q5 `2 Y9 g: C; m$ G( o* Z1 N $after = function (){
8 w" y' O) n1 b2 P& o var $n=document.createElement(t);
9 H1 t- ]! g+ b; p if(d!=null){; l( B4 S7 w4 h2 b! l" j
$n.id=d;
. O- ?! U5 y5 H9 {- W9 J& G }
9 \" M7 V" A; X* Z 8 s: G Z1 R/ i; R/ H W
u.insertBefore($n,null) & M# _) ~! j5 W7 L' P6 S- ?9 \- e9 j
r = $n;
3 ]0 J+ u1 s( x u = $n;
. }' e0 x8 l$ d# a7 F8 ?; S* Q1 a- o }1 l4 Y8 F# T4 C. L
$for(s,"$after")
+ U8 ~/ g" L0 L. E: u% j3 ` }
" Y; ]& e+ P5 p: G( Q0 ]- w1 Y7 `% Q& `& e
show = function (s){
( H- ~6 ?, R# @: `; @, ` $show = function (){
% \+ P; l, I* c u.style.display!="none" ? style("display:none") : style("display:block") ;
1 m* p u" n- u }# i9 n+ X4 _' \4 a& p z7 J1 {
$for(s,"$show") s+ t0 Z& \. ^% _) }4 ~
}! ~1 K% y5 G# N
# h6 i+ V. T4 ?) ]
check = function (t,s){, s& e& e U. }; H! d, P( u
$check = function (){; E; s; q. |* F6 f( U) g, W/ v
if(t=="2"){, n% P# F$ M q+ {+ b8 n2 A* d
if(u.checked){+ q; B8 T: ]* L1 s7 d+ i$ f2 `0 V- K
u.checked = false;
$ Z7 ^5 M) W4 P3 X& C }else{
1 Q9 S: ]9 R: ?# |- Q u.checked = true;
+ T2 Z% U8 V& ~. Q$ [) @ }
2 ~2 M8 W9 A C* g }else{
" Q6 _1 P$ k4 D: O3 M' m4 w u.checked = t*1 ;* `$ ]. `8 _- S4 `1 b
}
" ]8 f. |) t. v$ g# X+ H }8 T" g% Y% F: s; ~
$for(s,"$check")# y. F9 X" ^) P+ |' m/ s( o( J
}( V9 h" q/ O/ j: }4 ~: D
+ ]$ Q4 V S6 f7 F style = function (v,s){
+ i4 n0 o& |- i. H W) ] $style = function (){" Q7 l' |. W0 e2 L$ T2 K X
var $n = v.split(",")
, i, W% i. T2 @" u5 }; V& y$ F for (var i=0;i<$n.length;i++ ){/ R4 w+ k. H3 q6 Q
var $m = $n<i>.split(":") % M! v+ X2 p, Y0 F& I
eval("u.style."+$m[0]+"='"+$m[1]+"'");$ H7 d: l. f4 s( U) ?
}
* K" X+ c y% u v }" @$ Y: C! @3 D! _
$for(s,"$style")
3 b0 y3 D. d4 Y+ e$ ^ }6 F" [' D7 h% ?5 Q
. F, }1 Y3 T: y value = function (v,s){% t, T' \, @9 U6 [: N$ v" T
var $n= $this (v);
& X4 u2 p3 {& p3 b* _9 ] $value = function (){; j7 C6 a) ? E5 J0 s: S5 F
u.value = $n$ {" u9 |4 S% u! Q
}) ^( `9 Q# b8 N* E
$for(s,"$value")
0 p; i: d( c7 o) p* ~9 t }- K) J( J4 I9 G' q7 C8 c( M+ q
+ q! H" J7 M' \) m
text = function (v,s){- y. U$ {9 m# | o3 A/ R
var $n= $this (v);6 U n* d( k; u) L3 A4 b" B
$text = function (){
+ z* ]6 @% _5 g* B
0 s# N, e! S2 Y* O7 b u.text = $n2 a: j6 Y4 f0 A% h( `0 K
}# I! D9 C2 j% ~6 f9 N j* p
$for(s,"$text")
q3 O8 O7 {4 S }: m F e. X' ~" i
% I8 ^, E6 D( G& P# Q. o/ s
innerhtml = function (v,s){
* N; I6 S. a+ N- t5 a var $n= $this (v);
, f% }" s/ a" c2 J! O$ a4 l( ^3 t $innerhtml = function (){0 P8 Z+ Z6 Y& B% |/ a/ g9 ]
u.innerHTML = $n
6 m: J c/ ]$ |8 Q0 i }) t2 R5 l; d4 D3 h
$for(s,"$innerhtml")+ g% w5 U8 n$ h" D7 C6 z2 e
}1 b6 r3 i% T5 c1 X( o
% s; }- r5 H; |8 a( z+ Q
removechild = function (s){
8 k( c$ k- T+ F6 k; r' n $removechild = function (){9 C1 D6 x' ^# ?
u.parentNode.removeChild(u)8 P( Y4 V- b A. I" K
}- y( }" E* Q# s! b4 V" L& X/ k
$for(s,"$removechild")% n- U8 X9 ~. f3 O6 X# x* O! ^
}
% O7 o- b& O/ j+ ]/ K- x& }, I4 P Z( F
$this =function(v){& t8 N2 M% S5 K& b; J) ]
if(v.indexOf("this") == 0){
! |: R0 {! ~- s3 Y( K3 f" Q return eval(v.replace("this","u"))
5 {9 H* \' ~( U3 }! f9 i }; x- z7 I5 p4 D9 Y
return v;% ^/ c+ ]; q. f
}
! r; {5 E% |1 Z- o- l
F$ c$ f- \/ D4 L& g7 J $event = function (s){
( x" h2 }; @9 x$ A var $n ="u."+s+" = function(){$work(this,s);}"9 {% j- b* N0 J. `
return $n;7 Q. _: t' v n# r; }. S% m
}
. `/ ?% c7 A, ~2 X$ @% \$ ^% r- D3 {; _) d. V" e1 o) W+ h
$replace = function (s){
6 q: o. J4 ^" k9 C2 b( E3 m0 }* [/ } u& ^8 i D
} D6 A, R W8 C8 N0 q# w" ]
# O! H+ C& e1 p% [( g
$for = function (s,c){! s+ ]( l% h: E; t* j
var $n="this."+c+"()" ;
& j) p. _+ d4 p- k5 P if(s!=null){
1 o# Y& M# l9 l5 I; I5 \ var $m =$test(s);
9 v5 @ e; d' `4 r& y7 }+ | for (var i=0;i<$m.length ;i++ ){
' `) Z; w7 t. }0 U( w1 d3 s+ U u = $m<i>;
P' Y) E# q7 L+ y eval($n); [9 \0 w; @4 ^0 Q; v/ H5 W1 p
}' |' H2 ^' G0 z
}6 o# g* o4 U) h# Y
else{
( e+ {( v( U' ] eval($n);! c6 O9 o7 ~! _9 O" y! @- }
}4 d# I0 R+ w8 E) R7 h+ X
}5 T# a- W& Y8 c' s
; h( E- A, {, B$ w
$test = function (a){0 ?. T0 [2 h' ?2 o i9 `+ _
var o = new Array();$o(a.split(';'),o);
4 X& X3 Q1 G; r; }( @* X* w3 _ return o;
" E' P- R) z5 I. _6 G% B3 k, m }3 f% {9 y: M3 L+ X
% ] Y& v1 E, O* P0 p) x+ C $format = function(s){' C9 ~+ b5 I" ~' x
while (s.indexOf("'")>0){
4 a% l" `" V' r( p% r s=s.replace("'","\"");7 S7 i! K3 ~# C. X5 {
}
0 Z9 l3 \. n# O$ j) N4 K while (s.indexOf("][")>0){
9 b R! {7 P2 O3 T& K1 h" N s=s.replace("][","','")
, e2 D ~& \# `* G% x: s }
0 j" b- _; R# a7 O4 q, S# Y while (s.indexOf("[")>0){/ q3 U6 k( C. A3 F6 I4 a
s=s.replace("[","'").replace("]","'")
0 {7 ?1 `; X( D } # Z( x6 |; C9 T* w7 U, S
return s;
* b* d/ ]+ F- y+ x3 B; x }
! Q, _7 n& _/ t( j7 Y
$ j3 z. L, s8 B& E$ c% B& o2 N! a $work = function(w,s){: f, j3 v* V. Z, X/ Y) d7 n
u=w;eval(s). Y/ h' c) q# t$ Y, y
}
, _4 m! M0 N) _
{! \8 p* F- j9 {8 k, K" U9 G $id = function (s){4 u) V) q, D( W( u0 Y
return document.getElementById(s);8 M/ y2 ]+ P3 q( V& ^" Y# \
}
3 r5 b! c, [$ V$ Q
) p2 o$ t' p3 a% ]# j! t# n $name = function (s){
, G, E1 \* @2 c) U4 \ return document.getElementsByName(s);$ p, G) E9 O# M
}
# k/ f6 d# Q9 C/ C0 r4 `/ ~ C+ W1 b, d2 v
$tagname = function (s){
1 ~1 |& O3 B4 L+ G# ] return document.getElementsByTagName(s);
$ E! M0 b; h4 {8 n/ _4 { }
$ v) r/ N8 @# {/ R8 q
/ q M9 Y/ s! {0 f $o = function (a,o,c){
; {" l- Z; H5 y1 A. n$ S $push = function (n) {
9 |- \) {: k8 n for (var i=0;i< n.length;i++ ){
9 ]3 p6 _: b* W1 V o.push(n<i>);
8 X9 g6 v+ O) n( ^- e$ m& t }
! t- Y. M$ E. P6 s, M% t }
3 b( w6 k; b! n3 z$ m @ for(var i=0;i<a.length;i++){
9 G: I( t2 _! L2 g- [( o) | if(a<i>.indexOf("(") >= 0){& ?4 C* ~( x4 {* r3 o+ g0 r* a
c.push(a<i>);1 F, H9 z3 d7 U. X2 @* Z
}
* Q9 o7 f t: Y- U5 q& N if(a<i>.indexOf("~") > 0){9 K0 Z1 X' ]* K; I9 p
try {
0 V8 X: D: M; N/ k2 U, w9 w+ _5 A $push(eval(a<i>.replace("#","document.getElementById('").replace(" ~ @","').getElementsByTagName('")+"')"));
5 f# ]) E4 @' l8 l }catch(e)
4 T/ [, L3 u5 t) K {} & b; r/ h! b: `( N2 _& h
}
& m9 r/ n- L9 X else{: @% j- i- u5 g4 I! c
if(a<i>.indexOf("#")==0){
+ {9 a2 ^. J# r9 V) r! b. ] o.push($id(a<i>.replace("#","")));8 X' O2 @0 a8 p3 J5 g; I2 o3 U, O, O
}3 H) x Y' K$ r- f) ?
if(a<i>.indexOf(".")==0){8 O7 @" U3 m$ Y [7 N. g( P( f2 R
$push($name(a<i>.replace(".","")));
* J; G9 u7 z% w9 s% l }
/ F9 J1 g! |4 A& X( l: w if(a<i>.indexOf("@")==0 ){
7 E5 F+ a$ ]2 o+ K! |, b% x; A $push($tagname(a<i>.replace("@","")));$ b0 p' i0 b4 M$ [- Y' c" j
}
( c$ S2 _% x* K! k0 r7 v$ F if(a<i>.indexOf("*")==0){ m4 i4 E# W7 P p) G& |
$p= a<i>;& L/ A$ h8 J/ N% d
if($p.indexOf(".")< 0){4 S) p+ R" T' n7 X) w+ |0 r
$p = $p.replace("parent","parentNode")
: W) ]6 ]* H: w$ G }
+ B [1 k4 F3 B# V var $p ="u."+$p.replace("*","");1 s, t4 z4 e4 z) o
while ($p.indexOf("parent.")> 0){
/ G' P! B9 z% e, y $p = $p.replace("parent.","parentNode.")0 \# `2 u, b" E: }
}
* I6 p Y! N/ J# r( w# N while ($p.indexOf("child{")> 0){
' I7 _, f: |" H$ | $p = $p.replace("child{","childNodes[").replace("}","]")
6 e" M7 F4 N7 c5 L }% H7 j8 l/ D3 R" W: ?
o.push(eval($p));
, b% X3 Y1 O% m2 h }
; N! [3 P; ^/ B; a+ v if(a<i>.indexOf("document")==0 || a<i>.indexOf("window")==0){
2 ]' v! I) r+ B o.push(eval(a<i>));$ F: h6 s* S0 z( N8 n
}
' p5 \6 v; ?2 i" I/ l }8 c, D# y) V) c# k( _. s! J3 P6 p6 E
if(g!=null){ 0 Z8 Z% }6 V: `5 |3 j+ i
o.push(g);g=null& ^$ u( k' t# N2 f9 J& C% {* B
} 2 e& W1 S9 \9 R9 Q1 y, N
}! z }1 ?* r8 }9 w6 m4 A+ \
}6 q9 S( A/ h- t2 \
1 x1 m' L9 O: |" a( O $o(a,o,c);
1 M( I% f7 L' s* I, k8 N
+ W; Z. t" P: J; {9 a for(var i = 0;i<o.length;i++){
! s* k8 s1 B# Q8 l5 S+ |' K for(var j=0;j<c.length;j++){7 h) t7 s" p9 {* S- i- m1 r
u = o<i>;eval($format(c[j]));
. `; D% e9 K2 @2 A; w- G& b }
m" Z* o1 C6 C. E9 x! B }4 j5 Q$ q. k5 t
9 i/ M: O7 \; n# {) j7 f if(o.length == 0){
; |* u8 q7 X/ ]. ~, ^ for(var i=0;i<c.length;i++){
5 E3 K; ^+ }; t/ Q* ]* W eval($format(c<i>));
, q1 B0 X& c5 s- L' r+ Q4 u }
# u# N$ W p. t, |; |$ F }
# a) M' M0 D; c% Y5 a
8 D ?: ~6 U `$ z- A9 D3 E if(r!=null){
' q+ u9 N) `2 L* W# }# s return r;
% G6 J; M9 e' o6 H/ q }5 z. Q- v/ B8 M! M) c6 T4 _
* @+ R3 t7 m- ?5 J& @) [: x
if(o.length==1){
7 D* M% h. J K G! C' r, ? return o[0];* r# A @; z. x/ n% l. K2 {7 n- K
}0 i; c+ x; V0 t7 R9 C
else{- N: S& n) B' a* c& X7 Z
return o
2 `! k V3 O& ^% \) t }
0 T1 d. @/ w" v$ K9 {3 f2 [% A N) w2 V % _3 i8 t0 a1 n$ X6 \
}
8 c1 d1 z- E; t0 n3 L: {var lrc =$("#lrc;show()").innerHTML.split("[");
7 N c" I8 G: q" Q bif(lrc.length>5){) L' x; I1 U' ]: h* J b, X9 f5 L
var array = new Array();3 F# L7 N: k8 F3 F7 S2 f
for (var i=0;i<lrc.length ;i++ )
- |( j, _4 U9 r0 E$ A7 X{
# E, @1 C! m- e, l var g = new Object();: b7 |4 S; y6 C
t= lrc<i>.split("]");- N9 z+ M: {! I5 ?: |4 ~6 Y! n
g.time = getTime(t[0]);
! C8 Q2 M' {8 d( p, ^- y0 w if(isNaN(g.time))
4 w! V f0 ~ u& X- z$ E: e continue;1 P+ M& T7 C2 j
g.c = t[1];& x; L" O8 V; G# x7 t
if(g.c == ""): ]3 N2 j. y( e/ h
g.c = getNext(i);
; k# f W4 ~8 x' U8 d array.push(g);
2 L2 N# W& B" |2 P, u$ n8 O}- x2 U$ k# f; R( u$ M) Q
array.sort(function(x, y) {/ b. A" D) Q4 h& R) s
if (x.time>y.time)
* O* P A5 I* J# j' X! P return 1;2 \6 J/ F$ f8 i9 b
else if(x.time<y.time)/ t7 P0 C% J% e* R6 Z' {
return -1;
' S2 O( w L% r/ G3 f1 } else
6 b4 p( u; J8 p& ^7 E1 K6 W return 0;
% h( A) H" H( [6 W! E$ n } + f2 i7 l4 U4 F6 t8 y' F4 r
);
& `- R/ K' U- Q6 O0 [for(var i = 0;i<array.length;i++)
5 B8 r) X! ^' I+ d4 E& o{
6 i4 `6 W4 Y) e( F. Z/ k! c var g = array<i>;8 |" j% K* f: q6 H; u0 \
if(!g.c){( n5 |0 w1 W8 y3 J
g.c="";
1 j9 N. g/ l& h }
8 R6 Z& b/ C! } T2 U7 z/ Z $("#list").innerHTML+="<div id=lrc"+i+">"+g.c+"</div>";
! J! f! V' G5 D; H' E: q: B% A& x}
* S3 j, S+ G" B: h2 Dvar time = setInterval("lrcList()",500);
1 B& X9 w$ F( f8 G; S5 b+ [: ]}else{
" |/ V8 v4 Y n3 S0 J $("#list").innerHTML=$("#lrc").innerHTML;
; B! W; j# m) r) N2 e0 K: g1 w}
% K! t2 I, N) Q( a4 Y4 Ffunction getNext(i)
& W% a7 s; d4 R$ ^( e{
) v0 S2 w7 _9 H0 e& T4 k% W var result = "";* Y; j6 Q5 N+ f( ]) [; F- _2 W
var i = i+1;
5 t& ^ ~! b8 S% I1 [+ j L7 Y t = lrc<i>.split("]");8 {; h5 _( |6 t
if(t[1]=="")0 D0 G) H3 f! c0 z4 j. z2 ?
result = getNext(i);9 @% G: U: D; l2 a0 c: k
else
3 J( t! L& F# A- K: e2 r+ M' E3 c result = t[1]3 z8 s q* N' b4 J- F0 \6 r$ U
return result;: F6 @" q. A7 C6 v- `) N5 l6 s7 P! `
}
+ M% |$ ~9 I; \) N% J2 S$ y8 K& U" s2 p
function getTime(str)5 f( T- K$ T' ?! [$ A
{
/ `* G: P: G8 g1 `8 G' g6 [. o var time =0;
5 {, x! M5 Q1 U" C* I- y var ta = str.split(":");
- J* p9 t' H! i; L if(ta.length<2)
) h7 j n) B1 ^0 K" _7 ] return time;
+ v, m# k: f7 d% j6 t* O; v0 r- v' E' B# o0 y7 b
if(ta[1].indexOf(".")>0){
0 O8 S0 @1 w( W# F5 e0 w% q. c, ` var tb = ta[1].split(".");. Z1 y& O9 S& U4 G6 @
time = ta[0]*60*1000+tb[0]*1000+tb[1]*10;
7 C" r% L1 B4 l8 R8 t3 q2 g* m }
% y" n% L; [, ^2 S2 S: V1 j% M8 j else
% \4 W) u- N4 b; j; X- m& Y B time =ta[0]*60*1000+ta[1]*1000;
* ?$ v" P" z: S& q8 H5 z3 b return time;
' W* L6 R. [ F( H) ? ?/ y% H}
' u8 @* W; ~, ~/ v6 xvar preTime = 0;
( f7 h* \9 j) J8 Tvar nextTime = 0;7 ~" y5 }( e0 {4 i$ x9 D; m. q. D
var currIndex =0;
2 n$ Y9 g$ J* @ n% Mfunction lrcList(){# _" m, a1 S& g* E( a
var s = parent.document.getElementById("MediaPlayer").controls.currentPosition; B! b% d4 R2 h# V8 n
s = s*1000;
# g; G# a6 [, q# C if(s==0){
9 `* Y$ }( V" j5 c% @" ]5 Z6 ` currIndex =0;3 H8 L1 ]( K: X& F8 ~7 n
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
7 O# }" D L7 x. u7 c: D1 V" J for(var i=0;i<array.length;i++){
, I% J4 q d! L0 t& j document.getElementById("lrc"+i).style.color=colorNormal;& B+ c( N& S b1 ~
}
" a. z! g4 c( ^ z return;
, e; q6 g8 f/ A8 @$ e* J }& p5 n: |7 A0 J( F3 o- ]
if(s>0&&currIndex<array.length-1)0 a; V" y7 Q! t d
{ \/ L! ^6 f& c
preTime = array[currIndex].time;
1 V, w7 {) S2 t# ~8 f7 {4 ?
: M* t( v- W7 `- J. J. t7 ?* K. w O. p nextTime = array[currIndex+1].time;
' x1 k# D3 v9 }+ L, N ) t( K: E) s# h8 V8 C
if(s>=preTime&&s<nextTime){& x7 T/ d0 T e, X$ v
}& }2 X* n7 S9 n* v$ T' ^5 |9 M
else if(s>=nextTime)
3 _6 w$ L$ t3 N5 x' ` {
6 ?# X1 V/ |' v$ ` document.getElementById("lrc"+currIndex).style.color=colorPasted;
3 ?* X5 i4 E' g currIndex++;
- F! t4 `0 K1 z5 @ $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
: c& W; K/ k: o" G5 G0 f2 u document.getElementById("lrc"+currIndex).style.color=colorPlaying;# `5 A6 m, b8 y
lrcList();0 Q/ W% L0 r: u; i! b4 f
}
# }. U3 J1 m* p3 x+ \# l: l else{
4 J8 A9 F- k9 u- O! G* n document.getElementById("lrc"+currIndex).style.color=colorNormal;
9 o: Y1 D2 M1 U3 i+ s currIndex--;
3 \' t: Y( G. r" X! A- f7 d $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;- p2 c0 p7 m* }3 M5 m4 _
document.getElementById("lrc"+currIndex).style.color=colorPlaying;8 N: D! X2 e6 A4 j7 l3 I' L
lrcList();, K+ G4 t7 ~! c1 r, J4 W( z3 v
} 6 C! J) N+ j; a4 V
}' R e( n3 X& h. M: q8 ~
else
w1 k: E9 x& d" M& W% ^. o8 a {
2 n T5 d- f( D3 P. x if(s<array[array.length-1].time){6 X$ H+ D) V! Q c3 N5 |1 q
currIndex = 0;
; Y4 V8 N; j: C. E$ P $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
$ J' Y, T# D6 L0 ~ for(var i=0;i<array.length;i++){; s7 A4 F9 Z1 w2 ^2 O+ E
document.getElementById("lrc"+i).style.color=colorNormal;9 J$ i3 q/ ^: P u4 W4 W9 t- R' Z) A
}
- l; b! [3 }9 U lrcList();" V% C- z6 U. S4 l2 }( x
}
! F b/ N3 r q }
! f7 Z. j- g& j$ ?, \. ~2 `}; K* d- H8 T, k9 H J! h; G3 A
</SCRIPT>* p1 m1 ^( n6 J. q9 ]3 u
</DIV></DIV>
" g Y: v; ?" Q. d9 L- a. S7 Q) M% @( O* j' \5 b
[ 本帖最后由 幽谷兰 于 2008-9-18 17:36 编辑 ] |
|