|
|
<DIV id=list>2 A- ~) @4 i2 z8 |& A5 l2 j
<DIV id=lrc1 style="COLOR: #666666">[wmv=0] http://lzbj.ncedu.net.cn/uploadfile/20083923248279.mp3[/wmv] </DIV>& |9 b9 S2 P/ n' ^" n
<DIV style="COLOR: #666666">|等一分钟|听到这首歌,觉得它很动听,旋律很优美,很是喜欢,传上来给大家听听。</DIV>2 `5 `6 c6 ~6 z8 M
<DIV id=lrc2 style="COLOR: #666666">词曲唱:徐誉滕</DIV>9 B6 t# j# a K# ]. x
<DIV id=lrc3 style="COLOR: #666666"></DIV>
; o$ I( m& ]' t E<DIV id=lrc5 style="COLOR: #666666">如果时间 </DIV>
, a0 ~6 P5 `- `6 R<DIV id=lrc6 style="COLOR: #666666">忘记了转 </DIV> B& K( }9 S0 k7 L" n
<DIV id=lrc7 style="COLOR: #666666">忘了带走什么 </DIV>
7 K# D! e- _0 b I/ t# H8 J2 C' i6 }<DIV id=lrc8 style="COLOR: #666666">你会不会 </DIV>
/ I+ l, k! D$ }<DIV id=lrc9 style="COLOR: #666666">至今停在说爱我的那天 </DIV>
" T( n8 m" \4 q* X" M<DIV id=lrc10 style="COLOR: #666666">然后在世界的一个角 </DIV>
# |! p6 A' K) R; L: h<DIV id=lrc11 style="COLOR: #666666">有了一个我们的家 </DIV>2 U ^* b% V; T7 c2 A$ z
<DIV id=lrc12 style="COLOR: #666666">你说我的胸膛会让你感到暖 </DIV>
1 j6 R" l: l2 X0 m$ B) L<DIV id=lrc13 style="COLOR: #666666">如果生命 </DIV>
- c+ l5 K7 l5 a) r d7 ^# n<DIV id=lrc14 style="COLOR: #666666">没有遗憾 </DIV>$ ~$ t. J" A- a. S: X
<DIV id=lrc15 style="COLOR: #666666">没有波澜 </DIV>9 x3 ?/ ]. z8 @8 ^+ w& W
<DIV id=lrc16 style="COLOR: #666666">你会不会 </DIV>
7 S" } |- \; V<DIV id=lrc17 style="COLOR: #666666">永远没有说再见的一天 </DIV>* f8 j. T# q% T' j1 N
<DIV id=lrc18 style="COLOR: #666666">可能年少的心太柔软 </DIV>
8 _. O! s2 f; z, C8 f<DIV id=lrc19 style="COLOR: #666666">经不起风经不起浪 </DIV>
& f3 z' p& u2 h' g! v; T' i<DIV id=lrc20 style="COLOR: #666666">若今天的我能回到昨天 </DIV>
$ Z1 z7 k6 _2 ^. V+ ?% G( m; A# L<DIV id=lrc21 style="COLOR: #666666">我会向自己妥协 </DIV>8 w' W/ v. J( V- L: }& G; Y
<DIV id=lrc22 style="COLOR: #666666">我在等一分钟 </DIV>. q1 X+ v6 n* J2 w
<DIV id=lrc23 style="COLOR: #666666">或许下一分钟 </DIV>
) Q7 U' m; R. f9 O1 ^$ F<DIV id=lrc24 style="COLOR: #666666">看到你闪躲的眼 </DIV>
8 P: G: ^+ e9 R9 {. L9 i9 Y<DIV id=lrc25 style="COLOR: #ff3300">我不会让伤心的泪挂满你的脸 </DIV>: x3 V0 w+ m( H& |1 i
<DIV id=lrc26 style="COLOR: #000000">我在等一分钟 </DIV>
8 K) u) C2 C& F1 y# J: {% N" k<DIV id=lrc27 style="COLOR: #000000">或许下一分钟 </DIV>1 @/ U& E' F2 ` e0 k3 d+ J7 J1 x
<DIV id=lrc28 style="COLOR: #000000">能够感觉你也心痛 </DIV>6 K" |) t3 R h" V+ ^. M
<DIV id=lrc29 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>
8 G6 P, w0 ]/ X7 ?5 d<DIV id=lrc30 style="COLOR: #000000">如果生命 </DIV>
$ k+ y9 U* ?- A7 n H6 a<DIV id=lrc31 style="COLOR: #000000">没有遗憾 </DIV>
7 D* Q. I! `0 r8 P<DIV id=lrc32 style="COLOR: #000000">没有波澜 </DIV>
% r& Z3 v5 N8 a7 t0 r8 f<DIV id=lrc33 style="COLOR: #000000">你会不会 </DIV>3 K) [' ~0 w) U; I, z
<DIV id=lrc34 style="COLOR: #000000">永远没有说再见的一天 </DIV>
) q8 ]0 S+ d, f) U8 i' o9 I# b( C<DIV id=lrc35 style="COLOR: #000000">可能年少的心太柔软 </DIV>$ T l- V$ Q5 I; c+ |4 a7 P7 Y
<DIV id=lrc36 style="COLOR: #000000">经不起风经不起浪 </DIV>
: m. G, j) I* u7 I0 d<DIV id=lrc37 style="COLOR: #000000">若今天的我能回到昨天 </DIV># l; S7 d* R/ Q1 @4 Y1 F: _* I. t
<DIV id=lrc38 style="COLOR: #000000">我会向自己妥协 </DIV>
( y3 Z. A, Y' C' j2 \<DIV id=lrc39 style="COLOR: #000000">我在等一分钟 </DIV>
+ I5 a7 b; R- L4 D<DIV id=lrc40 style="COLOR: #000000">或许下一分钟 </DIV>
& e+ N/ X4 K; d* |2 e) v; h<DIV id=lrc41 style="COLOR: #000000">看到你闪躲的眼 </DIV>* u# w& O$ b C' X0 `* U
<DIV id=lrc42 style="COLOR: #000000">我不会让伤心的泪挂满你的脸 </DIV>% @! E& W8 I7 H- s2 S9 h! f
<DIV id=lrc43 style="COLOR: #000000">我在等一分钟 </DIV>1 p* | S: p% Z5 @) ^8 ^' J
<DIV id=lrc44 style="COLOR: #000000">或许下一分钟 </DIV>
, [# b# i3 Q" l$ {) S+ ~<DIV id=lrc45 style="COLOR: #000000">能够感觉你也心痛 </DIV>+ K9 I% \& w Y, k9 t2 ]! C
<DIV id=lrc46 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>4 n% T1 ^" l, Y5 r. t
<DIV id=lrc47 style="COLOR: #000000">我在等一分钟 </DIV>
m) K' a) u6 @2 y<DIV id=lrc48 style="COLOR: #000000">或许下一分钟 </DIV>3 ~& Z7 q# Z$ J& p3 }
<DIV id=lrc49 style="COLOR: #000000">看到你不舍的眼 </DIV>
& [0 v6 b4 ^' E' y) W6 J4 K8 a7 `<DIV id=lrc50 style="COLOR: #000000">我会用一个拥抱换取你的转身 </DIV>5 `2 S5 e& i& k- ~5 C. q0 o8 }/ e
<DIV id=lrc51 style="COLOR: #000000">我在等一分钟 </DIV>+ j! d+ c( n/ l5 r% U: J6 @% ]+ J
<DIV id=lrc52 style="COLOR: #000000">或许下一分钟 </DIV>1 j# s M1 @1 \
<DIV id=lrc53 style="COLOR: #000000">如果你真的也心痛 </DIV>
( P$ o$ A' Z" h; I; i<DIV id=lrc54 style="COLOR: #000000">我会告诉你我的胸膛依旧暖
6 C/ T' `9 J2 Q, U. H! O2 M# [<DIV id=lrc style="DISPLAY: none"></DIV>
2 `! F9 r2 f: n* R$ v<SCRIPT type=text/javascript>
* d9 v9 ]6 d9 b fdocument.domain="1ting.com";+ a$ |$ r/ U4 W$ ]0 S
var colorPasted="#666666";9 ?; ?& Y; l5 s* C+ b! K2 x
var colorPlaying="#ff3300";
& i. j6 u3 {& n1 Rvar colorNormal="#000000";& `& i/ I$ R1 z2 H! H
$ = function (a,g){/ `: ~" k& @ G& Z
var o = new Array();
W5 E z( Q; i& J var c = new Array(); ! ~+ N. n( p9 n; }
var r; 2 j* p, X; f0 q
var u;
4 p+ Z; N; d8 W2 ]$ O var a = a.split(';');
" _; L) L z( _! q
. q; j/ ~* C0 t var e = "keydowns,resize,load,dblclick,click,mouseout,mouseover,mousemove,mouseup,mousedown,inputchange,inputfocus,inputblur".split(",");) i1 f) j" I, ]
for(var i=0;i<e.length;i++){
" v9 o) K5 W3 j# W7 ~: k# t9 r eval(e<i>+" = function (s){eval($event('on"+e<i>.replace("input","")+"'))}")
) l/ Z+ o( f! _9 t( y+ C }
$ p9 r8 V W! ?3 }' Q: q
7 D: ~' O3 w( A. v after = function (t,d,s){
/ P9 L0 Z' h" P $after = function (){
4 u& L- I ^' y' Y4 K! ? var $n=document.createElement(t);
: g$ |6 C# S. \- E: g# j if(d!=null){" Y% X0 d+ D5 r4 r! P
$n.id=d;
$ p8 B. b0 Y- _$ T# p }
# P! I$ P, Y8 A2 P/ v + u5 D7 F( q# m! r- e
u.insertBefore($n,null)
8 N7 q y- o4 C r = $n;
* |+ _# b% i/ Q5 Q" P$ C# x u = $n; 2 s; A0 ^% H2 ^& h2 E
}
8 o# O5 J& M, d$ m% Y1 z $for(s,"$after")7 s$ z5 V' {: J, C
}
% U! n/ |/ W6 W# `' U; b5 \4 c9 b2 `9 [
show = function (s){
4 W/ S- c Z7 W/ O ] $show = function (){- e# J& L4 w: l7 e
u.style.display!="none" ? style("display:none") : style("display:block") ;
7 f9 p4 e5 g: _; J. n }
8 t9 i) p9 _. Q $for(s,"$show")
. T' y5 J' R4 D' |# w }
6 w0 L* C/ ?) _- @8 }$ a. ^. |0 }" J8 u3 I
check = function (t,s){% a5 L+ E' y5 r8 Z
$check = function (){# J/ w- S: ?4 K+ M/ Y/ `$ U
if(t=="2"){
1 l% B" l& Y9 Q8 o& ^. o if(u.checked){
3 u/ h: K; d) O- y5 W$ h u.checked = false;% t% W5 i' c( n" e9 a4 @
}else{9 Y" p/ V7 o7 c1 B! C/ c
u.checked = true;: Y1 x X1 o7 |
}
9 H8 v) N8 a3 C: Q v }else{
( X- z7 t; n4 q d u.checked = t*1 ;1 i7 l3 H+ {: `
}% h z7 y( i- S
}
# O) }/ Z4 z+ ?9 m" C $for(s,"$check")
* |9 Q6 Q+ m- c: P) {/ ] }) [: B" \+ O# Z& m4 v0 `2 ?
: {: T. x! n0 S6 ^7 G) X
style = function (v,s){% b- M& ? T7 O7 e2 n2 X
$style = function (){4 i% a- l: e1 ?# B* `1 Z
var $n = v.split(",") 1 x8 T4 X! b8 x4 M* K. E0 j- o
for (var i=0;i<$n.length;i++ ){
) v; j! ^! Q+ @7 y, {4 j var $m = $n<i>.split(":")
6 O, x/ i0 ^, T2 I4 w ?' I d3 H' C/ w eval("u.style."+$m[0]+"='"+$m[1]+"'");
+ B, `7 m0 S$ n! Z# @ }, ~3 I. I2 b7 R$ a1 T7 P
}, B5 N. N# A. @3 r- | w
$for(s,"$style")
" m6 [) \; W3 v& Z6 n1 z }/ M+ D0 n) m- X( U# ~( V
% B5 F# h9 A% E/ ? W6 x
value = function (v,s){
$ c8 e3 j" _& h; F, P var $n= $this (v);
1 Q% i1 q9 B- S. X $value = function (){6 g2 F- `6 O' `; a' t6 N- a
u.value = $n, Y. |( E- ~! h
}* f4 h L! O% f. }3 V! v$ R8 A# s
$for(s,"$value")
# y3 ]% x% s* m( t# C }# h3 S" n7 u1 [3 i1 r- k+ d/ o% [
& |" K1 K+ f# {- ~* [$ W0 `
text = function (v,s){3 n4 W( o0 x& Q o+ n8 k8 [5 ^
var $n= $this (v);
8 p6 F9 E1 r; Q9 N- z# V $text = function (){! c/ H& A$ B5 L, ]2 K. F* N
. Z- y) i! }' e0 N5 j u.text = $n7 ^) a6 P, P1 J7 q5 B* X
}
- d' \3 I# y) ~6 A. X $for(s,"$text") * u' C# A) v ?' o" h% D
}
7 m$ d; k0 K8 W% ]/ I
, b8 x2 h) F0 W innerhtml = function (v,s){% H8 c( Q! d1 r- ]
var $n= $this (v);
6 z8 L7 O5 H$ M/ l $innerhtml = function (){' C T( R% b! f) w! r* K1 b7 y5 p) z
u.innerHTML = $n
: Z3 x j$ Q0 [4 j }' Y1 {- @& K5 F7 _
$for(s,"$innerhtml") r9 E. C9 r$ ~) y1 w
}
% |- c( W- R6 m4 f* T2 D2 Q
' V; z: V# \/ J b removechild = function (s){
4 b D% g# k$ B# ~; C1 y* C- E $removechild = function (){' u4 D/ A# O: f, v5 {" _2 J
u.parentNode.removeChild(u)# r8 M( l3 {9 Z$ B
}
; X2 Q; W) |$ V F$ | $for(s,"$removechild")2 ?. v/ i. x7 M/ U" V6 L2 ?9 Z$ X
}
* P8 L+ `7 H) f% }8 S/ ~ \8 |$ w1 d5 k
$this =function(v){
% ^# F6 B6 s) s! [ if(v.indexOf("this") == 0){
1 w9 F& E C) j* e' S return eval(v.replace("this","u")) V5 f" j0 i( Y2 K% o' C
}' M3 J7 o/ ^' D
return v;
D# ~. J* G3 M. B1 j4 U/ M }& G6 z0 g1 o! X, R) X9 |+ r
5 l/ ^7 y, J+ ^. D( B $event = function (s){' ?4 F8 S4 a! ]9 ^3 C R/ D
var $n ="u."+s+" = function(){$work(this,s);}"
% a! P6 f. b. t1 D3 a/ w return $n;
. i3 C9 C9 X0 w6 h }. P* a) z. h; ^3 S
+ Q& l D+ a. H: R4 o $replace = function (s){
1 K8 K% ^& ~0 ?' s
' A2 k# i$ o3 l% ? }
6 p; O7 s' W" F% L; T/ s: i$ E' s! v/ Z9 F
$for = function (s,c){9 D& L# d8 O# D6 r. \( _
var $n="this."+c+"()" ;2 B/ k/ E; h1 V# p
if(s!=null){
. w' N6 s; |7 {# ]" i var $m =$test(s);
9 u" m4 `: Q$ z1 X, I for (var i=0;i<$m.length ;i++ ){2 f' L' u4 A" b3 n- ^: ~
u = $m<i>;$ Z; r) l2 i6 l+ Y, T/ ?
eval($n);
d1 [# Z: j. R5 W, E/ r }+ R$ a! N$ R) ?* s
}* G. Z+ m6 g! C$ D. T% k
else{
" s" k$ E# F0 o8 d, L eval($n); D. S0 k$ D/ c2 Q u- L# a
}
2 n+ H+ v% b# d- D, [2 A; q! V% a5 X }
% b# I r5 E! t6 r- p. O5 N$ _ ! x+ m3 s% I$ w
$test = function (a){
/ k( x: h' b0 b9 Q* h/ Q8 T& _ var o = new Array();$o(a.split(';'),o); ^& o/ A& l+ b6 p
return o;) P* v% n0 I# `
}
+ I6 O. [8 p3 t7 R; Y! F8 }+ I! w
/ G7 J' P$ {8 k& A& J& P" w $format = function(s){
# x0 `4 Z' b3 n3 m1 Y0 @/ P while (s.indexOf("'")>0){
! z' Q6 V9 v6 M% q _( r s=s.replace("'","\"");
$ E- A0 m# f7 M" ^6 G" P2 } o }
; h% [3 z) g+ s' a, q; \! x while (s.indexOf("][")>0){' q9 g# E4 e- o0 Z9 C* E
s=s.replace("][","','"). s9 t5 e3 k1 G$ l4 o7 h. S
}3 |. `. T- B- J! h/ A9 o$ p
while (s.indexOf("[")>0){
) Q$ S3 c" s3 h5 U& p s=s.replace("[","'").replace("]","'")
. ~6 c4 ~2 J, F } ( T* A+ Y. w4 R' j: Z3 I
return s;) Y1 g& q1 a; d3 ]3 U$ @! ?4 [
}, r! j7 w3 U# Z9 e$ e) c
8 h& u, P- F( S6 E2 ^% e $work = function(w,s){
, R- G( {) |4 ]9 s6 I! \- S u=w;eval(s)
/ g8 w& ^1 j. ]6 ` J% h1 y }+ i3 ~3 W) F, V7 I
; X2 U: F6 c/ }6 R. u8 F0 f
$id = function (s){- a/ h/ z `1 r
return document.getElementById(s);5 l# t! c( \3 ^' ]! h8 r
}
. i2 U' X* I' R" H( q2 q+ p, @, k% c0 f, {% { K
$name = function (s){
' c3 k* Q6 d3 \ return document.getElementsByName(s);
9 ?. Z& X8 w2 J3 t3 l: h# n1 U }
$ f& W! w) v/ j' N% m+ V% x
u5 H2 Z" C: m+ I $tagname = function (s){3 `* T, [1 w/ ^0 r; ~' ^$ H
return document.getElementsByTagName(s);7 i, k/ R' Y- H% `$ u, v
}
1 D7 X4 t5 q+ C4 y6 W a# H X! d) H# k* }# U+ R P
$o = function (a,o,c){/ ^& C- f. I9 E% U. ~4 [
$push = function (n) {9 u$ ?+ z! C& f4 l3 \1 q% ]
for (var i=0;i< n.length;i++ ){
! ~& C6 A& k2 N( n o.push(n<i>);
& r4 w+ h0 |: t5 B" n* t9 ? }
$ ^; \5 H) B2 d4 c }7 |9 B+ X7 }: F# s
for(var i=0;i<a.length;i++){
: w' I# H% v" V9 f1 {* U if(a<i>.indexOf("(") >= 0){' X: ~, W3 C4 X v) p ?" y+ b
c.push(a<i>);8 ]( {: I9 Q5 i. J
}
" Z/ ]# m \; f if(a<i>.indexOf("~") > 0){
* {! J4 U8 Q" q5 X1 A try {. A; S$ Z3 A {# i4 [
$push(eval(a<i>.replace("#","document.getElementById('").replace(" ~ @","').getElementsByTagName('")+"')"));
. ?" i: h( t1 G& C }catch(e)
8 \" T9 v7 T) T4 t {}
9 w S* q/ e4 p+ v; U }
) f" l$ l$ k/ `* o" A/ w( P/ s( @4 g else{' j1 x# k) W8 t/ Q7 R/ G
if(a<i>.indexOf("#")==0){
- S* z) ]5 q" a% Z) \# }8 c o.push($id(a<i>.replace("#","")));4 s0 @' C4 T) y. O$ M( r
}* ?4 C4 T. n S) g/ B, k
if(a<i>.indexOf(".")==0){
" E4 S0 k' A# H1 D) W $push($name(a<i>.replace(".","")));
% f7 }( k% k% m! V7 P }
& w* {- W1 {7 ` X! w: } if(a<i>.indexOf("@")==0 ){
+ x$ N/ M8 G: G: f. i' m: j/ V $push($tagname(a<i>.replace("@","")));6 D% t4 H- v o7 J1 I, K
}
3 }' |5 G) T! h1 \, W9 Q/ f if(a<i>.indexOf("*")==0){& Y8 m+ ]( R: z0 `, s, f, T+ Q
$p= a<i>;
9 [, P# q: D6 g7 ?: |& s5 V8 ^ if($p.indexOf(".")< 0){! b0 `0 f3 f0 v# m$ H7 \) w
$p = $p.replace("parent","parentNode")1 h# f* T' y7 `5 |: S
}
; A( a# j# S( M9 e/ M var $p ="u."+$p.replace("*","");
6 e0 ^( r* c" [& O while ($p.indexOf("parent.")> 0){
; n, S W$ k: V6 ~" d2 ^: ^ $p = $p.replace("parent.","parentNode.")
4 x) R, S5 a* m* c, I. I6 d } Y" X0 T+ s- u& w9 J6 _9 [
while ($p.indexOf("child{")> 0){2 ], }( Z% C! e8 {
$p = $p.replace("child{","childNodes[").replace("}","]")
+ I/ p; Y3 b+ j |8 ^1 l6 t }4 U: i# r; V! X% q0 `. n6 e
o.push(eval($p));
) P' u; p6 ]8 T# E2 u }
$ Z, r% [0 m9 s7 j( G) { if(a<i>.indexOf("document")==0 || a<i>.indexOf("window")==0){
- K& H D9 Z5 s( O8 d9 M5 Z& e" _ o.push(eval(a<i>));
+ S% d4 N' V: V" W1 e O }* A1 n0 p+ ~! i4 o) N- B
}9 i8 ^3 `% a4 f( Y7 i8 X
if(g!=null){
}2 j5 P2 E v# q& ` D7 t$ X, ^ o.push(g);g=null
0 \' |) e/ h: X } 7 R W; P+ i8 h& U$ G* c
}
; |) k$ \8 f! R" [ }
# z ?' S, A7 |0 \) Q, R2 T; }) g2 R: P
$o(a,o,c);) n) ?; i0 ~$ K8 O6 U% y, e
3 N3 @: l# T0 @+ n% [2 X
for(var i = 0;i<o.length;i++){8 o1 w) t1 H# S% n' T$ {+ K7 l
for(var j=0;j<c.length;j++){9 x# _0 J3 `. m+ V* X- S; s( ~. ?
u = o<i>;eval($format(c[j]));
* E3 ~. c, Q4 \; ?/ x! w) Z( R }. n$ V2 x" B$ |% |; P
}
]# t) e) f' R' l- ?8 i) I5 N3 c
# ]8 O1 m; A) a$ `: t if(o.length == 0){- c# t* a& o" B6 e2 V. g1 i
for(var i=0;i<c.length;i++){" y1 J! }( H% t% d p* j% |! m/ e
eval($format(c<i>));
# f7 A q* C8 N9 P2 N4 m9 h }
) K4 b0 {8 o% V9 C. t } L; N) M. ]( u( m# A4 H7 W( d
8 R5 s/ v0 O* Q4 i8 z2 p if(r!=null){6 L) d! B: O% K: W( W
return r;
7 u" a( \! ?9 u' B# w. m* h! j }5 [" R: o" ~4 P2 b
" e0 j1 i# H/ x5 C+ v
if(o.length==1){: k+ ^& q. m8 g& E8 S
return o[0];# g. l; b% u7 H& w) k4 b& m
}
+ v% J' r) E9 }: [, Q% I8 g else{
) h( o) T' t& U9 [: d! O& S return o
4 a- I+ D' t4 v& ]! C7 g } ! H4 [! d" @/ S# C/ `$ `4 {
) T2 V/ g; j! S9 |5 l* h
}1 i% d8 q3 ?" n/ P5 \
var lrc =$("#lrc;show()").innerHTML.split("[");
9 N; f% {/ l0 `3 u& Mif(lrc.length>5){7 A' P# B: j( t3 N- {
var array = new Array();
) x% ?! X8 c/ k: }( |5 ?for (var i=0;i<lrc.length ;i++ )
- @- b5 L- g+ ^5 e G' {{
; ]/ D0 \' W5 J2 p3 [$ ]+ Z' o var g = new Object();
, ]- K8 ]/ E2 k; G1 \8 ^! U t= lrc<i>.split("]");9 ^* Z+ I7 l/ P$ G
g.time = getTime(t[0]); O! d( R/ Q. f* ^: d |' a
if(isNaN(g.time))9 ^1 T- Y5 |. S% E
continue;
o. X% Z! q( w3 Z g.c = t[1];
* R3 B. v8 e9 _; x$ O, S if(g.c == "")
+ [. _# J1 Z- n1 V/ e# R# f0 A [ g.c = getNext(i);3 H. t# A* c# {- z. ]( ], o0 V* B' p
array.push(g);$ P8 |& d' u/ w6 _' J" s k
}! R7 F- C& O& M2 F0 r+ S" e4 `
array.sort(function(x, y) {- K# c0 R. h: o# Z3 V6 T
if (x.time>y.time)
$ j3 u d& L0 A$ i$ F return 1;
3 D* ^8 C; U/ f else if(x.time<y.time)
. [) }& q" [8 Z/ g1 j, e# [7 \ return -1;
( L1 N# B& n1 E5 o' r% ]5 @0 q else
1 o: ]* c2 A9 z2 p; q9 c return 0;3 W! v$ o2 l+ F2 R E6 u5 z
} , x6 r" x- Z2 V" |: b% H
);
6 G$ j0 x+ K( x4 r. ]- _for(var i = 0;i<array.length;i++)
( s6 w4 X$ G; ~) L% F' s{1 Q8 U [6 k$ o6 V& m5 N8 D5 I
var g = array<i>;
4 N8 j! \; s% M if(!g.c){7 q7 g- }" ]- k- K4 I
g.c="";
3 Y" J9 W ^0 _1 W }% M% O) Z% O. k& }" d, w0 a/ X0 P* o
$("#list").innerHTML+="<div id=lrc"+i+">"+g.c+"</div>";. T2 Z4 V V1 N7 `$ M
}+ o; a# ~( K- V; j
var time = setInterval("lrcList()",500); 1 E% c" |) S, {
}else{. f, Z7 u- a& B' M
$("#list").innerHTML=$("#lrc").innerHTML;2 F) B1 ^5 U3 ^, k' ~
}
( f8 ]% z6 { x* rfunction getNext(i)
0 N) @1 U& c% M- F- [: V8 p{
5 P$ n! n: A8 m ^% L var result = "";
6 W) V r8 h; I7 W var i = i+1;' T6 D/ z1 }9 U4 h [- l# X
t = lrc<i>.split("]");& G) z( o# H: C9 K
if(t[1]=="")
2 b" @/ d$ R3 x+ a3 l result = getNext(i);9 \2 f) `* U: |8 c1 e3 U# ]/ ^
else
1 C. O: q. N/ A2 B result = t[1]
7 T7 D6 c) R* P& t2 n; a return result;2 e2 I1 Q* q, L4 K! r; ^# [
}
7 t/ W# c+ O; P1 I
1 k6 R8 @7 ~) Hfunction getTime(str)+ B Z/ F) `' u1 a2 V
{+ ?* ~1 k4 @, u
var time =0;
/ P1 s" J( M% Q3 r- h var ta = str.split(":");6 J9 _% n' v" k! w9 F( p& m# U
if(ta.length<2)
3 F) h% y" q s" B. M* L return time;
7 m3 a! ~* q: y1 ]1 N
( q* O1 B- D/ h2 Z7 ~ if(ta[1].indexOf(".")>0){9 }) k; A- G+ ?$ L9 ?
var tb = ta[1].split(".");
1 P8 m; D8 _" P time = ta[0]*60*1000+tb[0]*1000+tb[1]*10;
: s) p) p1 ?4 o8 I- ] }0 X2 d( e2 r, J$ I4 K$ s$ E% G* F- x' X
else
2 |) O N) H% w- F time =ta[0]*60*1000+ta[1]*1000;
1 D# m3 n- D, \# J* t; k return time;
F5 P8 W: i C, j6 G$ i}: Z( A( T4 r& Q1 r
var preTime = 0;
) w2 I8 r8 ^ t0 |- \# p) Mvar nextTime = 0;5 M8 }/ l# s7 g) v! @
var currIndex =0;
9 \: \* s2 s5 J; E9 V' L+ ^# Ofunction lrcList(){
2 c5 z$ r7 R% Y4 i2 k var s = parent.document.getElementById("MediaPlayer").controls.currentPosition;
( k! m2 j% z4 o s = s*1000;
: V4 v S- K b1 ~3 r if(s==0){
L3 Q: X6 O A( O currIndex =0;7 O' V+ T/ D: j) a) j) W
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;. S3 w1 s L0 c% {/ O- R* h/ ~
for(var i=0;i<array.length;i++){
t w# p8 f' V* k% _9 J. C3 E9 ` document.getElementById("lrc"+i).style.color=colorNormal;, t2 P7 W) j% A* [
}, l! `$ s: x6 K, _/ g
return;1 c% T. x4 f- ]* T, k- c
}
e" h2 Z$ Z5 n, w if(s>0&&currIndex<array.length-1)
7 v" x" E$ |5 h: f { ( ?' v" n! T1 r4 d) r
preTime = array[currIndex].time;! u9 U* t+ q+ b0 `& f; V/ G5 @
# T+ x0 y" ^/ I$ b/ L
nextTime = array[currIndex+1].time;
4 D3 _& d& y+ J5 p& P" c 6 W( D( N; ]5 X9 ^
if(s>=preTime&&s<nextTime){1 x3 n% k8 q8 j; d o
}" Q/ ]: ]. z0 n- w& g
else if(s>=nextTime)2 V. Z" b# V( U. o
{! X6 r; Q# }7 }3 y( f! g3 ^
document.getElementById("lrc"+currIndex).style.color=colorPasted;8 S. X( O `; [* ^6 v. L z6 d3 ~
currIndex++;
1 D K0 C) C& H $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
+ r3 H" ~2 n/ N5 C9 M( _ document.getElementById("lrc"+currIndex).style.color=colorPlaying;
& k: \" D. p& W0 y+ x0 f lrcList();
: m. b0 m' c, o9 y$ o4 {) c, X } Z/ P: w, e8 u% O4 ^
else{. t! {0 g3 B: F
document.getElementById("lrc"+currIndex).style.color=colorNormal;9 Q" z8 e8 l# |3 \$ }! @
currIndex--;
4 }5 W) Y$ ?' V4 W. v" Y6 [0 Y0 Y $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;' x: A" o& ~& a0 h; c) c! _
document.getElementById("lrc"+currIndex).style.color=colorPlaying;
: f# j8 j# Z: q% k lrcList();+ ~3 a: l9 A1 N8 c, E' I/ J7 x+ P
} ' N O/ N/ Y" s/ i, l1 f
}) r5 R7 I+ o3 E* c' ]$ }
else3 `' E" Z3 C: q7 p; [# q8 c4 b3 P9 Q, B
{$ ?% v ? j1 R' U9 {( D9 O
if(s<array[array.length-1].time){3 ?% s T |$ Q$ a1 I3 u) R
currIndex = 0;" @% K, T0 o& L H, h' Y( ?& a
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;& h, N6 [! ]# b) K9 W
for(var i=0;i<array.length;i++){
! K' b! F x8 B$ ^( m6 P6 O* q document.getElementById("lrc"+i).style.color=colorNormal;
& n" P2 C% |, n$ o8 P% N }1 c" v( s5 l& G: u/ `# q
lrcList();
3 d( `; k3 P3 b" M5 S+ J }
& t) a. ~5 h. A: t }
6 J% L7 o' C( f+ J* t" @) E" ?}2 N6 L. b9 V, @
</SCRIPT>
0 T! x' D) D" G9 O& X. ]; Z; H1 P</DIV></DIV>3 [/ y9 b! K, H( g8 k: Q
8 j5 [! E! W' @; q9 B c
[ 本帖最后由 幽谷兰 于 2008-9-18 17:36 编辑 ] |
|