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