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