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