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