|
|
<DIV id=list>( v D; `3 \& f* w/ Q8 F: k3 o
<DIV id=lrc1 style="COLOR: #666666">[wmv=0] http://lzbj.ncedu.net.cn/uploadfile/20083923248279.mp3[/wmv] </DIV>4 J8 Z+ a0 ]% v+ P3 F- X
<DIV style="COLOR: #666666">|等一分钟|听到这首歌,觉得它很动听,旋律很优美,很是喜欢,传上来给大家听听。</DIV>
; j0 {) a/ t) M3 W0 b<DIV id=lrc2 style="COLOR: #666666">词曲唱:徐誉滕</DIV># T7 j( e% \% ]1 v1 r( p
<DIV id=lrc3 style="COLOR: #666666"></DIV>0 Z$ g9 X+ f3 @; a
<DIV id=lrc5 style="COLOR: #666666">如果时间 </DIV>" \, u* t/ K4 @6 t( y' |" V
<DIV id=lrc6 style="COLOR: #666666">忘记了转 </DIV>
. I* [% h# e( O9 e( q \<DIV id=lrc7 style="COLOR: #666666">忘了带走什么 </DIV>
2 Z2 Z1 r O L/ Y4 _<DIV id=lrc8 style="COLOR: #666666">你会不会 </DIV>% N; `8 _* O& n$ s1 t7 I6 y
<DIV id=lrc9 style="COLOR: #666666">至今停在说爱我的那天 </DIV>
' n9 `5 k6 u3 [& S# `<DIV id=lrc10 style="COLOR: #666666">然后在世界的一个角 </DIV>! X) ?, c) j3 o( j; L
<DIV id=lrc11 style="COLOR: #666666">有了一个我们的家 </DIV>" r) U' T w$ o$ ^% i0 r; w+ G
<DIV id=lrc12 style="COLOR: #666666">你说我的胸膛会让你感到暖 </DIV> ~" p. q' H! J% Q* ^) o' M
<DIV id=lrc13 style="COLOR: #666666">如果生命 </DIV>
3 |% _9 V# s/ A<DIV id=lrc14 style="COLOR: #666666">没有遗憾 </DIV>
1 c" e' a0 D! w0 d6 u/ q% ?/ c<DIV id=lrc15 style="COLOR: #666666">没有波澜 </DIV>& ~( h. j1 E9 r* t
<DIV id=lrc16 style="COLOR: #666666">你会不会 </DIV>
% x5 j9 k) f' T) x. M<DIV id=lrc17 style="COLOR: #666666">永远没有说再见的一天 </DIV>% X1 a) T% @, \$ g$ P0 E
<DIV id=lrc18 style="COLOR: #666666">可能年少的心太柔软 </DIV>1 L( ~) W' R) u1 U* e" m9 x
<DIV id=lrc19 style="COLOR: #666666">经不起风经不起浪 </DIV># g7 Z$ p8 a1 ]: \* x. m+ k0 n
<DIV id=lrc20 style="COLOR: #666666">若今天的我能回到昨天 </DIV>
6 }7 S4 d c9 l0 A2 c* i7 J' T. I<DIV id=lrc21 style="COLOR: #666666">我会向自己妥协 </DIV>
8 v/ h/ Y( w; @<DIV id=lrc22 style="COLOR: #666666">我在等一分钟 </DIV>) O' a9 R" t' a& z3 X
<DIV id=lrc23 style="COLOR: #666666">或许下一分钟 </DIV>1 a/ _7 O/ ~0 f8 f# P( f
<DIV id=lrc24 style="COLOR: #666666">看到你闪躲的眼 </DIV>
$ h- D- q3 |+ P9 S2 y<DIV id=lrc25 style="COLOR: #ff3300">我不会让伤心的泪挂满你的脸 </DIV>
" M, f8 Q* J! [! @( s& }<DIV id=lrc26 style="COLOR: #000000">我在等一分钟 </DIV>
j. r( ~% L/ j/ N, s<DIV id=lrc27 style="COLOR: #000000">或许下一分钟 </DIV>( S- E- m* ^- }8 u( y# g- `( o
<DIV id=lrc28 style="COLOR: #000000">能够感觉你也心痛 </DIV>! @2 {& u/ n5 h' c& A1 V
<DIV id=lrc29 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>6 H5 C& e# Z* F( {$ y" ^5 w
<DIV id=lrc30 style="COLOR: #000000">如果生命 </DIV>
3 ~. f7 M; h4 i! b1 D3 }9 m<DIV id=lrc31 style="COLOR: #000000">没有遗憾 </DIV>
, R1 d3 R0 O5 Z6 Y$ N7 |- U<DIV id=lrc32 style="COLOR: #000000">没有波澜 </DIV>; G8 x/ h1 t" u; q5 E+ X$ ~
<DIV id=lrc33 style="COLOR: #000000">你会不会 </DIV>8 b! @+ H0 R9 Y
<DIV id=lrc34 style="COLOR: #000000">永远没有说再见的一天 </DIV>
. q8 A$ ]1 q6 p0 T# W<DIV id=lrc35 style="COLOR: #000000">可能年少的心太柔软 </DIV>% _4 m* f- s7 ] J$ C
<DIV id=lrc36 style="COLOR: #000000">经不起风经不起浪 </DIV>
D8 _: ?) t- }! U5 w/ |<DIV id=lrc37 style="COLOR: #000000">若今天的我能回到昨天 </DIV>
9 u; s' K6 @* {9 F d$ N<DIV id=lrc38 style="COLOR: #000000">我会向自己妥协 </DIV>
4 z& X* J; O! q( ?- w<DIV id=lrc39 style="COLOR: #000000">我在等一分钟 </DIV>
- H4 D! l7 A3 O, e& H" P<DIV id=lrc40 style="COLOR: #000000">或许下一分钟 </DIV>
: ^7 O3 t) J, o7 a. j<DIV id=lrc41 style="COLOR: #000000">看到你闪躲的眼 </DIV>9 y6 g5 c" n$ O7 n% T9 B
<DIV id=lrc42 style="COLOR: #000000">我不会让伤心的泪挂满你的脸 </DIV>
0 b& O2 | ], D' [; p<DIV id=lrc43 style="COLOR: #000000">我在等一分钟 </DIV>
9 U7 @5 x$ k* N* c" f<DIV id=lrc44 style="COLOR: #000000">或许下一分钟 </DIV>( m3 S8 t! E' U' w7 K8 o0 a
<DIV id=lrc45 style="COLOR: #000000">能够感觉你也心痛 </DIV>
+ \$ P s0 v2 m<DIV id=lrc46 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>/ U0 c) u. w) e$ H H! f
<DIV id=lrc47 style="COLOR: #000000">我在等一分钟 </DIV>1 p( o: o3 z& x8 o5 I9 `% f
<DIV id=lrc48 style="COLOR: #000000">或许下一分钟 </DIV># L1 _* K. h1 D& [$ g2 I+ I
<DIV id=lrc49 style="COLOR: #000000">看到你不舍的眼 </DIV>4 h; F' v' m% A' E
<DIV id=lrc50 style="COLOR: #000000">我会用一个拥抱换取你的转身 </DIV>
; L% a0 i3 R# Z' c<DIV id=lrc51 style="COLOR: #000000">我在等一分钟 </DIV>/ x) [0 d, L/ D" I- \/ U$ i! O) H
<DIV id=lrc52 style="COLOR: #000000">或许下一分钟 </DIV>
" t4 `# s I5 h<DIV id=lrc53 style="COLOR: #000000">如果你真的也心痛 </DIV>$ t- J4 Z' B, K2 Y+ P* z# U
<DIV id=lrc54 style="COLOR: #000000">我会告诉你我的胸膛依旧暖
_# k: r) i/ X+ ~<DIV id=lrc style="DISPLAY: none"></DIV>
2 Y9 A9 \9 N- w<SCRIPT type=text/javascript>
8 `/ j d s8 K8 }0 C* H# xdocument.domain="1ting.com";6 e, M+ z% F: q; }! r8 J
var colorPasted="#666666";) H* `3 W0 V" `) H Z. A7 q
var colorPlaying="#ff3300";
5 u# e5 d5 a+ Y2 f2 T ^; Mvar colorNormal="#000000";
# w7 R" }+ |# X, L$ = function (a,g){
- ~! J6 l' a. C var o = new Array();
3 C% l* `; O0 ]* C2 h: P0 b2 f var c = new Array();
. F4 J& H! [9 N! L1 M/ y var r; * J2 l# L# W7 u) O, @
var u; " W( D. o7 P) g4 M5 P6 ^
var a = a.split(';');
# d9 l3 r5 u/ [ ^
# x r, P* o2 Y0 G var e = "keydowns,resize,load,dblclick,click,mouseout,mouseover,mousemove,mouseup,mousedown,inputchange,inputfocus,inputblur".split(",");
2 X* L! s4 X( z: u5 \* J, O, E for(var i=0;i<e.length;i++){
& _. ~6 B U6 c" Y% X eval(e<i>+" = function (s){eval($event('on"+e<i>.replace("input","")+"'))}"); C+ G8 c- O% i" z7 _
}
. n7 M* Q! |! t! G/ H3 s
7 p: q& j( p5 s z, D! C5 J after = function (t,d,s){
) N+ J1 O$ K/ k f" B2 Y& Y $after = function (){
% B N' ?( n+ l5 t. u var $n=document.createElement(t);* F3 M0 W7 A7 l
if(d!=null){
- j5 l! E9 L( d" d9 t- q4 v $n.id=d;
9 \9 n. U8 [: P+ E5 k1 r }; y. U3 A2 N& {9 Z
2 H. f3 I8 A8 q# b5 a5 j. ~ u.insertBefore($n,null)
- X$ E, L/ w: x R0 w4 _ r = $n; ; ~ r" c) `6 x( a. H9 l* I
u = $n; % Z2 ]) ^# G% Y) A4 Y- k
}$ t$ O/ |$ Y! C
$for(s,"$after")4 [2 n- O! w1 \/ I( T# S- y
}3 }: o+ ~0 G4 T% j
) g* s9 `3 r X. B show = function (s){
2 x! \% W0 r! e( x1 J; r. _ $show = function (){) _) y B2 M- S3 [' U u2 T: {
u.style.display!="none" ? style("display:none") : style("display:block") ;1 i, ]6 N& U' H1 W2 M) D9 u4 L
}( L& }+ j Y- r, u. r
$for(s,"$show")4 i! E; L8 y" s
}
5 M1 N/ h1 {. Q9 L9 ~6 E+ \# Q' K2 ^% B1 g3 v E9 ?
check = function (t,s){+ O9 T$ P) J8 h8 g* M$ B) V5 g/ g9 t
$check = function (){
( j2 _+ s% V9 U% N" V1 e& T if(t=="2"){
9 d0 A9 k q- @* v( |) _% n if(u.checked){, d. a/ ]! f. B1 ^
u.checked = false;+ S% Q- J. C# u1 G* M
}else{# K3 J# M( I( L- K
u.checked = true;
: c6 L! B( Z0 m' D+ I+ n }9 g, w1 o9 d2 O0 P
}else{: q0 t: u! k: X+ s G
u.checked = t*1 ;9 C' ?$ i! W6 X. \7 {* l* a1 f3 ~3 p
}
! X0 f/ K0 u ^8 j! v7 @ }
# K: U& G+ U) g6 u8 [: K $for(s,"$check")
" c3 U1 N. p+ }. x }
$ u6 N( ~, P2 d+ K8 G# u' o3 L; u0 Y% B6 C, Z) r A! e
style = function (v,s){" s: w; d. f0 f) b+ R$ i) X3 O% D
$style = function (){; S( @( o. {2 l6 T+ B
var $n = v.split(",") # e/ U% t5 J3 i/ @; o, b8 j
for (var i=0;i<$n.length;i++ ){
3 [# | K: R) O2 l) C var $m = $n<i>.split(":")
5 K3 c3 s* h4 f5 N0 s2 P eval("u.style."+$m[0]+"='"+$m[1]+"'");
$ K0 `; E/ f6 C( j6 s W; p }& E* i% r/ v; v0 |/ q3 A: q5 k( `
}
4 }/ _7 y- x, j% W0 t $for(s,"$style")) ^) p2 f2 B6 [; a$ O" P, S
}) L( r6 y* H8 X! ]
1 L; Y. N6 \: c value = function (v,s){
8 k4 v0 B; S3 @; O, s% k" R# J: l var $n= $this (v);# `8 [2 o' n2 b9 g
$value = function (){- W- Q- r( c6 o% q+ [
u.value = $n
2 Z3 o( E6 I. s+ s1 |; C" ~ a }( {2 f+ x3 o. P! W9 w
$for(s,"$value") 7 r; p* j R$ n- W' j* q
}
( y" \6 j H$ o# [, s$ C7 B; Z- u
text = function (v,s){; x/ F9 Y/ v8 m
var $n= $this (v);) V5 ]5 t9 B2 _2 d
$text = function (){
( p, X! {7 x& i- `- F8 V a `; y5 h2 x. E8 p2 N& T$ ^
u.text = $n
. W" C+ h5 G+ p/ Q }% ]/ t8 S J. y1 K1 I5 z
$for(s,"$text")
0 X5 x b" b4 f& t2 ` }
: v$ J# g# Q- D' z) ]0 }6 O! x: _2 I+ F
innerhtml = function (v,s){
$ b; K. V% a a var $n= $this (v);: D7 u) |% p; D/ B; C
$innerhtml = function (){
$ @7 t B' w+ t$ ~. q; h4 \ u.innerHTML = $n
J# V6 c, H* B: O }
. S; b' H; y1 y% H' b# X4 H $for(s,"$innerhtml")* ~/ L* t% s7 \1 |+ H6 Q: }; K
}1 V) B( K5 k$ D( q2 U) R; `
- \' k* K/ H; x; E removechild = function (s){' V$ p0 R# L9 ~0 b# g" s5 h
$removechild = function (){ D' ^. k5 `: R# ?$ P, [3 _) W8 Y9 ]
u.parentNode.removeChild(u)5 u) T' M; O4 P, X' R
}5 W+ N! _, e. U# \2 Z& n
$for(s,"$removechild"); k0 E+ z$ h2 o( N7 a+ U; ~' r
}3 p& ~* H9 m& f2 Y/ T. X5 g5 \
5 T) W- }/ E* g $this =function(v){
( X2 h( g4 M. ~0 ? if(v.indexOf("this") == 0){1 s$ k$ A$ ?+ {* W3 a% T1 C6 V
return eval(v.replace("this","u"))/ q! h. d7 c3 ^. k7 e
}
9 @: I s& C5 q return v;/ h4 \$ S3 }, }2 [% p
}
" P7 ~+ ]$ H/ Q+ W: _3 l* Q# m, q1 ^* [) q
$event = function (s){" ~4 k' H4 O& L+ _
var $n ="u."+s+" = function(){$work(this,s);}"0 M# s1 f' F$ i6 Q7 }- ~" V# X* f/ c3 e
return $n;7 @$ U/ G8 [, p+ f, o
}( l4 e* D' ]+ t! w- e2 i4 s y
& U$ ~4 b' ~7 U) x2 k7 z! i $replace = function (s){
- M1 g2 V6 I; T" J7 r, l3 F! z! Z
& B* B; p7 E0 O" \% _ q* D# r }
" L6 Z! Z" {0 Z( j5 o) |2 w- x) Y6 {: D; W4 {
$for = function (s,c){
7 [% I7 ~1 h$ S! f8 R/ h2 u var $n="this."+c+"()" ;
3 O: ?: o0 n) ~1 ^! n/ \0 j$ ~ if(s!=null){
7 k( v7 u) h3 U- P/ k& W7 X. c var $m =$test(s);" M5 k( e3 U9 s
for (var i=0;i<$m.length ;i++ ){6 K1 |& |$ O$ N. O# r0 P: M* C. Q' O
u = $m<i>;
, j1 W0 @9 T) v" X. C1 G8 Y b; Q eval($n);
5 S+ l/ U9 f4 L- ` k- h }
0 h9 C; C/ S% L) O9 m1 u }" P/ M E0 ^, \3 u
else{
& u6 _0 m P. Q! K! y eval($n);/ I; J% M6 z/ u8 y' q4 l& s+ _" w
}
" M# i" b% p! a, C9 @) A }/ Q9 C' | R- B: a
* @! O$ `! V+ Y( w* r" U$ x
$test = function (a){
7 r- R# u- a4 {, m6 X8 ^( s var o = new Array();$o(a.split(';'),o);& b! c9 E( Z/ z2 ]& R3 u6 \# q
return o;% |5 }' p5 ^* E4 h8 |# @ Z, a
}
0 ?, g( Y' u3 y% G+ C+ h% B1 o7 A f4 U6 l
$format = function(s){
+ C o2 V3 u: ~1 G" z* c' q while (s.indexOf("'")>0){+ i0 ]3 y& R: }- t/ {# X
s=s.replace("'","\"");
% C! r# x' {, E }$ T" ?* {2 a# @
while (s.indexOf("][")>0){
( U" Z' V; I. Y& w s=s.replace("][","','")
/ g/ x/ z. F9 R- ]: K }
0 H6 ~) ^1 m& D [ while (s.indexOf("[")>0){
& v3 h) z+ a0 b# v0 ?/ t- ~ s=s.replace("[","'").replace("]","'")
' X/ k' B/ {9 p5 D7 b% t* _% F' m1 j$ n } + W! O* b5 O# M6 a
return s;0 `- C8 O z, O0 P
}
, Z- ?) ^$ ? B) u( }$ |+ n$ F l7 H5 m/ O: {. U
$work = function(w,s){* e; h% I9 h$ U3 z I
u=w;eval(s)
5 l. e ]6 X% @ }
0 ?; n- C" n0 {- o$ Y7 t* [
& o" G8 I! t( k+ F! l2 p $id = function (s){
9 ]* y$ N0 }6 \# u+ A" j: A( L& e return document.getElementById(s);
: Q+ o- _0 M. t& v( n }' G( D1 _- v1 A) T' A) f
+ W* C+ K% P9 i$ c+ z+ x $name = function (s){
0 ]. c" V. J( \4 Y! n( N/ T! @& B return document.getElementsByName(s);
% t- n! M0 S0 I2 \ }3 s! w4 e* o- F- A
# U- @3 w3 P7 v1 y. j" r7 R $tagname = function (s){
2 r$ J& S( {( q: `6 N return document.getElementsByTagName(s);" O5 o4 y ^$ S, d* a! l
}
i8 q$ J& M, f$ s: e2 k& H, c; E" y! p
$o = function (a,o,c){9 d3 [$ `2 L+ W+ i, ~+ s
$push = function (n) {3 B1 o6 }! I+ P4 [
for (var i=0;i< n.length;i++ ){5 a' i0 I0 l: u/ i {, a0 X0 V s( W
o.push(n<i>);4 t: ?* A2 F M& g$ @# i
}
/ V/ P) P8 ? V }' S2 [* c2 D1 @2 I7 C7 L
for(var i=0;i<a.length;i++){" E Q M: h5 M% }/ }1 U9 `$ X
if(a<i>.indexOf("(") >= 0){
: N9 G5 K4 l* X& T: x c.push(a<i>);; U1 P/ c* H1 w; r0 R
}
' [; }" O1 F" X% Y if(a<i>.indexOf("~") > 0){" P# f( O0 s4 y/ \; i
try {3 ` {& ~, N9 V; i N
$push(eval(a<i>.replace("#","document.getElementById('").replace(" ~ @","').getElementsByTagName('")+"')"));
, @- \4 H# l g; r: C ^* o m }catch(e)
: L& a% F, U7 \( Q {} 0 I+ ^6 ]' b+ p, i
}
$ z5 P) A( h) V0 f' ^ else{% b7 l9 k7 E/ g" V/ o i- C
if(a<i>.indexOf("#")==0){
& E5 R- a9 H1 u0 `. [ o.push($id(a<i>.replace("#","")));* ~/ I* q% w# e6 M6 o+ e! u$ L
}4 j. \8 v( b0 p% w8 \: N2 U! z) M
if(a<i>.indexOf(".")==0){) {- r$ z f5 T1 o
$push($name(a<i>.replace(".","")));/ n& Y; J- \, G) y' q
}
6 N' n0 d3 V7 ]5 Y if(a<i>.indexOf("@")==0 ){
* ^$ p, E: `$ f d $push($tagname(a<i>.replace("@","")));$ ?) O- S Q0 l
}/ V- E. k3 R" G& Y) i7 u
if(a<i>.indexOf("*")==0){
' ?2 Q: H( G$ K$ n8 y $p= a<i>;; ~1 X: {# j. S# J3 t* @
if($p.indexOf(".")< 0){- B0 F4 z$ H# M& T; y1 d4 a! Q, d
$p = $p.replace("parent","parentNode")$ `/ n1 |9 \4 H" V1 L6 u
}
- u& V6 J6 X* d7 X var $p ="u."+$p.replace("*","");0 q* x: X% y9 ~+ A/ w3 f# R' ?
while ($p.indexOf("parent.")> 0){" s$ ?5 d0 X$ ^ y K7 ?6 z1 G( W$ W
$p = $p.replace("parent.","parentNode.")
2 { X) W8 t9 \/ u3 m" u }; Y& Z1 p( E! R3 S6 M
while ($p.indexOf("child{")> 0){ L: C' I4 P5 a/ Y, N# L- l
$p = $p.replace("child{","childNodes[").replace("}","]")8 p$ n7 w% j7 S
}4 T9 r) h4 F- b2 B/ y
o.push(eval($p));
( M; @# [2 ^* l3 o } E4 K/ O3 f- D+ n' ^
if(a<i>.indexOf("document")==0 || a<i>.indexOf("window")==0){6 R* A+ c/ \: W
o.push(eval(a<i>));- `: Q3 f' S9 N; A2 A e% e
}" t6 V5 v( x1 I n5 W% V, M
}
4 j: K# B' F+ K b* Y5 x if(g!=null){ + |- n$ [* z% T& P6 S
o.push(g);g=null6 \: Q- f7 S. X/ Z
} $ e0 s9 { N s" t9 A+ W1 `
}9 Q- n4 K- a/ k/ n+ `
}! P" s% X( F; r# K7 l1 x7 [
+ [6 y) b# F+ s! e, a5 E; A
$o(a,o,c);6 w1 W: u4 z4 i# g# l w
* B. ~( F- s% w. l9 A h; r for(var i = 0;i<o.length;i++){. }2 F0 m* A7 M' c7 v, a4 K
for(var j=0;j<c.length;j++){( a* c( E$ F; ~7 N1 K
u = o<i>;eval($format(c[j]));& j7 R# h+ C% L3 Z
}
& z9 J# W K) h6 w7 [ }2 T# T! j! v: H1 Q8 h/ p \: q
8 d5 J+ _; Y0 |- E' |
if(o.length == 0){
+ @) E R# ]$ o- X5 l+ I/ Z1 g for(var i=0;i<c.length;i++){
) {) c2 a. ]8 x; f eval($format(c<i>));) E2 K8 J6 g- f2 c, P1 u
}6 Z( C5 i! v- t X# W
}3 F* E5 t" A Z; C2 E- i
* Y' u8 K8 t$ y6 }* G) S8 ~# m if(r!=null){
. z! H) D' Q- i3 l# K return r;) M4 k3 ?, J4 T
}
! }, k2 T8 y9 ^% A% O1 {' P & E/ Q6 r( B6 t) s( V: ^
if(o.length==1){' H- s) _7 H7 q b
return o[0];
~- H9 G8 ~, F! b q" ^7 y4 `3 h }
6 x( ^$ {% U7 Y7 D; { u$ M/ Z else{
% i6 ]& _% U1 m return o
* i! Q0 m; ?- \. R( M } 5 L9 {) K/ V" t1 `3 ?+ s
3 B7 [- K: A& b2 O6 Q! i2 M }( H* T- V) `; g& j! t
var lrc =$("#lrc;show()").innerHTML.split("[");
0 E$ C. g9 s1 c. ^: G1 u5 Xif(lrc.length>5){
# M/ D* r8 C- |/ x; Svar array = new Array();: P4 z' \% i" P A# Q% b
for (var i=0;i<lrc.length ;i++ )
, ?) O! [4 G/ s, I* A{. P G3 v7 O- b5 d
var g = new Object();& n9 n$ S9 x( F S/ R+ o; R& W; @
t= lrc<i>.split("]");+ `. }" z! b4 F4 E1 S
g.time = getTime(t[0]);
) S+ y7 f5 ?- z/ l: j if(isNaN(g.time))9 z2 L8 C& x' O* a" j2 \
continue;
# Y5 [2 l `* c# ] L5 {" Q" ] g.c = t[1];
* [/ f5 x, P$ ^ if(g.c == ""): _# U- v( E) v1 F
g.c = getNext(i);1 w; k- f1 y4 D5 M& m$ W1 X
array.push(g);
9 @1 M6 b$ X1 z+ k8 W5 w1 x. ^, M}
1 f L9 q8 E8 o8 \8 warray.sort(function(x, y) {4 Y x/ I8 x5 C* B8 [. C
if (x.time>y.time) % ^) ]* j1 J: ` D! i: S
return 1;
$ j5 \$ t! M0 { else if(x.time<y.time)
# i) |- P5 y J4 B return -1;
1 O3 \1 f& S- a% ^( n. o4 K! ` else
# G) z {$ Q) x( ~* |+ W2 Q3 E0 ] return 0;. _* V" A9 v$ G; b$ p6 A+ }
} 1 `8 G; w; x# D- ?& c* H
);
3 h2 j* c; F$ |7 _ [for(var i = 0;i<array.length;i++)
7 q) ]% ~7 A1 q' R( w; d{9 Y: O$ X1 {% E# C
var g = array<i>;
) F8 K8 l; c: T- u" N if(!g.c){
9 R7 e: g' J1 `. K" c g.c="";5 T$ c" T8 L0 y5 ]9 Y4 a
}# r8 Q# B# g* ~/ K) ]0 Y+ ]( r8 q/ W
$("#list").innerHTML+="<div id=lrc"+i+">"+g.c+"</div>";9 v: n/ b) h% V5 M
}: u5 C0 n7 \9 b8 }. W" @/ v' C
var time = setInterval("lrcList()",500);
/ t! U' c5 c$ z6 }8 Z0 K}else{
% x+ W( r2 q( I$ s1 ? $("#list").innerHTML=$("#lrc").innerHTML;( J& M8 K, o8 h( e
}
6 D6 w/ i- f9 z4 Z4 ffunction getNext(i)
2 D4 _" F- ~, ]4 |4 r{
5 f4 u3 |+ @3 l3 g) v: r; T v; `6 n var result = "";5 ]! {: _6 ?2 [7 p. r
var i = i+1;
: j X; W- a$ D, I/ Y6 S# Z t = lrc<i>.split("]");8 [ K: U" q4 u
if(t[1]=="") F5 l& s3 O7 E8 q
result = getNext(i);% T4 G4 ?4 ?- d- I5 d& K. c
else
6 N# Z! L+ B+ S result = t[1]: ~+ s8 \+ _ `8 V! D" h! F
return result;3 ~) p1 P9 z% B! D! c# v
}0 U3 {1 w( i- K
1 ^# p; u. k9 A% M
function getTime(str)- P7 l3 I% _, N, q9 v3 l! w$ u' P) v+ C
{3 b7 _; T; ^9 U+ V
var time =0;$ y% u1 D' d0 \& R$ {# o
var ta = str.split(":");
) a$ F) K W; m* h4 {5 I( F0 k if(ta.length<2)$ W/ [' o, ]1 h( h% i, `
return time;1 }" N- r4 ^# k4 G+ m" d
& q+ I! S5 j e if(ta[1].indexOf(".")>0){
8 Q; Z7 E/ r7 C% [+ S- c var tb = ta[1].split("."); y1 A& T( T0 y1 k) E" p
time = ta[0]*60*1000+tb[0]*1000+tb[1]*10;5 m; u- Y4 N2 ~6 j
}3 U! p2 v& o' Z
else
9 I7 D4 y! \: e, F. l time =ta[0]*60*1000+ta[1]*1000;
+ ^$ {( D W& _1 h8 H return time;0 N c3 Z# Y# X
}
7 P, `1 l7 d6 R0 B: Bvar preTime = 0;! L+ t x% q3 t/ i' u8 A9 x
var nextTime = 0;
5 t7 S7 f" Q. [$ x5 K4 Yvar currIndex =0;
0 G- `6 r2 } i4 a1 t) nfunction lrcList(){
0 S7 Y' w6 G0 n var s = parent.document.getElementById("MediaPlayer").controls.currentPosition;
1 ^0 A( z1 x+ ^ s = s*1000;
$ x8 w- M i8 G7 h if(s==0){
2 F. J( p: R7 W# q& B! V# M) ] currIndex =0;4 V* @$ P9 ?; e1 A
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;, l$ x" |: M8 v
for(var i=0;i<array.length;i++){
' Y+ D3 ~4 H+ Q$ @$ M. p document.getElementById("lrc"+i).style.color=colorNormal;) n3 q- S# Y. ~6 ^
}! _: S' G7 t3 J+ p3 [# T1 q
return;/ E$ K5 X: b# \5 A: `6 Z
}
- U& Q7 A1 {" W, ]- @0 ` if(s>0&&currIndex<array.length-1)
: K8 a! x8 a8 ~2 F {
/ O- x- X, C$ e$ ^ preTime = array[currIndex].time;% \, j- N, n) @1 O% R
. g" Z+ R' S: I& K- ^
nextTime = array[currIndex+1].time;
! m; I: O p7 ^- c. N& y8 Q& m
/ W7 ?* o! c+ i8 k% r, P if(s>=preTime&&s<nextTime){7 ]4 l4 B; B! c) A$ R- E8 A
}& b5 v% u2 v2 |; V
else if(s>=nextTime)
# H( O0 s" k9 \- G1 D7 \# F {
. e0 R+ o! y7 ], ?$ s document.getElementById("lrc"+currIndex).style.color=colorPasted;
' T8 ~, i7 t6 s, c4 @6 _ currIndex++;
9 M# L& a" m, u8 J1 K! @* P4 d $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
: j" t3 r }6 f document.getElementById("lrc"+currIndex).style.color=colorPlaying;0 a; K$ ^5 s' a; t
lrcList();
8 l8 j( x( o* @, D5 o( H/ x8 T }: v6 ~+ Q& x* K. y
else{
+ l- o+ {+ c' V' I) l; `. |' u document.getElementById("lrc"+currIndex).style.color=colorNormal;
2 _: f% D. t& J3 p; y/ I currIndex--;* |6 R5 _7 P) J5 Y4 u
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;& q& g; z4 z, N0 Q
document.getElementById("lrc"+currIndex).style.color=colorPlaying;
. n# b' e3 t7 }% j. a lrcList();
/ z9 f X8 O) ~) ^( C0 V; j }
9 E* P# D( m+ G. Z* C2 X g: n' F }
1 C4 \ A3 X; a else3 F4 Y1 D, |# m% L9 J
{) D/ k8 p$ d. H8 W9 Y- A
if(s<array[array.length-1].time){
" R& M) B& [8 i: ]8 X currIndex = 0;
6 g) a7 I3 c& b! l r/ { $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
; Y6 R' a( \* V, |4 l( s3 e2 I for(var i=0;i<array.length;i++){. n3 V6 e' X+ @8 z
document.getElementById("lrc"+i).style.color=colorNormal;- ~4 ~& m3 @% O9 T U9 [, k
}; `6 c& h! ^* b
lrcList();) f/ \ N3 y$ @
}
. R9 h: L: E% F! r4 U# e! r }
O. L* L: H7 H# R6 J. Q; p6 [; b}" E0 Z# t" E3 R( D4 z1 [( P
</SCRIPT>5 @' @( [5 A' K. D
</DIV></DIV>( j# k: n$ H, U0 T8 R+ _
# ]. y8 {6 e( g; s6 x B[ 本帖最后由 幽谷兰 于 2008-9-18 17:36 编辑 ] |
|