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