|
|
<DIV id=list>
3 D& _0 i0 X/ _) b6 E* c0 j<DIV id=lrc1 style="COLOR: #666666">[wmv=0] http://lzbj.ncedu.net.cn/uploadfile/20083923248279.mp3[/wmv] </DIV>
2 N* ]' W8 N" j4 O3 ^# P' \/ r<DIV style="COLOR: #666666">|等一分钟|听到这首歌,觉得它很动听,旋律很优美,很是喜欢,传上来给大家听听。</DIV>* p. ~ I! C% f/ j# m
<DIV id=lrc2 style="COLOR: #666666">词曲唱:徐誉滕</DIV>8 T- g( o! ?2 O
<DIV id=lrc3 style="COLOR: #666666"></DIV>
0 s2 G) N5 g( c4 M<DIV id=lrc5 style="COLOR: #666666">如果时间 </DIV>% d- v2 H7 t3 t/ W9 |4 \! g
<DIV id=lrc6 style="COLOR: #666666">忘记了转 </DIV>4 I4 d$ f' {; w/ h0 {
<DIV id=lrc7 style="COLOR: #666666">忘了带走什么 </DIV> Z- Z3 ?+ w* r) n ~3 S
<DIV id=lrc8 style="COLOR: #666666">你会不会 </DIV>: p9 G0 B" ]3 I D$ W
<DIV id=lrc9 style="COLOR: #666666">至今停在说爱我的那天 </DIV>* I! ~$ @, u U. m: {7 s
<DIV id=lrc10 style="COLOR: #666666">然后在世界的一个角 </DIV>
3 O/ U+ n! v6 C- \0 L<DIV id=lrc11 style="COLOR: #666666">有了一个我们的家 </DIV>
! P2 |4 y' c& X- [; G; b<DIV id=lrc12 style="COLOR: #666666">你说我的胸膛会让你感到暖 </DIV>
1 D% y( M: S, x( Y) Z$ ~& P<DIV id=lrc13 style="COLOR: #666666">如果生命 </DIV>0 v& ?6 K! }8 V8 Q# o4 M, R6 |
<DIV id=lrc14 style="COLOR: #666666">没有遗憾 </DIV>9 O$ G# ^2 p$ g @! h. ^
<DIV id=lrc15 style="COLOR: #666666">没有波澜 </DIV>, n" D; g; v4 }
<DIV id=lrc16 style="COLOR: #666666">你会不会 </DIV>6 ^# n% U3 Q; e' x
<DIV id=lrc17 style="COLOR: #666666">永远没有说再见的一天 </DIV>
: M" [# T9 I! C' e<DIV id=lrc18 style="COLOR: #666666">可能年少的心太柔软 </DIV>
& `: E! F( ?$ h# u% q<DIV id=lrc19 style="COLOR: #666666">经不起风经不起浪 </DIV>
' v% x+ d5 P* Q7 \" F<DIV id=lrc20 style="COLOR: #666666">若今天的我能回到昨天 </DIV>
, a) g( C8 C+ R* P' e. m8 v3 C<DIV id=lrc21 style="COLOR: #666666">我会向自己妥协 </DIV>
) E0 q7 T$ b$ b/ v2 {0 T- S<DIV id=lrc22 style="COLOR: #666666">我在等一分钟 </DIV>
+ M- m' D5 }% n; Q- N<DIV id=lrc23 style="COLOR: #666666">或许下一分钟 </DIV>
4 B, }* {% X* M8 J* \# o( Q0 S<DIV id=lrc24 style="COLOR: #666666">看到你闪躲的眼 </DIV>/ {# ^' m1 g5 R
<DIV id=lrc25 style="COLOR: #ff3300">我不会让伤心的泪挂满你的脸 </DIV>
" \2 V4 S$ W* V8 u. E6 Z<DIV id=lrc26 style="COLOR: #000000">我在等一分钟 </DIV>
4 f+ i* E4 `5 g: i% X, T<DIV id=lrc27 style="COLOR: #000000">或许下一分钟 </DIV>/ g9 ?% T$ m+ L. U4 r N( [5 X
<DIV id=lrc28 style="COLOR: #000000">能够感觉你也心痛 </DIV>
: x1 ~/ I9 b) g+ L' {6 u<DIV id=lrc29 style="COLOR: #000000">那一年我不会让离别成永远 </DIV> R) G& O9 T8 E. C9 ~
<DIV id=lrc30 style="COLOR: #000000">如果生命 </DIV>
& B& V% P: c. C0 a<DIV id=lrc31 style="COLOR: #000000">没有遗憾 </DIV>
8 z, a& @% C# j<DIV id=lrc32 style="COLOR: #000000">没有波澜 </DIV>. l5 R# S- i/ P3 U
<DIV id=lrc33 style="COLOR: #000000">你会不会 </DIV>
R5 o% r$ ^6 e+ n' t. U1 U<DIV id=lrc34 style="COLOR: #000000">永远没有说再见的一天 </DIV>' J+ ~. C+ S& _0 N' }) X: V
<DIV id=lrc35 style="COLOR: #000000">可能年少的心太柔软 </DIV> H% n% C$ g" e4 C$ i. Z
<DIV id=lrc36 style="COLOR: #000000">经不起风经不起浪 </DIV>% k8 O$ J; G! C, \
<DIV id=lrc37 style="COLOR: #000000">若今天的我能回到昨天 </DIV>+ `; B; g8 R& O
<DIV id=lrc38 style="COLOR: #000000">我会向自己妥协 </DIV>% X( p8 \2 q7 |& R# t$ l
<DIV id=lrc39 style="COLOR: #000000">我在等一分钟 </DIV>$ h$ ]+ z6 R+ q9 O. H
<DIV id=lrc40 style="COLOR: #000000">或许下一分钟 </DIV>
( l9 T: i+ M: R, @<DIV id=lrc41 style="COLOR: #000000">看到你闪躲的眼 </DIV>
7 I' Z( d9 F! T3 |7 K8 J<DIV id=lrc42 style="COLOR: #000000">我不会让伤心的泪挂满你的脸 </DIV>% n/ a0 `4 t- n( |4 b
<DIV id=lrc43 style="COLOR: #000000">我在等一分钟 </DIV>
, M" A, y8 `6 V4 h3 @<DIV id=lrc44 style="COLOR: #000000">或许下一分钟 </DIV>
8 i* R% g2 c! a2 _8 Y* N<DIV id=lrc45 style="COLOR: #000000">能够感觉你也心痛 </DIV>/ a$ t$ J6 @5 w4 i4 Z. H
<DIV id=lrc46 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>
- F4 o L! a% @1 L<DIV id=lrc47 style="COLOR: #000000">我在等一分钟 </DIV>& S0 s* t: G8 {9 p3 t. N
<DIV id=lrc48 style="COLOR: #000000">或许下一分钟 </DIV>9 Y; V6 [+ N" x* F7 [
<DIV id=lrc49 style="COLOR: #000000">看到你不舍的眼 </DIV>
, ~% @0 \; [/ k3 H, ~ E<DIV id=lrc50 style="COLOR: #000000">我会用一个拥抱换取你的转身 </DIV>0 x1 K0 `; i5 I
<DIV id=lrc51 style="COLOR: #000000">我在等一分钟 </DIV>, _" s# N+ T, t2 Y: S; M) R
<DIV id=lrc52 style="COLOR: #000000">或许下一分钟 </DIV>' l! q; i& s7 [3 |2 p& m( ?3 X
<DIV id=lrc53 style="COLOR: #000000">如果你真的也心痛 </DIV>7 ?" m7 J D2 \5 l4 k* q2 J+ O+ q' ?' a
<DIV id=lrc54 style="COLOR: #000000">我会告诉你我的胸膛依旧暖
- D$ I2 x* m5 S ]<DIV id=lrc style="DISPLAY: none"></DIV>: `$ x# S5 Q# @% t
<SCRIPT type=text/javascript>
8 v6 M: f7 n1 f! j$ K. Q# x9 idocument.domain="1ting.com";
1 l+ l! b6 D( `var colorPasted="#666666";) S) x* ^( ~; G: p
var colorPlaying="#ff3300";2 e: v5 g8 V: }1 U" Z+ V7 _
var colorNormal="#000000";% @) ~; i, h, w4 r
$ = function (a,g){
" _2 B5 r F4 d3 l8 K var o = new Array(); 3 l3 w- _1 |1 Y4 u/ b" u1 x
var c = new Array(); , F1 z9 \" @% Q0 |( H3 [
var r; 4 A$ Q% w6 o6 M$ }# C" _
var u;
- W# E- t0 D( J) \8 O7 `- F* S, e var a = a.split(';'); 2 B ?. g3 }0 p0 `" |) Y% u/ B
$ ~( J# a' B3 {# ^ var e = "keydowns,resize,load,dblclick,click,mouseout,mouseover,mousemove,mouseup,mousedown,inputchange,inputfocus,inputblur".split(",");& r0 r! c: l6 f* t
for(var i=0;i<e.length;i++){' [ Y- ` {1 f# J+ f* Q/ J
eval(e<i>+" = function (s){eval($event('on"+e<i>.replace("input","")+"'))}")
9 O, q+ W$ Y; D% H. a: Z) b }" {3 S( \$ ?6 w
( {1 |3 x# b# q! n) g- q4 {4 ]/ r after = function (t,d,s){
4 k7 {# h5 i! c# R( T; V- U* z5 Y3 T $after = function (){5 f" H) ~5 u/ Q( s2 R3 U
var $n=document.createElement(t);
3 x: N5 | `0 ^4 ]& @/ {5 b: i4 K if(d!=null){/ i) n/ l. P& N
$n.id=d;
" z- S" k# y& d- f& f- H } E5 r' J4 P/ Z& ~
' u# n+ A' `) k3 o
u.insertBefore($n,null)
% d; A- W* n7 l5 i r = $n; s: d/ _) P2 F4 @4 U( W5 u" O
u = $n; 4 D, m+ j' u( z4 `8 K( \* L5 d! a
}8 ^1 q+ A- C9 {
$for(s,"$after")3 c& `& M3 [, f9 I
}
: F& s- W: j7 U8 d# I: T
0 J6 F$ |+ }- w! M2 O show = function (s){% [ [) C4 s) E& M8 }3 }
$show = function (){
8 ?# Y" ^0 P) f u.style.display!="none" ? style("display:none") : style("display:block") ;
5 L9 S0 ]: V' s }
3 @, w. b2 o; d+ J0 B $for(s,"$show")2 V6 [$ x$ Q3 A$ E
}
* R4 p1 `! P$ B# y+ \6 T: A& y+ a
I1 n' R7 T% G+ E+ C& Z4 W0 o check = function (t,s){' v9 c ^, T, h5 @6 o3 Y, \
$check = function (){: r+ m5 h3 y+ E1 G5 ^' F3 r
if(t=="2"){
" o# w y( A8 T3 J! r if(u.checked){
" r6 k7 [& ^% {# y% E u.checked = false;1 `. O% p# i) \' x+ C+ Z
}else{
' w3 f# R8 ~. C/ G( f3 Q u.checked = true;3 n& S) H) d% A0 J, [
}. ~1 r: w7 Z9 _" d, f: j3 a8 V, o# r
}else{
4 z- r/ y4 U& ?9 @" M3 @ u.checked = t*1 ;
8 ?1 j1 O1 ~8 K; C }
% E( h6 J% |, A0 V! B2 e }
7 i. v# k0 {' P, ` $for(s,"$check")
* ~' M6 n6 ~4 n& w9 J6 D }. G/ O3 |# K8 O& z# H
: j" q$ f T, q+ z. H) q style = function (v,s){2 n/ q9 E3 A6 U5 F# o3 E$ E: w
$style = function (){
5 E7 V( y: j6 V6 i var $n = v.split(",")
1 g/ y2 j$ e9 v( \( |+ i8 ~ for (var i=0;i<$n.length;i++ ){! ~; H; h2 b$ m, J6 ]8 ]+ U* u% C
var $m = $n<i>.split(":")
, G4 m+ j& M6 G1 x$ |8 M- _- A9 A eval("u.style."+$m[0]+"='"+$m[1]+"'");5 Z: g6 U" f4 U8 h2 y+ ?5 \
}- @1 l! T- d2 K4 A' \
}% t R T5 d; G% d$ Y$ ^+ ^+ c" j
$for(s,"$style")
. y! b4 B V7 s! m% ?2 _$ U. y% z }3 ?/ f: Z! U3 [) p; ]+ ~
. f7 K1 @: n7 Y- B
value = function (v,s){& W; U$ [) o, q# l- f9 L# [
var $n= $this (v);8 {! L, q' O, |
$value = function (){% h4 Y3 a, A8 {4 ]
u.value = $n' T2 i- W! c1 S3 @ l/ |( o
}
% Y: R( r' Q' K8 s7 E3 u; z $for(s,"$value") " E& t6 x( f7 S9 ~. J' m0 F" A
}0 p& ~7 p) Q: I( y0 _: F( D
6 B ^9 B/ o ?
text = function (v,s){* f8 H- `. E8 \3 C. v/ t
var $n= $this (v);
. z; \, g% F1 t5 @" g5 }/ H+ g $text = function (){
0 ^/ W& `6 S6 E9 G# [ 9 x' s2 h& D3 K3 h! o; n
u.text = $n
4 X) Q; a! [0 A' d) m+ o+ t7 D }
1 @, j0 U5 L$ A7 L* q# C: [ $for(s,"$text") , E; @3 ~) Q9 t1 ^; P
}( l: d+ h+ W3 R) c9 A
+ B# Z+ r) i. d9 D
innerhtml = function (v,s){1 m% m1 ~4 k1 s$ k/ d3 R2 u
var $n= $this (v);' x# L' B- K( l0 X3 J3 _
$innerhtml = function (){: |4 ]3 G. g, A5 N- B/ u0 K! w
u.innerHTML = $n
U7 x F3 q, ?: [ }
' F5 z1 r/ C0 |- x _) n/ i) \ $for(s,"$innerhtml")+ ?9 |2 V6 N. o' ~7 Z
}
* H1 j B- ^6 e) ^2 T
3 n T. U7 {$ y4 q5 c1 C removechild = function (s){* Z' d, o9 L- B- n/ c
$removechild = function (){
, |' W6 x/ n; M; @2 `0 k; S" J u.parentNode.removeChild(u)5 b/ p! y2 E" s- X& {! t
}
9 K6 y2 ^4 x+ C" T. l! }% d $for(s,"$removechild")3 d0 M: x; M% Q9 Q# V; W' D
}
/ ]1 |4 U- u5 n- y0 ?6 S2 a
9 G% H- o0 J2 O: P6 q' v $this =function(v){0 l9 g9 S/ ^/ H* \/ s3 T
if(v.indexOf("this") == 0){; U) Y+ I8 y/ b. D: J- f' _1 g
return eval(v.replace("this","u"))
- z2 H2 i8 d) F) C }
: g) ` {2 V# q- K return v;
# W0 c: M: B { }
3 G1 P( s4 k3 d: a/ V. e( C
/ u; {" P( }1 Q, h! V6 N $event = function (s){4 j$ N. P8 N: U# `0 F8 K* f* y; \
var $n ="u."+s+" = function(){$work(this,s);}" |! ?0 S5 H8 c, ?% ~
return $n;
! t) P7 E1 q; Q2 ^ }
! @3 M1 U3 l4 W2 `
' q, v. ^2 N# d $replace = function (s){
- Z8 J% D9 f. L' B6 d5 [
4 ~; \* v* U1 O2 B }$ n! a( R1 u: C% c6 c# U; F1 E
' H; y0 G5 C0 v1 x. `7 l7 z
$for = function (s,c){( k2 `- U4 [* W! o. W* w$ q3 |
var $n="this."+c+"()" ;. H7 V- ?( h+ M e
if(s!=null){ Z' z0 G( c7 L( {
var $m =$test(s);2 q: J; {9 V2 k; F a+ `
for (var i=0;i<$m.length ;i++ ){
) K8 Y% H, J$ @% b u = $m<i>;
4 \8 ~! ^ [ a3 [ eval($n);
* z- @. o9 ~) L- b }( ], y1 F' h w, e, ]) Z2 S
}6 X' D! x2 q4 h: S3 |3 }( b Z
else{: ~6 q, C: X9 M$ t) b
eval($n);: ~, B! u* Z% ]% z# @
}% e. c4 _3 x# g
}
" n7 j6 e z4 F# @6 @6 U
5 @! }3 i5 S$ e0 H $test = function (a){% I# D+ A% m# m0 V6 ~
var o = new Array();$o(a.split(';'),o);+ t0 r& @. r y7 o* `& W( `
return o;
( `; _) V6 ~9 u/ j$ _. x; x }
4 [& o7 F ~3 B9 w' s
. j+ H' u" t' \1 f8 I& x! D $format = function(s){2 u% p- P6 J( R! D# |3 U2 z/ H
while (s.indexOf("'")>0){* M3 N2 {0 e6 B, N
s=s.replace("'","\"");: I- g" u$ V: [6 ?% O# H
}+ G2 t8 i5 s. M# z+ p' N4 z
while (s.indexOf("][")>0){7 m" x4 c6 Q7 y! @6 Z
s=s.replace("][","','")
, t3 J& i" R/ Q1 I7 N( x$ b" F( t }
, I8 A6 O8 ~1 l0 _2 Y while (s.indexOf("[")>0){7 b4 H- Q# x% h; |, Q; Z! u0 w
s=s.replace("[","'").replace("]","'")% \ ~9 y1 g; R- X: \
} + ?4 x! R3 \- k$ ^/ a/ Y: v1 L
return s;& K: [; [2 w5 S/ b! K6 D
}
' h7 G) [+ y8 @. ^1 w
2 a1 R/ \0 [" M1 B) I7 h1 B/ T8 b9 `' b $work = function(w,s){6 s3 Y! D# b( n8 A8 @/ \6 R
u=w;eval(s)
7 I0 |; X' Z* A: r }* @9 B. U7 D$ L& S# i
" j K5 G* d% E! M: b# Q6 c! q
$id = function (s){9 k2 q9 H$ H( F- Y* w; `
return document.getElementById(s);. r# v4 `( V* L+ C0 ?
}
5 o7 H$ ^6 U( L3 t. w& x6 [! j# @0 d: G* @ y* @; W- X
$name = function (s){( r8 h; `1 W+ a. e, F% `: @3 v1 @
return document.getElementsByName(s);
$ u- P2 w5 _# t! [" C }
/ m. H! R7 v* L: X5 H" U
3 D7 H; r" X/ ?$ M% j- V+ n r $tagname = function (s){8 D3 J% @5 ]1 u! C% g
return document.getElementsByTagName(s);
x; x9 x# S. Q }
8 G: `, i/ j( i% l* g( B5 l ?7 [, J; s; e& p0 }9 L
$o = function (a,o,c){" s2 h$ I' a$ p4 D
$push = function (n) {
3 r2 S7 N# J( Z- t& Q6 G for (var i=0;i< n.length;i++ ){% ]* I$ S9 J, G5 f, [
o.push(n<i>);
6 |6 J/ C5 e7 ]) O" M8 y! L6 ` }
o" b6 h9 g3 s+ ]) A. ^8 x% n$ E6 \ }9 [# k. d1 v K; {, d5 S
for(var i=0;i<a.length;i++){
: |8 \; N4 O2 E+ X+ U if(a<i>.indexOf("(") >= 0){2 o' Y& o+ [/ m
c.push(a<i>);$ ]7 b% h4 w3 P) e
}
0 k" D1 o8 U2 K' f4 X3 u if(a<i>.indexOf("~") > 0){" Y `% I8 \* u) \; m& F5 _
try {
+ y8 g0 ^) z9 T: O j $push(eval(a<i>.replace("#","document.getElementById('").replace(" ~ @","').getElementsByTagName('")+"')"));4 s. n5 }% n; q$ Y
}catch(e): \' L8 u$ a. p4 }6 A- f
{} # J, r5 ]) ~0 j" K+ x5 `7 h
}# F# h2 {0 D/ I
else{, N6 K0 b+ B A, x
if(a<i>.indexOf("#")==0){. a8 Y. E$ p: A3 Q o0 `/ r8 `
o.push($id(a<i>.replace("#","")));
2 ?8 ?4 Z0 {, ?1 Z" |' f }
# o9 q0 P8 t, B" S9 m if(a<i>.indexOf(".")==0){
0 g! t( z$ t/ f7 a9 W& n R $push($name(a<i>.replace(".","")));
( S/ ]% E- q3 }, |7 M }
9 Z7 r, z4 f! U2 ^* D if(a<i>.indexOf("@")==0 ){
$ }) h. x L8 y) M $push($tagname(a<i>.replace("@","")));
1 o6 i& | w, W. F7 G }
0 ~0 A! m4 E" w1 I if(a<i>.indexOf("*")==0){. Q4 i7 Z* W q8 H
$p= a<i>;
% R# ?8 B' I4 @" c9 h if($p.indexOf(".")< 0){
& Q. _. f3 T* y x+ R% a) ?: K $p = $p.replace("parent","parentNode")9 \7 M& t- ?. b
}; q: f4 t5 I- x3 ^
var $p ="u."+$p.replace("*","");
- N2 J% b! Q; F3 R w. V while ($p.indexOf("parent.")> 0){
$ f; ^/ J/ a5 @% x- U $p = $p.replace("parent.","parentNode."); G3 t( t; J. } B4 I* y0 O
}
; d) y2 S. f' B while ($p.indexOf("child{")> 0){
4 v3 M3 }5 M+ E+ J4 E8 w5 D $p = $p.replace("child{","childNodes[").replace("}","]")
4 W% S9 [/ T3 [( m" v+ b }
8 |7 Q& O& e* B. m3 ?" g o.push(eval($p));+ a x4 V4 r3 r% Y: |: W
}) T' m5 \6 ^/ @, E- H, X5 K: {9 j% j
if(a<i>.indexOf("document")==0 || a<i>.indexOf("window")==0){- |* R& O" Q" x# K/ H Y1 |
o.push(eval(a<i>));; x. n& M9 h/ B8 H2 \, Q
}
; E5 x6 M$ Y& \* l$ b7 u }
5 s$ R* M0 F4 `1 T3 \" y6 t if(g!=null){ ) [- F+ M$ {) k( r. g2 P! n& N
o.push(g);g=null- k6 G5 ]$ Y7 E2 i
} B- I9 g3 a6 L) [1 x7 s
} e& A2 X. ?" j% f! a4 z
}; [1 R/ M0 |6 y
- }4 g% \( y( A: [ $o(a,o,c);
& g# E) Z3 B7 E( V0 |4 s
3 Q4 [1 s% z C, H# U for(var i = 0;i<o.length;i++){
* ~2 a: I7 }, v) R5 s, M' Z: ? for(var j=0;j<c.length;j++){
0 v$ ]$ K6 O2 L1 @, p/ [0 ` u = o<i>;eval($format(c[j]));$ R% r# z# w4 T& t! ^$ \
}
: k9 a7 q; g( J: e( z }* M$ F/ d5 ]' z2 R
- q; j8 S/ b% X2 T- ^- W if(o.length == 0){
! L- F: f- X E, k" V" o: P7 a for(var i=0;i<c.length;i++){9 r0 V0 Q- @' \8 ]/ ~
eval($format(c<i>));
. ?) V+ o5 w7 Q$ x5 ^ }9 {1 m% l; }( e
}5 h" `3 z1 h5 g0 G
' p7 K+ D9 G- S8 ?; B
if(r!=null){/ i4 h2 l5 r! o' `3 p5 D
return r;, U8 Y) Q5 `) W' Q" ?% V$ |' y$ t
}- K' L5 v3 L6 N# e. I3 y
" [2 K# J% o7 m4 Y& K if(o.length==1){
) j- `$ X6 H. S return o[0];& w G1 E! C4 V. Z4 r
}3 O w% a8 h) B9 f
else{
/ ~5 f+ K C& i: { return o+ b% w% E2 h. I
} 7 |% M* H: F: I+ A8 V
, A4 x; A% b) ~" M' S }
: u1 Q6 T8 H# P. Z, f5 s0 Lvar lrc =$("#lrc;show()").innerHTML.split("[");
b, e" G, k" }* x8 jif(lrc.length>5){( g& j4 N4 |, @; t
var array = new Array();
+ y( m5 H$ u" P3 @ \' g! D; jfor (var i=0;i<lrc.length ;i++ )& b0 n. P( v( e
{3 R2 J. W$ U5 K# Z+ v0 g/ `
var g = new Object();9 \( d9 N& t; i8 R$ `
t= lrc<i>.split("]");
& x! B% Q0 I9 F/ b0 ` g.time = getTime(t[0]); e* _; g( @! C2 _! X1 w7 Y
if(isNaN(g.time))
* a4 H' g) v' m5 y- Y! A" u continue;
( o) P' x9 T- V" ?* A g.c = t[1];
0 P; X0 l/ ~0 m: e if(g.c == "")+ J- `0 W. ^' B* a; `4 F
g.c = getNext(i);* v6 b$ f6 g p: h! \& ?% m6 w
array.push(g);
0 h0 @, n7 @; Q: S! P}
: x% S {+ R0 P' o+ R% iarray.sort(function(x, y) {
- V4 D" O; f# E- l5 N if (x.time>y.time) Z1 T: g9 e: I4 s7 o
return 1;) B( `3 g' f( L T9 ~. x
else if(x.time<y.time)9 E! f/ Q2 E* S
return -1;
% L3 B) ~, t1 j else
; K# y5 h* V: A0 i: o* s0 X return 0;( a3 h- Q" x* f4 f4 `
}
% N. W" r4 _/ r; v/ v, B4 W8 p);0 H$ p8 E f# u8 P3 M* @
for(var i = 0;i<array.length;i++) {* u6 M @; _
{
, n" N% U+ n u7 ?; s var g = array<i>;
P$ y; R3 r+ E1 e) P if(!g.c){
1 ]6 l9 G9 _% N$ A' ` g.c="";
\. J/ C- Y. b7 r6 S7 j3 t }( w2 T x _/ R4 d) j: G
$("#list").innerHTML+="<div id=lrc"+i+">"+g.c+"</div>";
$ v6 x: ?. M( {; E1 K}
0 c1 ?) Z* S* Y+ Jvar time = setInterval("lrcList()",500);
/ C) o0 O5 |0 V+ Z* o}else{8 L4 K1 K3 D% L5 s& |
$("#list").innerHTML=$("#lrc").innerHTML;, j. N8 A$ u" ~5 z
}
2 d- T" D( j* f3 U- ^# xfunction getNext(i)0 p; W/ e4 \- Y4 [/ p! j/ \; K- F
{
7 F K/ y! w5 d. g var result = "";5 A. N) Z: V8 D5 y( o' G
var i = i+1;
$ s, ?0 N! \ D& [! r% T t = lrc<i>.split("]");
. c6 o* P! ]% M0 D# `1 M$ r! j if(t[1]=="")
* |! o9 O; w4 x- j result = getNext(i);
4 Q: m$ J" d1 h& ` else. d( L! d8 P0 o" x1 C2 ~# k
result = t[1]$ [3 w# c; T7 l& ~6 Y# k
return result;
2 N: F( n. c3 }}
0 Z1 K: F$ c1 `. Y) S4 Z: J
* E$ T1 m1 l3 p5 n# e2 R3 |function getTime(str)" |1 C, m5 r O T- x W& Q
{( O+ ?; X7 a2 \! p# q
var time =0;4 \9 v* B. y: O8 K& ]9 G4 C
var ta = str.split(":");
6 {$ O: e! \; R% c" y if(ta.length<2)
a) j: x3 E# @5 F. U return time;$ R6 [: w7 t2 n7 `5 K
j" _) ]% b% U. n1 h
if(ta[1].indexOf(".")>0){7 G' U# u4 C9 E, P+ x4 v/ A
var tb = ta[1].split(".");
; o2 n) r# D: i& E# X. ~8 `* Z( _. | time = ta[0]*60*1000+tb[0]*1000+tb[1]*10;8 K" r- b4 N* }9 U0 G' a) |
}
# b7 c; Q8 n# i1 L) b( U; D2 L else5 e% }9 g: w* g' Y
time =ta[0]*60*1000+ta[1]*1000;( g$ [; a' ^( E# N
return time;
) B& d: @$ c6 M, l}3 O2 x: ?% t4 w# I
var preTime = 0;
z- Y4 m7 d ^( f- yvar nextTime = 0;$ U: l' d* X" G* s: J! k
var currIndex =0;
2 V4 n3 q6 M( R; Ofunction lrcList(){
U. H4 H: _2 l4 U, ] var s = parent.document.getElementById("MediaPlayer").controls.currentPosition;6 c D1 O( h+ g8 ]% O# G* E
s = s*1000;/ E" u$ M/ v+ ]( X7 }
if(s==0){
8 A& a4 K% v; s7 t; X K' E2 o currIndex =0;/ E& l: Z+ g7 _' F6 N. s. [
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;$ r s8 R: z$ `" R7 i
for(var i=0;i<array.length;i++){
; b: |7 @4 ]- S. i. \1 ] document.getElementById("lrc"+i).style.color=colorNormal;1 W! _- _& h- z4 T4 ]
}+ `; q, r4 x, _. |7 {1 {
return;
9 Y; l t& P0 {- \9 Y }
6 \- s& y Y) d+ [ S if(s>0&&currIndex<array.length-1)
A2 m T' b/ V8 } { / a- ?- q, P3 Z) Y
preTime = array[currIndex].time;
! u1 m- A# H* |8 n' j0 N
: H5 c6 n; v/ a nextTime = array[currIndex+1].time;
2 p4 v9 t0 u0 |: {: L! K0 P8 F
Q3 Y& s, Z7 L if(s>=preTime&&s<nextTime){- E! R: l% `9 m6 K+ N# f2 t0 s
}
8 g0 {" R7 b/ j. R, y; j else if(s>=nextTime)
{- ?! g6 j& d- D1 e {* e/ M. |. \' N
document.getElementById("lrc"+currIndex).style.color=colorPasted;
( v% Q8 z3 x2 M& |* q& u currIndex++;" M. a$ Z2 r2 S) b0 `7 e$ J- x
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;* } z5 L7 n# K* R0 j4 H
document.getElementById("lrc"+currIndex).style.color=colorPlaying;
/ N- w0 I ^* ^5 O lrcList();- t9 h% o5 ?: @" ?: m u
}
! g/ L1 s9 E y4 ] else{% l- B" x5 n" c# L) G
document.getElementById("lrc"+currIndex).style.color=colorNormal;
H7 Q, Y+ X5 ]2 J currIndex--;
, A; a2 {8 D: A- g. ~2 w/ e& R $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
% m1 ]4 Y- p+ U' u document.getElementById("lrc"+currIndex).style.color=colorPlaying;, H1 b: R# m" L/ c' v
lrcList();
# b% v2 r6 p9 }9 e# {0 U }
/ G* p7 N. `: {5 _! F }& M' x8 C! m' S! e# g" U8 R
else
- y! d5 ^/ N" L9 @. T" C( y {6 Q' P0 _' y* S. F
if(s<array[array.length-1].time){
* T! Y2 }4 y+ l4 [5 t currIndex = 0; g! p: Y3 u/ P8 k' z
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;: j8 k% L' k/ X7 c+ [$ N
for(var i=0;i<array.length;i++){
# W7 u4 d& d" u+ C- e O document.getElementById("lrc"+i).style.color=colorNormal;
+ }) Y1 L& M& S7 s }$ `' k( l: e- b1 ]
lrcList();
$ r# n! {# V+ _ }* v; Q2 W' X( @1 d2 Z
}* k" k g8 l+ y3 @
}
4 U' l% r9 f7 ^0 N( B# @) Z</SCRIPT>
( s. c6 X6 G- }" U* O</DIV></DIV>* X1 w' s$ e, {8 N8 K: G
9 _! B- }7 p8 v% [9 W
[ 本帖最后由 幽谷兰 于 2008-9-18 17:36 编辑 ] |
|