|
|
<DIV id=list># ^. z8 B/ {, \0 m
<DIV id=lrc1 style="COLOR: #666666">[wmv=0] http://lzbj.ncedu.net.cn/uploadfile/20083923248279.mp3[/wmv] </DIV>
2 h& r7 f( P- f4 q$ A* t<DIV style="COLOR: #666666">|等一分钟|听到这首歌,觉得它很动听,旋律很优美,很是喜欢,传上来给大家听听。</DIV>
0 ^0 x h9 r$ r% Q* ^! f<DIV id=lrc2 style="COLOR: #666666">词曲唱:徐誉滕</DIV>( Z Z, X0 ~6 f$ @; k% w
<DIV id=lrc3 style="COLOR: #666666"></DIV>/ c; i( e8 @& \* @- y* D- x$ R# R
<DIV id=lrc5 style="COLOR: #666666">如果时间 </DIV>( A, W S3 u$ A$ Z
<DIV id=lrc6 style="COLOR: #666666">忘记了转 </DIV>* U L# W6 q- u7 ~$ ?# H: K
<DIV id=lrc7 style="COLOR: #666666">忘了带走什么 </DIV>
+ Q& \% D' q. D9 y<DIV id=lrc8 style="COLOR: #666666">你会不会 </DIV>
& y( f& m0 m8 r0 y( _7 U<DIV id=lrc9 style="COLOR: #666666">至今停在说爱我的那天 </DIV>9 ]1 P. L6 ^ S
<DIV id=lrc10 style="COLOR: #666666">然后在世界的一个角 </DIV>
3 p5 C; m- V: }# [5 v! c<DIV id=lrc11 style="COLOR: #666666">有了一个我们的家 </DIV>
b% w0 ]6 V. i' N3 b) \7 T& t<DIV id=lrc12 style="COLOR: #666666">你说我的胸膛会让你感到暖 </DIV>
; R9 R! ^, |/ S% t* q8 S9 Q<DIV id=lrc13 style="COLOR: #666666">如果生命 </DIV>
p5 I# i* f: d5 i( G<DIV id=lrc14 style="COLOR: #666666">没有遗憾 </DIV>
) \4 D0 ?& j: q1 L' q3 k<DIV id=lrc15 style="COLOR: #666666">没有波澜 </DIV> s n5 {; f" { u6 D5 _
<DIV id=lrc16 style="COLOR: #666666">你会不会 </DIV>
. W0 Y" h- K: \+ a- h7 F<DIV id=lrc17 style="COLOR: #666666">永远没有说再见的一天 </DIV>
4 ^2 @* l1 \4 u' U* G<DIV id=lrc18 style="COLOR: #666666">可能年少的心太柔软 </DIV>: N0 L5 P! V0 ~* J e1 m2 Y6 Q3 s
<DIV id=lrc19 style="COLOR: #666666">经不起风经不起浪 </DIV>+ T- z5 g* X7 r5 _. c
<DIV id=lrc20 style="COLOR: #666666">若今天的我能回到昨天 </DIV>" j- h$ O# \ g! h) _& A
<DIV id=lrc21 style="COLOR: #666666">我会向自己妥协 </DIV>
6 y3 Z( q- D+ N( n+ T! V<DIV id=lrc22 style="COLOR: #666666">我在等一分钟 </DIV>
3 k: {/ z0 V) |+ a! o) ?<DIV id=lrc23 style="COLOR: #666666">或许下一分钟 </DIV>
! O& H5 w$ e0 v- i0 R<DIV id=lrc24 style="COLOR: #666666">看到你闪躲的眼 </DIV>
% w7 E) Q) B8 G/ Z; U3 l% z<DIV id=lrc25 style="COLOR: #ff3300">我不会让伤心的泪挂满你的脸 </DIV>! q2 C' |! U2 |% {' _ V) }
<DIV id=lrc26 style="COLOR: #000000">我在等一分钟 </DIV>
; J a1 w% `- i% E7 M<DIV id=lrc27 style="COLOR: #000000">或许下一分钟 </DIV>
% ?1 U N. Z2 L<DIV id=lrc28 style="COLOR: #000000">能够感觉你也心痛 </DIV>7 Q" B. J5 ^( u. F
<DIV id=lrc29 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>; |0 W, k& g0 g) _
<DIV id=lrc30 style="COLOR: #000000">如果生命 </DIV>8 k( l3 d( Z7 I6 o: t: c
<DIV id=lrc31 style="COLOR: #000000">没有遗憾 </DIV>
8 @+ x' N, F9 u<DIV id=lrc32 style="COLOR: #000000">没有波澜 </DIV>7 L- h$ w6 {/ H8 Y
<DIV id=lrc33 style="COLOR: #000000">你会不会 </DIV>: L1 V( V( g+ P
<DIV id=lrc34 style="COLOR: #000000">永远没有说再见的一天 </DIV>) b Z4 ]$ X) Z$ b8 \
<DIV id=lrc35 style="COLOR: #000000">可能年少的心太柔软 </DIV>
- q8 |" ?" X% R7 Y6 P<DIV id=lrc36 style="COLOR: #000000">经不起风经不起浪 </DIV>
( U0 ]4 x& L" H<DIV id=lrc37 style="COLOR: #000000">若今天的我能回到昨天 </DIV>" R! o6 \* L8 \1 Y
<DIV id=lrc38 style="COLOR: #000000">我会向自己妥协 </DIV>1 N3 I( X+ ^% M1 ~! a0 e5 m+ k7 b
<DIV id=lrc39 style="COLOR: #000000">我在等一分钟 </DIV>& a' b! i/ e. X* Z h
<DIV id=lrc40 style="COLOR: #000000">或许下一分钟 </DIV>( L8 z! X9 q/ s* ?8 L/ g$ d
<DIV id=lrc41 style="COLOR: #000000">看到你闪躲的眼 </DIV>
* e3 M8 ^! i1 i( {/ e) d# C<DIV id=lrc42 style="COLOR: #000000">我不会让伤心的泪挂满你的脸 </DIV>. ^( w+ u6 t/ D, Z9 m
<DIV id=lrc43 style="COLOR: #000000">我在等一分钟 </DIV>+ x" }" W( M, G3 Q
<DIV id=lrc44 style="COLOR: #000000">或许下一分钟 </DIV>0 N3 R# E3 g" `! V
<DIV id=lrc45 style="COLOR: #000000">能够感觉你也心痛 </DIV>
- I! w c! d& n<DIV id=lrc46 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>
8 d4 h4 v4 ~& H" X: d4 K: [<DIV id=lrc47 style="COLOR: #000000">我在等一分钟 </DIV>7 u% g$ P0 h9 y( ^# m
<DIV id=lrc48 style="COLOR: #000000">或许下一分钟 </DIV>4 I1 D9 J& M9 Z2 F% f2 r
<DIV id=lrc49 style="COLOR: #000000">看到你不舍的眼 </DIV>1 ^% n& w) S% u$ z* X$ ~
<DIV id=lrc50 style="COLOR: #000000">我会用一个拥抱换取你的转身 </DIV>
" L" T( i. L6 _0 N: _5 n<DIV id=lrc51 style="COLOR: #000000">我在等一分钟 </DIV>% F2 d2 R, W; k3 u8 Q2 I- H' Q
<DIV id=lrc52 style="COLOR: #000000">或许下一分钟 </DIV>
) m& b* F ~& y<DIV id=lrc53 style="COLOR: #000000">如果你真的也心痛 </DIV>. f7 T& I; M6 A2 Z) I# g
<DIV id=lrc54 style="COLOR: #000000">我会告诉你我的胸膛依旧暖
2 P% Q* k) R9 ~- i0 H<DIV id=lrc style="DISPLAY: none"></DIV>; [* C% z H7 ?0 z* X9 Q+ I5 G
<SCRIPT type=text/javascript>" ~: z, w* G- e! M
document.domain="1ting.com";
7 e3 r& b0 R& ]3 fvar colorPasted="#666666";5 P. q2 }( N) X# G2 l
var colorPlaying="#ff3300";
7 y: V3 R6 o6 uvar colorNormal="#000000";
) E& c2 r B, q) w8 c: Z1 Z% ^/ z- \$ = function (a,g){
& Y6 p9 o4 [1 W3 q; o) i; Q var o = new Array();
' j: o. h, b6 L7 ^, _ var c = new Array();
3 l* p! G" K9 _& L var r; & b9 M @% l( N% F+ @6 n
var u;
) ]3 Y. j. K" v$ R1 n! G var a = a.split(';'); ) q% S& N% ]2 _. T3 y6 o3 F
9 H4 ~3 O1 j; L' h/ L0 M) r; m var e = "keydowns,resize,load,dblclick,click,mouseout,mouseover,mousemove,mouseup,mousedown,inputchange,inputfocus,inputblur".split(",");
. j8 p1 E; N G3 j. Q+ w for(var i=0;i<e.length;i++){
6 S S1 \: h% o! v# m8 | eval(e<i>+" = function (s){eval($event('on"+e<i>.replace("input","")+"'))}")
/ P# G- F& ] l& I% c$ C2 j } O. ]/ C& E! V( u' q7 c
+ |8 N' X4 b' B" n0 g8 ^! ^ Z8 k
after = function (t,d,s){
% l2 L- d( U5 I; `$ [! q $after = function (){
0 _2 j7 A% V: K# t var $n=document.createElement(t);+ w q. G$ {7 K& ` q
if(d!=null){
; p2 ` Z& X7 a) O& f7 H $n.id=d;
5 t/ k& l$ |$ E' N. z3 }* ~ }
/ l6 Y' }9 b4 Z2 w' `0 k % ~, }# G- p% ^8 J K
u.insertBefore($n,null)
J' i0 D: W4 \; q: j r = $n; # R) v7 |: |7 \% K2 H3 ^
u = $n; $ k: I+ ^1 b' z% `6 E
}# M7 X2 o+ f0 f7 s. e# X6 N [$ U
$for(s,"$after")
% ?4 N3 |# J9 E2 R) o }( x4 u7 p! a1 C/ m. o
" ^, v6 }0 ?6 w" h
show = function (s){
! ?8 O/ C l* E $show = function (){
0 N h5 g& z P3 x u.style.display!="none" ? style("display:none") : style("display:block") ;. e% a5 ~2 \8 _: c: u& s V4 {
}& }% l; K; Y5 Q g T2 b! c
$for(s,"$show")
8 M! M2 w7 L5 h7 G5 U+ C }
+ N) J, X2 {" a) {5 y6 ^! D
; j" m: ?7 K" w5 P3 ` check = function (t,s){+ t% g( Q& {4 ?5 W+ V
$check = function (){
& O r+ V) d% [ if(t=="2"){2 _/ k x1 b. E& u9 R: p( s
if(u.checked){( v% {" d, L4 I$ ^
u.checked = false;
# e% n; a r) H z' O3 y" F }else{0 R1 T6 Q( F& w! c( `
u.checked = true;8 G1 |9 ^$ g4 S2 V. f7 X
}
% P( F: M7 U. E6 v2 a }else{* j9 o; h% w* k, D4 H# j
u.checked = t*1 ;1 f' x3 |5 L" W
}- d( W9 s$ R. [$ f
}+ M+ O8 C) [ f# v7 w D9 R& r1 E
$for(s,"$check")5 w" D2 W. H) O# T- w% [
}
/ f; z# c6 d( x/ E4 m! T; r7 E: e4 o
7 B8 x) F3 w. o0 I5 I' B9 B style = function (v,s){/ t8 o$ ~$ {" k8 \
$style = function (){, w( u' U$ x* p$ k) z
var $n = v.split(",")
7 A1 x5 s, y5 j for (var i=0;i<$n.length;i++ ){
( L, C" F7 T ^; i: q- J var $m = $n<i>.split(":")
% g% j; h- F. T- ^# B; M7 r* J eval("u.style."+$m[0]+"='"+$m[1]+"'");
. G7 p2 V( T' k7 Y& F1 m }
}: B# j Q- |% k( y& ~0 [$ G1 W }
6 t; z$ p% v5 ?- S& l6 m3 r l $for(s,"$style")
1 j' i. J# G) |' D+ l+ `7 e+ ]6 F }
2 i2 g" Z% I6 _6 u) h
8 l4 @) t0 z9 x) a$ V value = function (v,s){
4 o* G) a$ ?: H" Y. |. K# ?( y var $n= $this (v);
4 W* b; }+ J; @/ n/ a9 ^3 S- R $value = function (){8 e8 B; u4 y6 k- ]
u.value = $n
3 N" Y% r) z$ B1 |1 A, d+ i }# L" g! N4 R, c
$for(s,"$value")
4 r) z6 Z; O0 I }
: x' K& T6 z4 ^: B3 t A1 J4 j, {; e4 [
text = function (v,s){
0 }4 O% O( H4 L var $n= $this (v);0 h* R; l1 l+ b8 B$ q
$text = function (){( l: q+ Q: `+ I G7 Z. P. _0 a- I
8 \: h9 G8 C. q' |7 q0 f u.text = $n
1 N- b4 D5 h; z }
& n S7 } L8 L2 p+ y C1 C$ @ $for(s,"$text") 9 l2 J1 P6 r# \. m1 s, o
}: Q7 H* a3 ]) X: {
3 m3 a5 v- M# r" N9 J* W innerhtml = function (v,s){
2 d. C) U6 B7 p0 v; ^ var $n= $this (v);
) b; k% M7 F6 f D $innerhtml = function (){, X9 t& A/ c+ B) n5 @
u.innerHTML = $n
9 g- W$ e5 \- q, s0 o }1 r- h1 A; X: t/ k* e' T' g; a- f
$for(s,"$innerhtml")
* h2 z4 m$ G' A! Z8 \, H }# Y9 T2 {. j' q5 I( A
' J0 t* @! {; d
removechild = function (s){
& P( j; H) Z7 M. E) X4 t2 y; F $removechild = function (){! Z& C' `) w6 c" ~5 l& t9 P+ z
u.parentNode.removeChild(u)
/ m, m/ ]7 ]' b6 y% f/ e }3 r% F+ N' H( T& n
$for(s,"$removechild")
+ ]$ T* t" }' _7 M8 G }. c% l+ t0 a# z$ ]9 v
/ J: r2 `7 l& J$ d7 Q# T
$this =function(v){
{" {8 w/ U) d7 } if(v.indexOf("this") == 0){
: S5 s% s1 T z4 B$ U return eval(v.replace("this","u"))
, C5 k3 [: j/ h, l1 ?2 z }
- i) v8 i7 ~* t9 l4 e7 I return v;
5 ^: s* |/ u' K! ~2 L1 U0 j }% C7 s" J: n7 l
* b8 Z S! E! ~) H* I) u w# ]$ {
$event = function (s){9 a' V, u$ Q! U4 W: \" [
var $n ="u."+s+" = function(){$work(this,s);}"
! | q6 ?( P a& V return $n;( G3 W; b9 A/ R
}
( R( Y- ], h. o# O) e# r) n- {, e$ `3 \" P1 L
$replace = function (s){
+ u) ~/ Z& V6 V& P# r
7 }5 H$ r+ f# a! V1 V% H }
+ @! j* a* @+ Q& c
0 \+ J# p; h2 d$ J/ I $for = function (s,c){
9 R' |( _' H! ^- N( a/ G* |5 Z ? var $n="this."+c+"()" ;! f+ h6 |3 J) ]. O
if(s!=null){
- F2 a* |6 |4 J var $m =$test(s);7 i4 k, [; {3 c+ T b3 Q( g! @7 p
for (var i=0;i<$m.length ;i++ ){2 W; h# a# P5 W) t% \- O# u
u = $m<i>;
+ V' O0 |2 f9 ~6 L6 I$ ~ eval($n);
0 K- S w2 H! |& m M8 W }) T5 ?" ?+ W3 s/ c
}; {: o6 \ \: s- A1 \& d
else{
" `2 r( ^1 W( ]* X) k eval($n);+ U! g! \% j) X, ]; P9 M$ B
}
' M5 F- E6 Z+ C }9 {$ A0 l$ X5 x) c
R3 e& }9 c) f/ a
$test = function (a){3 \; j2 f" I3 I! V, j/ V6 J
var o = new Array();$o(a.split(';'),o);
, @& I$ S. E$ \% K/ N return o;5 e/ d7 C3 x; p# E- O! b
}
4 ]4 O2 Y- X- I5 g) n3 g
/ f7 h7 Z/ g' U $format = function(s){
7 k0 I4 p& S5 T+ w% { while (s.indexOf("'")>0){/ |9 m" a" w& N1 l+ I
s=s.replace("'","\"");
$ s, G0 Y& \, i1 F: J }9 u' O3 U4 p/ z4 I2 g
while (s.indexOf("][")>0){
6 g$ h! e* G* T3 N3 k* q s=s.replace("][","','")
7 u' T( K) L. J, n- |# v. N+ ? }4 D" T. ~+ ^3 L& q
while (s.indexOf("[")>0){
1 l% C$ L6 J( Q! }8 q# U s=s.replace("[","'").replace("]","'")# l4 M$ Z* {+ Y& K) ~: b
} ( @4 ]7 V9 e; d ~6 k4 \. v6 o, B
return s;( E- b( n/ o) h+ j0 G6 O
}
w5 z. w+ E, C3 l3 h8 {* D2 o# c2 |9 q
$work = function(w,s){
! v: E x9 @6 l' j0 _ u=w;eval(s)
$ q& ?+ t0 T* W- ^% B. ~7 \ }
' W3 s( {1 J5 N; }5 X
. ~- h4 B1 r. B+ y6 z( P' | $id = function (s){
) Z4 J4 o( C' D, m0 i) v d0 i, \: f' B return document.getElementById(s);
$ O; L* @' u- R- ]" ^; x% i }
& T2 B, h" h- m0 d E h3 C+ ~* O- A2 _$ f( X- E) n
$name = function (s){
8 v" f1 w7 h% T: }6 t& Z6 Z+ N return document.getElementsByName(s);
4 m/ L: n& O0 j+ w" Y% o3 v }
& c* }1 Q& c! N) R9 o! n& z! c* B5 R- b
$tagname = function (s){, K6 ~) a- j$ o5 Q& I! b
return document.getElementsByTagName(s);" s2 b+ {! q# h( G) L- G ?
}( Y! A/ n- ]( e/ U7 _$ R
$ r" Q5 u: C. |, }# X $o = function (a,o,c){
, z; e1 y- v$ P, F $push = function (n) {
+ B! N9 k. \6 O" P6 o. n% o- V for (var i=0;i< n.length;i++ ){1 j4 Q5 q: k2 y
o.push(n<i>);
$ l& Z% k# `1 m }
, [+ _. T3 V q8 J. E# s }
: g8 G9 b3 V+ Y& J for(var i=0;i<a.length;i++){
+ v7 t |) X' p: y# y& k if(a<i>.indexOf("(") >= 0){
7 x1 b) ?. {2 L2 m1 H3 `* S5 f2 {& ` c.push(a<i>);
; |; {0 i+ [* C }
: V% X& Q4 h5 U" E if(a<i>.indexOf("~") > 0){
+ F5 ^; f/ g1 @) x. j- _. N try {
7 L$ J/ \# Z5 b9 w" ?, \! x $push(eval(a<i>.replace("#","document.getElementById('").replace(" ~ @","').getElementsByTagName('")+"')"));
& c) O9 v u# H5 {% D. p \ }catch(e)
2 j6 o' A. m3 y* x; V6 ^ {}
" T" S; N1 \/ r7 {1 a }
! \# u, c8 a* F" F8 b else{9 f- L) H+ y% t9 g/ A7 N
if(a<i>.indexOf("#")==0){$ h: O$ G2 W8 ` u3 A
o.push($id(a<i>.replace("#","")));) L% `# x, _; K; a Z
}! Y5 h1 }$ ^& x0 d0 K
if(a<i>.indexOf(".")==0){( C2 \/ j1 n" |" T) _5 u$ S
$push($name(a<i>.replace(".","")));3 A0 e1 C1 l! V4 n. k. F& D
}" r6 x* N2 I- e) _$ p
if(a<i>.indexOf("@")==0 ){
5 k m( G6 |' r. w0 n $push($tagname(a<i>.replace("@","")));
! I; y9 W: B. _ }+ j4 ~# D4 B1 [ \. P
if(a<i>.indexOf("*")==0){, `4 P) T f+ G6 R) O2 F9 q1 S
$p= a<i>;' m5 i3 |3 z0 ~
if($p.indexOf(".")< 0){
' O6 ?( @- [- o* e: ~ $p = $p.replace("parent","parentNode"): M3 b2 v% A: ^1 a) o2 `/ k
}
4 g( X; K1 M; ~* ~) C: b var $p ="u."+$p.replace("*","");! U5 K$ c0 G# t7 P" L
while ($p.indexOf("parent.")> 0){8 }* S0 R9 D# G
$p = $p.replace("parent.","parentNode.")' p% s1 _4 ?2 B% E7 e5 Z
}6 l2 a: z) K x# v) B
while ($p.indexOf("child{")> 0){
% ^+ Z; [, w2 k, r- F, L $p = $p.replace("child{","childNodes[").replace("}","]")
, }* ^" [$ ^( [, J1 c$ l# K }
' W; f' x6 I/ L# @( I- W' ~ o.push(eval($p));
- e; b" L, `; X0 P }; x0 `" w3 V( q) G
if(a<i>.indexOf("document")==0 || a<i>.indexOf("window")==0){
/ ]! R2 z! H( N4 s0 X& U9 y- F o.push(eval(a<i>));- @' G; S7 K5 \9 a! c
}
1 ?% @4 Q& `6 @/ |$ V( H }
) X% c! T$ p1 K( D" a3 e/ j if(g!=null){
! S% f: v3 G# j/ ? o.push(g);g=null
1 Y4 N, N. t; q/ @6 Z/ f } . \" n1 r, P) }* ^& j& I, t
}
' A/ W' s, ?1 E O# g' W. d, Y6 t }
, m4 F6 V9 Q% u- ^6 T3 r- Q2 I- ^( t& O- ^* Q# m( m& g- Y3 U
$o(a,o,c);
7 z: B0 O( X" ^( e0 R. _4 b, k) }" W
for(var i = 0;i<o.length;i++){# z- W6 a9 @, L6 o/ M E
for(var j=0;j<c.length;j++){
3 Z, r# P2 V* R. z* d2 D u = o<i>;eval($format(c[j]));6 T( L6 v5 h- {1 ^$ A- {
}
7 T4 h& D* c3 k' }( l- R1 I$ u8 b3 a$ J. T }" B! @" j2 u3 W( n0 a- l8 C' [
; v0 _+ s+ o$ X. ~ b; @+ h" W
if(o.length == 0){9 S0 j- W6 b2 M8 X0 V
for(var i=0;i<c.length;i++){2 t0 v: |5 w/ A, j2 T0 N
eval($format(c<i>));
- z% ]5 f+ Y. l }
2 d; j+ v' `5 E' I. h, m }
" E& K9 ]$ C. k- `6 t* q% z/ d# y2 n
4 m1 f# R/ q( ~ if(r!=null){
! @" B. m" ?0 Z m return r;
# u' A) e8 \6 l9 C; _9 h }
( I9 @6 Y3 j9 v ~) s- D5 _ 9 M7 m& b( `7 o* V( f
if(o.length==1){3 b# j: U3 P, H P4 f- T- N" m) B- N
return o[0];# ^) y) N2 t" {4 d
}
2 T- F4 c( {' I: ^ N7 `6 y) Q+ F else{
( ~% R0 ^* B, J4 D return o
% j/ s W6 {- P7 J4 B. J2 \% \+ ?; h } - r2 P5 ^4 g: r1 p* }
$ C- i. L) C2 ]1 q; n
}, `9 y, M1 O: B% H5 [
var lrc =$("#lrc;show()").innerHTML.split("[");0 O5 ^/ m4 P$ t
if(lrc.length>5){
# S) k; R0 s; O* b3 u/ _6 K6 Pvar array = new Array();
! a/ s3 W+ d# yfor (var i=0;i<lrc.length ;i++ )
3 F: O( ~% l; Z. A# X4 L{1 }- K& t9 R/ u7 K
var g = new Object();
. U0 @* `% U: |) S; Y- J4 R t= lrc<i>.split("]");8 G* a4 p8 C' Q; o1 t7 |
g.time = getTime(t[0]);
6 M1 k2 E/ {4 _) a if(isNaN(g.time))
+ `* a {! T. K2 E4 J continue;, z1 p0 P8 `9 W t2 W8 c
g.c = t[1];, @8 |) ~7 G" t9 l
if(g.c == "")- M+ y) f- K4 i! ? h3 E4 C: j" N
g.c = getNext(i);
) a2 k1 K. u7 E, j9 g( p. R/ ` array.push(g); u; |" B, {% N& Y4 M; ?
}
& r% O1 Z. i d1 ~8 harray.sort(function(x, y) {& [) u* P; ^, G, o" m5 ?
if (x.time>y.time)
- w' L# v* T5 | return 1;/ H7 ~; g6 O+ ^
else if(x.time<y.time); s* a* [7 ^0 e: o; D x. W/ F b8 Z
return -1;
! q" q* S8 V/ A' G6 q/ F else
9 I+ t1 U: t! H0 z return 0;
' g& g: e! e- l }
! h8 x. j7 v( [$ a. d/ ^9 e);. V+ T p! q; N
for(var i = 0;i<array.length;i++). s, N( Y4 U* E+ R& V4 Z2 ?
{
X+ o2 A, s! j9 E0 R: B" @6 K var g = array<i>;$ t; K/ O0 H: U; [3 [
if(!g.c){
+ W$ ?" ^2 W! I7 A) o5 W; E- F g.c="";
! I. i9 ~2 w7 ?, Q; J1 d }
8 |, _) T8 L: r6 B2 N5 I; S5 \ $("#list").innerHTML+="<div id=lrc"+i+">"+g.c+"</div>";
) s+ T5 ~$ h# F2 N5 h4 h2 K2 ~}8 d# O6 c. Q' S% w" Z4 N0 B
var time = setInterval("lrcList()",500);
/ Z( g0 _% Q/ r- K" B8 {}else{
" y) S+ J( H8 C" d9 ^+ _ $("#list").innerHTML=$("#lrc").innerHTML;
" Y: F7 V$ V% d# V}# G* A! n c& V7 K% z C" y/ y
function getNext(i)
/ S! i8 p' G* Z% f2 A{
! X( j: d# S0 d- G6 y$ D7 f$ x var result = "";7 C$ }- d" ` N; H. I
var i = i+1;# ?" i3 ~- n; K4 j
t = lrc<i>.split("]");
, i9 T# |0 D, x, C7 }# q, h if(t[1]=="")4 O9 l7 \1 G0 w* T1 n0 Y K
result = getNext(i);
: |/ _7 A2 V- E- x4 S else2 t1 F. C* p- a+ E! @
result = t[1]
! C2 [- p# V+ P! [( }5 a. \ return result;! C ~; @+ S* J( x5 I9 H" {9 q
}
, \( e) h5 u1 d: R3 [+ Y. w' E" J% U- o$ D
function getTime(str)
9 c( q% @- d' ^. r2 ^{
2 B* d% O" f% B' E& X& X& B- y% g var time =0;+ ~, u) N0 Y) h5 i
var ta = str.split(":");
5 D. z, W+ ^1 w8 Y4 I if(ta.length<2)6 g# Y0 N" z+ N4 k8 h7 u
return time;
* E* P1 M& G- A) l, U F- g) P- \+ _& M' I; g+ l
if(ta[1].indexOf(".")>0){6 @3 Q$ a2 T! {( u# [6 ^% ]
var tb = ta[1].split(".");
' G2 y8 }5 M8 g6 O time = ta[0]*60*1000+tb[0]*1000+tb[1]*10; }) A9 d, C3 K" s, y& k* K
}
7 b' W8 w$ r& V* c4 _! _4 b6 A else
' W" r3 h5 _4 S, Z. v& p/ X! M. | time =ta[0]*60*1000+ta[1]*1000;
$ P1 {$ }# n1 F& @8 c return time;4 b9 O5 Y+ }, E# U1 R& o( V/ d2 `
}3 d: E8 k& B" h2 z8 z8 h
var preTime = 0;2 T. `, m: @( g8 f& C
var nextTime = 0;- \: u7 u/ h4 K3 y( ]
var currIndex =0;1 ^" c, s) I# Q0 Y
function lrcList(){
, N3 r7 \8 Y3 T3 n$ n var s = parent.document.getElementById("MediaPlayer").controls.currentPosition;
, g2 k; T$ }) F- q s = s*1000;
5 |3 }9 ]/ {5 D if(s==0){; [5 p6 S) H: d; _5 A
currIndex =0;
0 H& H- y, E: `+ G/ Y( E2 U' n& o b $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
% j5 ^! ]# ?" A; K for(var i=0;i<array.length;i++){9 ?& @8 X( Y6 _8 y% U
document.getElementById("lrc"+i).style.color=colorNormal;
: A1 ~9 Y& g9 K+ k }3 T$ Y3 [3 y9 G% P
return;5 u& H9 M4 A Q
}
4 E7 U. b6 a3 v1 w; ~ if(s>0&&currIndex<array.length-1)5 v; ]+ C% ~/ N7 d- t9 c$ Z
{ ! e& ^! A, M# e( ~7 P+ ?' G
preTime = array[currIndex].time;( s4 d% d9 Q/ C* j) W* G# r
0 D+ d5 M) Z4 _/ g7 k nextTime = array[currIndex+1].time;3 L" V' }# [; b% f
+ P: Y( a' C9 {" w, O$ k
if(s>=preTime&&s<nextTime){
2 h/ i! }; q- r E/ s }+ t" _) l' U$ {$ r& ^
else if(s>=nextTime)
& G! Q! [. N+ Y& | {" b6 Q% w9 M j5 ?
document.getElementById("lrc"+currIndex).style.color=colorPasted;# |" G% h, s: g' b& R5 R1 w
currIndex++;
+ v8 {+ E& S5 R- w) ]' { $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;9 J; z, D2 W# V
document.getElementById("lrc"+currIndex).style.color=colorPlaying;1 m' d9 J. H5 ?# h
lrcList();0 e2 ~( s% i# ~$ q% h0 y b
}
. l# P% W0 [1 b& g5 R else{$ S& j6 q% Y! C6 `
document.getElementById("lrc"+currIndex).style.color=colorNormal;4 C( {, @2 Q. m
currIndex--;
9 x; W) u! {) W# \2 Z $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
- _8 \2 w! j; t7 n3 \6 M- b document.getElementById("lrc"+currIndex).style.color=colorPlaying;0 y& h% k% x- t6 e
lrcList();/ P4 ?9 }7 R- F) N6 ]
}
9 _$ |& [2 ~' H/ G3 D" R7 N } }
* u: l6 ^+ ?8 m7 ] else
' Z- c! j! H( p+ N {
5 x/ J$ b9 u' k& Q. N" w( ?! J/ p if(s<array[array.length-1].time){
! H6 M3 }/ ?# i( B2 I currIndex = 0;' A M& \3 G" K) f
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
7 U( E2 H- f& T. b% L for(var i=0;i<array.length;i++){# k7 L6 r/ ]2 H/ X. C& x+ K; a+ L
document.getElementById("lrc"+i).style.color=colorNormal;" L% M- o, b$ J. U* g' P6 R3 ^
}" r2 H6 ^* \' C8 f5 b
lrcList();, ?) {6 B3 y% Q9 d
}4 u4 c7 c% B/ E' o
}9 z2 f' w1 F/ j- K5 `
}& b6 N1 v, Q; n+ @/ n
</SCRIPT>
* a# k# g# e0 |* B1 n</DIV></DIV>( Z4 c, B' ]8 w" U) H, s
% ~( L- \3 P1 Q7 i8 e; a2 C[ 本帖最后由 幽谷兰 于 2008-9-18 17:36 编辑 ] |
|