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