|
|
<DIV id=list>" |; t Y! C: _2 ` D7 E
<DIV id=lrc1 style="COLOR: #666666">[wmv=0] http://lzbj.ncedu.net.cn/uploadfile/20083923248279.mp3[/wmv] </DIV>
( y4 ^" n9 n; ?<DIV style="COLOR: #666666">|等一分钟|听到这首歌,觉得它很动听,旋律很优美,很是喜欢,传上来给大家听听。</DIV>
% v$ h! N$ z) A<DIV id=lrc2 style="COLOR: #666666">词曲唱:徐誉滕</DIV>
! Z, \7 A2 Z8 K- v- {0 Q- j<DIV id=lrc3 style="COLOR: #666666"></DIV>
9 u6 z- C2 f [* D<DIV id=lrc5 style="COLOR: #666666">如果时间 </DIV>; i5 |+ X) _8 B( i: U# U" D/ L
<DIV id=lrc6 style="COLOR: #666666">忘记了转 </DIV>
( a2 B; l& t) A7 \ y5 T0 y<DIV id=lrc7 style="COLOR: #666666">忘了带走什么 </DIV>
- i% D2 j+ N$ r- s1 O<DIV id=lrc8 style="COLOR: #666666">你会不会 </DIV>' [9 L0 E- {# j, O
<DIV id=lrc9 style="COLOR: #666666">至今停在说爱我的那天 </DIV>
7 i* N5 @2 n9 J$ F( Y) A8 Y<DIV id=lrc10 style="COLOR: #666666">然后在世界的一个角 </DIV>. i5 i0 T- i1 X0 I4 r! ?
<DIV id=lrc11 style="COLOR: #666666">有了一个我们的家 </DIV>
& [2 `( H$ h% m/ S; o' ^7 M& r<DIV id=lrc12 style="COLOR: #666666">你说我的胸膛会让你感到暖 </DIV>
; |. t6 Y; G* l2 l' ^<DIV id=lrc13 style="COLOR: #666666">如果生命 </DIV>
3 f1 e5 `: n) g! q' ?<DIV id=lrc14 style="COLOR: #666666">没有遗憾 </DIV>
7 M- C; t( X! H+ Y6 |# u, e% W<DIV id=lrc15 style="COLOR: #666666">没有波澜 </DIV>
4 n/ q9 `2 ` r+ k8 c; Z<DIV id=lrc16 style="COLOR: #666666">你会不会 </DIV>, T. X8 a4 t2 ]; A
<DIV id=lrc17 style="COLOR: #666666">永远没有说再见的一天 </DIV>
! k) S* a0 {" z# U9 k<DIV id=lrc18 style="COLOR: #666666">可能年少的心太柔软 </DIV>
1 p; E+ J E! G* i: w<DIV id=lrc19 style="COLOR: #666666">经不起风经不起浪 </DIV>" A/ t' ^8 a& o) b( }
<DIV id=lrc20 style="COLOR: #666666">若今天的我能回到昨天 </DIV>
* L' D( V% ^) ~3 K<DIV id=lrc21 style="COLOR: #666666">我会向自己妥协 </DIV>! x* H1 f2 i/ N
<DIV id=lrc22 style="COLOR: #666666">我在等一分钟 </DIV>
: z$ n; p5 W. q) E7 L+ X5 c" v* L2 q. M<DIV id=lrc23 style="COLOR: #666666">或许下一分钟 </DIV>6 q3 v( h6 v' q
<DIV id=lrc24 style="COLOR: #666666">看到你闪躲的眼 </DIV>* j: z% O) i8 M# h: n
<DIV id=lrc25 style="COLOR: #ff3300">我不会让伤心的泪挂满你的脸 </DIV>& W m) j [+ M- Q9 k9 t" B( W
<DIV id=lrc26 style="COLOR: #000000">我在等一分钟 </DIV>% O/ `/ M8 H1 a2 W# M% C
<DIV id=lrc27 style="COLOR: #000000">或许下一分钟 </DIV>
9 ?% P0 }' \, A( q1 s: n. Z<DIV id=lrc28 style="COLOR: #000000">能够感觉你也心痛 </DIV>& n" u4 t4 j) Q5 S
<DIV id=lrc29 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>
! R' m$ g9 o& p<DIV id=lrc30 style="COLOR: #000000">如果生命 </DIV># S( ~% }! Y9 ~1 _' E
<DIV id=lrc31 style="COLOR: #000000">没有遗憾 </DIV>0 A4 R$ |) O, d1 {6 ^) o2 }, \, M3 D
<DIV id=lrc32 style="COLOR: #000000">没有波澜 </DIV>
# a" J9 q% s: Z8 |# n) y<DIV id=lrc33 style="COLOR: #000000">你会不会 </DIV>
# y# j9 b$ o( q<DIV id=lrc34 style="COLOR: #000000">永远没有说再见的一天 </DIV>* S0 j7 J: y' L( E, w, j& [
<DIV id=lrc35 style="COLOR: #000000">可能年少的心太柔软 </DIV>8 S8 a# l4 \, R+ r
<DIV id=lrc36 style="COLOR: #000000">经不起风经不起浪 </DIV>5 j, ?4 _" e5 `$ J& D1 C+ x8 k/ U
<DIV id=lrc37 style="COLOR: #000000">若今天的我能回到昨天 </DIV>) a# z! |& }& z" x: G
<DIV id=lrc38 style="COLOR: #000000">我会向自己妥协 </DIV>
. p4 G# T" \! B+ L6 x% {: _<DIV id=lrc39 style="COLOR: #000000">我在等一分钟 </DIV>' I$ s% S0 U ?$ m$ s. j4 h" O
<DIV id=lrc40 style="COLOR: #000000">或许下一分钟 </DIV>8 i6 }4 w$ T$ x0 S# p0 c- A
<DIV id=lrc41 style="COLOR: #000000">看到你闪躲的眼 </DIV>7 B& D+ d9 `7 ?$ z/ d" P9 R
<DIV id=lrc42 style="COLOR: #000000">我不会让伤心的泪挂满你的脸 </DIV>
7 _1 ]& s" Q7 ?& h. R" W<DIV id=lrc43 style="COLOR: #000000">我在等一分钟 </DIV>+ t3 a. H3 S6 i0 L
<DIV id=lrc44 style="COLOR: #000000">或许下一分钟 </DIV>* e7 [( c; i9 T- j0 k
<DIV id=lrc45 style="COLOR: #000000">能够感觉你也心痛 </DIV>
o. n( H9 G/ |( S2 ^7 M<DIV id=lrc46 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>
. w, V, t, A% a% O3 ^- j' o' J9 [<DIV id=lrc47 style="COLOR: #000000">我在等一分钟 </DIV>0 D+ |! v8 Q0 c3 T; I- n
<DIV id=lrc48 style="COLOR: #000000">或许下一分钟 </DIV>
: E) C; x' v7 g8 u. ?, C9 H<DIV id=lrc49 style="COLOR: #000000">看到你不舍的眼 </DIV>- J9 k7 X0 g2 Z9 k4 w9 T t: D2 y
<DIV id=lrc50 style="COLOR: #000000">我会用一个拥抱换取你的转身 </DIV>
! l# C8 c& I2 Q9 _/ }( n- P- u<DIV id=lrc51 style="COLOR: #000000">我在等一分钟 </DIV>, E- G! f2 L5 T) j
<DIV id=lrc52 style="COLOR: #000000">或许下一分钟 </DIV>2 @/ S h( X$ G
<DIV id=lrc53 style="COLOR: #000000">如果你真的也心痛 </DIV>( d6 H0 r' H% o8 y* M: J
<DIV id=lrc54 style="COLOR: #000000">我会告诉你我的胸膛依旧暖
3 D+ L+ F5 ]( n" Z<DIV id=lrc style="DISPLAY: none"></DIV>
% n6 t! T6 u# |: R7 R2 Y: I<SCRIPT type=text/javascript>
; a* Y4 }6 B$ m* G: Z: ?document.domain="1ting.com";
5 r4 ~0 Q% B0 z8 N4 H- G0 Gvar colorPasted="#666666";
& P; v5 z [2 c; B9 B' |var colorPlaying="#ff3300";- s+ M3 Z) v8 S2 t5 I
var colorNormal="#000000";
X+ C# l+ R' `9 @- c$ = function (a,g){
* z9 Y, ~; C" l; a% u var o = new Array();
& k# h0 u; Z8 {, q: P( ~4 i: [ var c = new Array();
! b/ y/ E& h" W* i: [. G var r; # Q: N6 U: {9 ]. [
var u;
2 i* N6 {- [- F3 t' N* H0 B* i; J- w var a = a.split(';'); : `5 y% q0 \8 d! s' D
& z: `# O u1 }5 y
var e = "keydowns,resize,load,dblclick,click,mouseout,mouseover,mousemove,mouseup,mousedown,inputchange,inputfocus,inputblur".split(",");0 ^; ?% A0 F- ^: C
for(var i=0;i<e.length;i++){% K& G# n3 y' F$ K) T/ m0 t+ P+ n
eval(e<i>+" = function (s){eval($event('on"+e<i>.replace("input","")+"'))}")
+ z7 {% ^! t; t1 w7 C& M7 ?" F, g }
( c2 i: U: p0 q) z, q3 J
7 J8 o+ @0 h% a6 D3 r' H* S( V after = function (t,d,s){3 O, x1 |$ f: D, F
$after = function (){6 Y0 O$ r# R, U/ c! s* S; G
var $n=document.createElement(t);! e' l0 Z' I1 k* I' d7 x
if(d!=null){
4 j; `! |+ N2 P $n.id=d; 9 f) f8 \$ X8 [& M5 b
}4 f# J6 e/ u% w5 I
( Q& G% P- y+ [( }) Q
u.insertBefore($n,null)
8 s. `8 v* l/ X+ H r = $n;
8 I0 v" h4 m k7 N: r/ D u = $n; * F4 N% p- ?$ ~5 n: J' U0 i
}7 w% d2 \& `' P. J
$for(s,"$after")
L5 f. y. f, A, L) M3 B }) Q5 h: F& n; a# U' Q
8 E. U8 m6 O+ `0 Q8 h show = function (s){
4 j0 S* t" k. S5 @' n h4 Z $show = function (){, a/ D" C; Q {% G# f
u.style.display!="none" ? style("display:none") : style("display:block") ;) J; A$ u4 f% W- d2 Q8 V& _
}9 {$ x: \9 w8 w7 }
$for(s,"$show")
) G, H3 w7 }* u @+ s }
5 c$ ^/ \; d/ s& {" U3 ]8 O: V+ Z: o3 \2 c6 K
check = function (t,s){2 E+ h8 t% M+ ], j& j e! x0 T' C
$check = function (){2 K# D( C3 v7 e% e+ h5 l$ B! Q
if(t=="2"){ J- e: J, n! t U
if(u.checked){7 R# L6 x9 o$ M
u.checked = false;
) f7 z( ], V5 [2 Y }else{
1 {* S' C4 x9 B1 N7 T0 T; n u.checked = true;3 `. i: d9 T7 y i( ~
}. E; A: y, t3 M( f: J( _
}else{: |% n, H0 B* G/ x
u.checked = t*1 ;$ I( T+ r' C z7 g0 Z+ r' k
}0 g9 L0 S6 r6 V e
}; G# o3 Q5 S9 N
$for(s,"$check")( w {/ l. @" E
}
1 v& q' o! x% D, s5 v
6 G: h' @0 Z7 a; [7 E7 b& B style = function (v,s){! S7 E2 \" J4 G% `. w0 _
$style = function (){, u- W- O1 g3 g/ D- g
var $n = v.split(",") 5 M0 o7 z O4 h) P. F; s
for (var i=0;i<$n.length;i++ ){" I: H) N& h% j! D
var $m = $n<i>.split(":")
2 ?/ ^" X! R0 s* l/ ~' v eval("u.style."+$m[0]+"='"+$m[1]+"'");2 ?% X; _' r5 M* p
}' Z5 ?! w8 J( y" w9 D7 x9 _
} K7 q V( }7 F3 [ ~
$for(s,"$style")7 ?1 |; o$ u2 q0 L$ J6 N
}+ l9 h. U: X( g2 e4 F) k
) ]( s& K g+ J; y value = function (v,s){
- u; G' r' C/ c$ D! E: j+ Z+ r var $n= $this (v);
& n7 d7 l7 T+ g+ {6 B $value = function (){4 e9 `7 B' U2 W( h+ K f6 I
u.value = $n2 v6 @" x/ N p
}. k* a% F, ] A
$for(s,"$value") L' z6 {" w) [- P* {: g$ ?
}, Q0 R/ ~; K1 O& G
$ v. D+ L& u1 }5 O
text = function (v,s){* {* ] D0 M% q# o+ G2 l9 o3 i5 O
var $n= $this (v);
; m: q. ?+ n: H# D p4 r $text = function (){
* L+ @: e( _( k9 ~ l1 H& P' k8 c* Z+ C
u.text = $n1 K S6 U0 T5 D* f! w; ^& N
}8 ]+ v" E) O: f
$for(s,"$text") 2 N# j: u9 Z; Z! k! L3 ?3 u
}$ [# }# m8 @% f0 \1 z9 e
2 Z& e) u' }9 H8 }7 X, p- W innerhtml = function (v,s){
J- H8 C+ Z/ k* T" n var $n= $this (v);
& A }4 s& T) b# V! m# w) y $innerhtml = function (){
$ f, t* A3 Z3 \0 e4 N u.innerHTML = $n
; ?4 R0 z4 X Z }
/ R" U6 R, Z3 z3 F0 y% b $for(s,"$innerhtml")
4 B& [+ t( a [2 U; s% L }
7 c% a0 J' d" {: p ?8 R; o ( f- a; z. _' t- J9 t
removechild = function (s){" V9 B( o2 w: d1 p$ n
$removechild = function (){
0 Q4 W# c2 r$ U$ A u.parentNode.removeChild(u)
% S3 c' Q* m4 ~! e/ h }
& t$ p, B# V" _, Q- I7 O, e0 o $for(s,"$removechild") ]7 s$ ~) M2 U) {/ k0 v% ^; u/ F/ T
}) z- z; M3 p6 t0 l2 j, c
0 Q9 n6 Y, i! E+ }- P/ Z7 Q $this =function(v){6 ?( _6 L. G- z4 E. D
if(v.indexOf("this") == 0){% A1 Q6 k/ p8 Q! f
return eval(v.replace("this","u"))0 I% ~* Y% I9 {
}; S0 |& X5 b" V" S9 j$ ~4 w. o$ v
return v;
; e# V; o# b& t }, Y# _. |8 W; |# ~5 z( ]# u' G
& f- c Z$ L# \9 q $event = function (s){8 O( a [, C* i* B# l; ]
var $n ="u."+s+" = function(){$work(this,s);}"8 s1 b3 M: I1 k; O6 u2 o
return $n;
W+ H) m, V& _! O- b }
( r# Z k4 T. I; V% H6 V, Q7 a7 z5 v% o6 \
$replace = function (s){
3 t. t4 h( Y! T3 R. }! Z# c( l' E# q D( Z
}# S* S P; |% b' j% s6 C
E$ x" _5 Z& R4 G9 ]
$for = function (s,c){
) M4 q, K. d: v% y var $n="this."+c+"()" ;
, Q3 d$ X4 x5 O3 S if(s!=null){
% p- U9 R# P$ R var $m =$test(s);9 k$ V5 j, W( q& f4 e3 k
for (var i=0;i<$m.length ;i++ ){* X/ S5 j ^! }
u = $m<i>;
6 \3 l8 ?( I( e9 }0 T& M+ g eval($n);
; I4 n% U" @. _" l! r. P; g }! M( C. F, W; t/ y1 e; c8 }
}
% S1 M& {7 e) G else{
+ l" Y6 ~/ W' W0 \) J; J4 {; Z eval($n);
4 U2 O u+ t8 o% Z$ Z; m1 U }# e7 Q x9 a0 n, n. |3 D
}
2 H- l0 g- w8 m& g7 H+ ]/ q6 x - R( H3 Z( B4 J6 e$ ]
$test = function (a){& j/ Z( s" T5 E) f9 u- c1 v
var o = new Array();$o(a.split(';'),o);2 T2 l9 B+ v" x- ^: g/ Q
return o;! ?8 A v. @( {4 @
}
9 `. _" f' x% o! W1 J+ w/ m: _5 H9 \+ m, G0 L: e
$format = function(s){) F% ~4 K/ O: t6 w Q
while (s.indexOf("'")>0){. f+ I" L3 m2 c3 N, \6 e7 Q
s=s.replace("'","\"");
) e; }, K0 V$ B3 D) F5 Y, N2 L }
2 U- |& z* s1 p2 f& b- z+ d while (s.indexOf("][")>0){
) b, y6 i6 `! b7 T. Y, n s=s.replace("][","','")
: Z& r& b# L1 T7 \( l8 {" J }
E) p( n. i2 y7 \* k. N while (s.indexOf("[")>0){. }* z7 a8 B2 t- ~4 t
s=s.replace("[","'").replace("]","'")
/ X, @# O" L/ {' ?6 d. x0 p } , D6 x+ w/ i9 Y& \7 T, y
return s;
/ \: |; @5 p& P& J }
" s. |' j0 a* w" @' w* F7 R5 J1 o! `9 _6 K4 C U9 a% ?
$work = function(w,s){3 Y0 |1 F j+ a: z1 c
u=w;eval(s)
8 M7 I# f) Z1 N& B& h6 ^: X }
7 G" v) T' M& C8 T. f$ h' Y) L' N
1 c% X7 o& h- m4 w9 E7 Q. V $id = function (s){
& C2 |5 t$ Q5 H& W' G return document.getElementById(s);
! ]7 R8 h0 ^2 ` }: n* g( N0 |. \% q/ {9 I
" V/ ]- {( y$ ~* _6 C8 m8 N) _ $name = function (s){
' T3 Q1 m T5 U, P( D8 Z* c9 d return document.getElementsByName(s);
. t1 c. q2 J# D) I$ I" ?5 u }3 l i! M2 n6 w
& i) K [* }; K y $tagname = function (s){0 i) u1 {# e9 |4 O( T, v; R# R0 K
return document.getElementsByTagName(s);
2 J& D4 k2 R, j4 M/ B( X* m5 ] }
3 `' s8 W3 p9 g$ h5 e* F3 R) I1 w. {+ f; D+ X7 m
$o = function (a,o,c){6 \! U* b* X. S6 J4 L! D
$push = function (n) {
% b3 Y; R( B3 \0 n6 L for (var i=0;i< n.length;i++ ){0 Y, _" t0 Q/ X% |/ ]- {" u' N9 n
o.push(n<i>);
9 s, e# Q1 q$ _ } / p5 n# D! C8 R4 n: ]
}2 F7 I3 V+ }0 ?7 @
for(var i=0;i<a.length;i++){6 b/ p# m0 s, [; T$ e$ ~$ e
if(a<i>.indexOf("(") >= 0){3 n2 T, l: P* n q3 @
c.push(a<i>);+ u& z) N5 D0 Q
}4 `+ H: ?0 x2 V: {9 K) k
if(a<i>.indexOf("~") > 0){( c/ @# b5 A4 Z6 z0 c
try {& G. u0 b% q2 D0 ?
$push(eval(a<i>.replace("#","document.getElementById('").replace(" ~ @","').getElementsByTagName('")+"')"));
6 V* A/ }& a6 T9 U( z4 o! i1 ]. F1 Y }catch(e)7 A; _. Q; b8 u
{}
* G% I1 b7 ]) t4 Z( a }" W" H3 ~9 [& d, _+ u: \4 K
else{
2 `5 q) @( P, k if(a<i>.indexOf("#")==0){
' j" o" F) b& w+ c) J o.push($id(a<i>.replace("#","")));
7 t0 n( G Q( N# Z }5 r5 t$ a, d' _ w2 r3 d. c
if(a<i>.indexOf(".")==0){. p% d! D. Z- I2 i0 c( V
$push($name(a<i>.replace(".","")));
* [. ]" D8 {0 l5 m) e }# h4 m$ c9 B* v, |/ B+ i! ^
if(a<i>.indexOf("@")==0 ){1 J8 Q! t9 Q! u+ r& R7 {
$push($tagname(a<i>.replace("@","")));
! L* R0 C v1 d, I }, S7 G; S' c& Y5 s( p
if(a<i>.indexOf("*")==0){# T+ P# c u$ r. P, s! K
$p= a<i>;8 M% v( G7 |: x) E: E2 @8 U
if($p.indexOf(".")< 0){
5 O$ U0 L) Z% ~ u9 T $p = $p.replace("parent","parentNode")
4 A- G- e% l& @ H: Z3 L }
4 j5 k( e$ m% A0 v. I- }' D) J var $p ="u."+$p.replace("*","");4 N, w7 V8 N: D2 T5 V- l- u0 F- r
while ($p.indexOf("parent.")> 0){8 |0 U* c8 z: X# t8 G2 H0 h/ b
$p = $p.replace("parent.","parentNode.")
) R6 Y2 v: G& u; H- e }6 @; l% u0 x1 P0 ]. d) P1 `7 e
while ($p.indexOf("child{")> 0){( R4 t1 ]9 |, n) D. ^5 U+ H
$p = $p.replace("child{","childNodes[").replace("}","]")
0 \: g' \+ ~/ r* i }
7 S% u/ o8 _1 U, L- @0 T o.push(eval($p));1 Z" j' s- i$ h. ^! I4 W
}/ H5 s" g8 e7 Z( G, L' ~8 [
if(a<i>.indexOf("document")==0 || a<i>.indexOf("window")==0){
4 Q2 _$ E$ A c q# \2 V/ c( o o.push(eval(a<i>));
7 g( f9 L# @2 I }
$ ~5 B6 f) c, `) |' u6 e) z }
' P" D: h9 l! y' A if(g!=null){
5 G! ?, r( J+ G! w9 K o.push(g);g=null' U# r* @ z' m5 x9 b& T
}
+ o; A# B1 K% \ }
3 u3 t5 C& e) B- ~. | m# @ }
; V8 a. j" f0 W! z3 x9 k8 i9 [
) K+ I: n- }6 u* j! O $o(a,o,c);
" M- h( {% T D# Q
5 A; Y0 R& P/ b5 [: l5 F6 {+ ` for(var i = 0;i<o.length;i++){1 y7 b* q5 h/ Z; `0 ~5 G& W
for(var j=0;j<c.length;j++){9 d! }, K* }: V/ b, W# j$ i
u = o<i>;eval($format(c[j]));, w3 r" l" K" T+ z
}
, V$ g2 `4 }" } }9 v) T# F% ~5 l4 V
" c, M6 V1 k5 i) }/ ~( b- ^+ H
if(o.length == 0){
3 L& o1 @2 l4 r. N" [4 R for(var i=0;i<c.length;i++){% N7 g+ p8 @% D5 w
eval($format(c<i>));2 q. J4 @& [" h# G3 L3 g
}- u3 V* h6 Q0 C
}3 B$ P" ]: i! N, g: `+ d# @
5 R7 R7 v' ]$ h( F8 O2 y if(r!=null){( }" U# I" |/ ]/ E5 z9 ~
return r;
0 } C6 j( _# i3 G }( P9 @/ z! y G# G- E$ ^0 ^
+ f+ k! `$ T* A( F if(o.length==1){- U+ o/ I7 {: ]/ T
return o[0];) t; X+ t) n, g7 t7 O( a5 Q) g s
}9 h5 _2 n0 X# W4 E' F
else{4 a# K& H6 ~5 X/ W; Q! {! f+ v- s
return o
4 Z8 j X' u/ r2 p } ) k4 _( s3 C9 \% N1 b
4 L% P/ Y* Z- ]* `3 |* f }
+ J5 L; L6 N- q6 ], tvar lrc =$("#lrc;show()").innerHTML.split("[");' z- [5 W, j) d% M4 D8 _. h9 a. @
if(lrc.length>5){
- Q4 @9 o( C8 X2 k4 T q& Xvar array = new Array();
( G n. b3 I' B1 Y* U' q- S9 E) l- Hfor (var i=0;i<lrc.length ;i++ )
( Y- `6 a' N& Z+ ^. Y* S7 I{
6 u0 A- c- b+ K: N1 }/ U+ g3 ?0 \' J var g = new Object();& A5 U- O* r- a6 A: J9 A
t= lrc<i>.split("]");* T2 |2 }0 s$ M2 H! ~6 E! g3 w1 v
g.time = getTime(t[0]);0 u. H. i5 d7 g8 x' d0 F
if(isNaN(g.time))
5 g: R7 a9 i0 j/ x, r continue;* {! {; @5 \% [
g.c = t[1];: J. H0 U6 r+ ~( P
if(g.c == "")) m' O1 S: }" u& j- S2 q
g.c = getNext(i);& l+ e* F/ I+ Y2 g4 D
array.push(g);5 A& j, A5 S3 A1 g) J7 y
}. r/ A* A9 x6 l% d1 M
array.sort(function(x, y) {
% ]( a0 @+ x" E8 M8 Y) O if (x.time>y.time) & @5 j* G2 O# H% @! V
return 1;$ I5 B( {( J% E5 f) H7 J$ }1 l# j% A3 ]4 r
else if(x.time<y.time)
5 E% C1 c6 _+ j p* n! }& [, b' v return -1;- ]) f- e F" @/ K
else1 r" ~% `0 M% y1 ?% C }
return 0;
* R( e8 A5 `* O) K# g }
8 `- W' D% n2 c. y. Y$ _, h);% w: U) f% n" s: k, x
for(var i = 0;i<array.length;i++)6 e8 _0 R" y+ N
{
( M7 f0 c1 q9 z! q6 J& ?) a9 A- r var g = array<i>;
! R5 [- \) X2 F( n# S if(!g.c){
7 E" D/ m/ W+ V, |- D" R) ^6 ~$ X g.c="";( m$ y7 c7 T, y. _8 F
}( {* k" W p, K% J$ @- M& }
$("#list").innerHTML+="<div id=lrc"+i+">"+g.c+"</div>";% c/ ^- v5 j% \1 K6 D
}* o; e! i- I1 w% x5 E
var time = setInterval("lrcList()",500);
6 i! i. n8 e# z+ s1 e}else{
# H5 I; n/ `$ G" h $("#list").innerHTML=$("#lrc").innerHTML;& {0 @6 l% Z6 X
}
& ]6 P- X, P6 H# M6 Nfunction getNext(i)6 Y% x/ R0 D2 e$ N& N
{
7 z9 Y) h+ U; Z' @; `# `0 Z var result = "";+ m4 A! h/ d2 Y9 o% g2 u
var i = i+1;
. g- S" V( ?! j; `# x, l. D9 d t = lrc<i>.split("]");
; l9 U2 d' a1 Y if(t[1]=="")7 ?- s0 g1 f1 O8 L6 T* ]
result = getNext(i);
s; L9 @7 p" I4 B: A; @ else
6 G6 y1 D7 R3 w result = t[1]7 g! W' }/ Z, T" k6 D$ [
return result;; p! z" Q* Y$ n" \
}
, q& f& L6 d# m3 i9 V" K
4 o& {" w7 ], i/ O1 r" r4 t& Q5 xfunction getTime(str)4 w& |9 q* k3 e" s0 u
{
: _1 ?- p$ X4 d T4 C$ S6 ]* E var time =0;, B `8 W# J- l( @3 I4 V0 [4 F
var ta = str.split(":");
$ `2 M! \3 R- F3 y0 i if(ta.length<2)
! m+ u6 C6 h) B, B$ v return time;6 J& G# }8 i8 p9 ?
! D. n, Y) i/ d9 v1 y9 Q! _
if(ta[1].indexOf(".")>0){
7 `3 Z* ]) N* `" y4 j var tb = ta[1].split(".");' A- {7 M* A3 o) _4 K( ^" R4 a( O
time = ta[0]*60*1000+tb[0]*1000+tb[1]*10;
# w; P5 O. o" _7 n3 H! W2 j }+ ]! k8 J* W4 e! ^* h# M$ j9 T
else
2 C! \0 r% L) Z6 _( J time =ta[0]*60*1000+ta[1]*1000;
8 X7 w7 b" H# D return time;4 `0 t6 ^) L+ J' |( \! F( O0 L O& V
}
- Z) J- @3 s4 ?- avar preTime = 0;
* x$ O/ ~) L5 T+ W4 [var nextTime = 0;2 E9 T$ U/ F+ W
var currIndex =0;
' ?" ^, C) z# Q# @! Ifunction lrcList(){
$ w' c g/ V! Q% p5 X8 x. D1 X var s = parent.document.getElementById("MediaPlayer").controls.currentPosition;% p4 e' _3 B8 ~( B1 O/ \ W% |* o
s = s*1000;
& L. w2 }3 g' h$ z' r$ j if(s==0){
9 d- \( d4 N- o5 _; j currIndex =0;
# ^( Y0 _+ {, T $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
; ^; h* b! R: i( b; }0 C for(var i=0;i<array.length;i++){
3 q' l5 ^1 X) [4 y document.getElementById("lrc"+i).style.color=colorNormal;: p8 Y: Y. x$ [9 b9 ]7 t8 {
}
, `6 {" `6 |$ p9 X M5 F' ]/ f1 o- L/ R return;8 Z* A$ Y7 c; S9 V% {, O
}
2 l0 H j, |& E& ^& F1 W7 i1 i5 n if(s>0&&currIndex<array.length-1)" F' a% x( B/ t8 Q
{
5 Q+ R. I: l- Y) d. S1 h preTime = array[currIndex].time;
% [# `7 }/ }5 Q( Y; q( m# \$ t! r0 ]1 q
( J0 ^9 a7 G4 k" L; d4 S nextTime = array[currIndex+1].time;8 B# \0 {. F! P3 i' i7 }' s$ P
0 h: R/ \7 a8 Q- K
if(s>=preTime&&s<nextTime){
3 O$ `5 r* N5 s; g h }
3 s( x8 M, R4 l1 O( h/ @; x else if(s>=nextTime)
# w0 x; [) n5 S N {
& S0 a: p7 ^: ~! L' C7 h, v document.getElementById("lrc"+currIndex).style.color=colorPasted;4 ]' D. J2 C5 p7 [: v" d; H9 P& ~
currIndex++;; H3 M% U, v" \$ Y5 z4 v' i" ^
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
C$ p" u; |5 T6 F9 z( q document.getElementById("lrc"+currIndex).style.color=colorPlaying;
9 Y3 }1 ]; S9 t) f" P lrcList();
z: L7 i9 O* @# ^0 x }0 w5 D/ f8 F$ k" X5 \3 [
else{1 O7 f" D& S7 j' O' p# X: @/ |
document.getElementById("lrc"+currIndex).style.color=colorNormal;+ S' D6 d( u: c8 h* V
currIndex--;- `+ s. P& Z c; ?) M6 s5 H
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;' {7 B9 z& k) j% U7 l# t
document.getElementById("lrc"+currIndex).style.color=colorPlaying;
% f8 Q' L1 m3 A1 `$ ~ lrcList();' e( g0 |5 t5 I0 `: w# \
} " A7 p# f+ y- p* f8 H9 W
}9 B2 T6 X4 R, n) b4 p
else$ w D8 l* l. s+ {# r- u
{
; @# k9 F, c4 }- R- J if(s<array[array.length-1].time){
2 ?- A, S" }- p* d9 W currIndex = 0;
; y/ ^; E8 @. o% Y& m% P $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
9 j) j8 ^" w& A- ], V for(var i=0;i<array.length;i++){& K" J- n+ d( K1 [% r$ A( `
document.getElementById("lrc"+i).style.color=colorNormal;3 Z! ]+ m7 ~! X8 `, a ~
}
8 S; ?% i7 }3 v3 N ~ lrcList();
+ G- N% b4 O/ w9 m9 E }
Z6 @6 D- K( G- C- N }2 D8 B$ W1 ]! l/ l: k" L8 S- o
}# _8 {$ c" z6 h. \$ ^' b$ e6 l9 \
</SCRIPT>
5 \/ X/ s; ^% |4 y+ F5 ~</DIV></DIV>. I% K# K1 X H2 W
4 z$ `1 q8 O V; m- v
[ 本帖最后由 幽谷兰 于 2008-9-18 17:36 编辑 ] |
|