|
|
<DIV id=list>. m: J- k. I* U' `8 @
<DIV id=lrc1 style="COLOR: #666666">[wmv=0] http://lzbj.ncedu.net.cn/uploadfile/20083923248279.mp3[/wmv] </DIV>
# ?1 L5 |+ Z0 |0 @+ k<DIV style="COLOR: #666666">|等一分钟|听到这首歌,觉得它很动听,旋律很优美,很是喜欢,传上来给大家听听。</DIV>
! Z; F3 _& [. H( ]<DIV id=lrc2 style="COLOR: #666666">词曲唱:徐誉滕</DIV>0 }* K& Q/ @- S2 A7 d
<DIV id=lrc3 style="COLOR: #666666"></DIV>
2 F/ D9 z% {" M7 A: K<DIV id=lrc5 style="COLOR: #666666">如果时间 </DIV>5 X8 M. _( j; u: k
<DIV id=lrc6 style="COLOR: #666666">忘记了转 </DIV>
* L6 M0 B3 f# q<DIV id=lrc7 style="COLOR: #666666">忘了带走什么 </DIV>+ p) _9 f* g: d Q
<DIV id=lrc8 style="COLOR: #666666">你会不会 </DIV>, Y" O+ H% i3 l5 b* h# N
<DIV id=lrc9 style="COLOR: #666666">至今停在说爱我的那天 </DIV>
1 N* B- F( P5 a/ w2 D" b<DIV id=lrc10 style="COLOR: #666666">然后在世界的一个角 </DIV>% \/ {6 w; n5 R9 X3 M
<DIV id=lrc11 style="COLOR: #666666">有了一个我们的家 </DIV>
2 l4 @/ Y+ `; O, T<DIV id=lrc12 style="COLOR: #666666">你说我的胸膛会让你感到暖 </DIV>
) @! U D4 T0 `<DIV id=lrc13 style="COLOR: #666666">如果生命 </DIV>
. D; x) J8 {& Z<DIV id=lrc14 style="COLOR: #666666">没有遗憾 </DIV>
6 K' L- l- @! F<DIV id=lrc15 style="COLOR: #666666">没有波澜 </DIV>
e3 M/ s2 O# x7 l! Z/ d<DIV id=lrc16 style="COLOR: #666666">你会不会 </DIV>( K+ l! [6 H! r' i; M6 ~3 M
<DIV id=lrc17 style="COLOR: #666666">永远没有说再见的一天 </DIV>
1 T6 N: a L) q, |8 u- e$ f& m0 x* P6 m<DIV id=lrc18 style="COLOR: #666666">可能年少的心太柔软 </DIV>
7 [( K- n4 L/ J* ~ b8 {<DIV id=lrc19 style="COLOR: #666666">经不起风经不起浪 </DIV>
8 H% Q# \5 i% A<DIV id=lrc20 style="COLOR: #666666">若今天的我能回到昨天 </DIV> {& m( k/ H, X, t: u
<DIV id=lrc21 style="COLOR: #666666">我会向自己妥协 </DIV>
) {' \! `& n; ~# u<DIV id=lrc22 style="COLOR: #666666">我在等一分钟 </DIV>
$ q/ E; p. w3 N0 O) P' F<DIV id=lrc23 style="COLOR: #666666">或许下一分钟 </DIV>. C2 S4 T: a4 W; M* {& l
<DIV id=lrc24 style="COLOR: #666666">看到你闪躲的眼 </DIV>
! M) ~, J7 ?) Q<DIV id=lrc25 style="COLOR: #ff3300">我不会让伤心的泪挂满你的脸 </DIV>
! w( Q8 I+ ?+ v% e# x; ~1 _, O2 q- J<DIV id=lrc26 style="COLOR: #000000">我在等一分钟 </DIV>+ C8 p' h* c" c* c/ E- ]
<DIV id=lrc27 style="COLOR: #000000">或许下一分钟 </DIV>+ l4 C$ h5 @- g( g
<DIV id=lrc28 style="COLOR: #000000">能够感觉你也心痛 </DIV># W; y3 G' ]. a& L+ A
<DIV id=lrc29 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>! C- A$ y4 I5 [) k. V) E7 {
<DIV id=lrc30 style="COLOR: #000000">如果生命 </DIV>
& M) V! v9 i" _" d8 z! q! J/ @; K<DIV id=lrc31 style="COLOR: #000000">没有遗憾 </DIV>
4 A9 }8 z# z' l! @+ a# g, `& {% \<DIV id=lrc32 style="COLOR: #000000">没有波澜 </DIV>& f" c4 B! j& `* a7 u
<DIV id=lrc33 style="COLOR: #000000">你会不会 </DIV>. L/ o! N8 k$ I; W j
<DIV id=lrc34 style="COLOR: #000000">永远没有说再见的一天 </DIV>2 f- T+ h) P' ~. l$ j
<DIV id=lrc35 style="COLOR: #000000">可能年少的心太柔软 </DIV>
- q4 i1 i7 O5 T5 G6 v. n4 b<DIV id=lrc36 style="COLOR: #000000">经不起风经不起浪 </DIV>
: j# _1 |4 |$ z- x4 e8 ~8 ?) M( \<DIV id=lrc37 style="COLOR: #000000">若今天的我能回到昨天 </DIV>& J8 y' u9 k& K6 _
<DIV id=lrc38 style="COLOR: #000000">我会向自己妥协 </DIV>2 c4 ]5 I [' A% o) |- P& _
<DIV id=lrc39 style="COLOR: #000000">我在等一分钟 </DIV>
# f; E. I: t& f; g4 r<DIV id=lrc40 style="COLOR: #000000">或许下一分钟 </DIV>
8 ]+ z7 j- g( h( m0 y2 O, u) I- m<DIV id=lrc41 style="COLOR: #000000">看到你闪躲的眼 </DIV>1 E! I; M J! \' O- A
<DIV id=lrc42 style="COLOR: #000000">我不会让伤心的泪挂满你的脸 </DIV>
# i- `! } }, f7 A- C7 d$ i, @<DIV id=lrc43 style="COLOR: #000000">我在等一分钟 </DIV>
/ ~4 K8 {7 \8 y& p: b0 R, n<DIV id=lrc44 style="COLOR: #000000">或许下一分钟 </DIV>7 S ~6 ]8 m4 y3 |- d
<DIV id=lrc45 style="COLOR: #000000">能够感觉你也心痛 </DIV>
# p* V2 Z4 ~ G7 T0 h$ L<DIV id=lrc46 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>
5 v/ p; S" I) k% F. [<DIV id=lrc47 style="COLOR: #000000">我在等一分钟 </DIV>
3 d" D/ G9 U' s1 S<DIV id=lrc48 style="COLOR: #000000">或许下一分钟 </DIV>3 ?0 F8 G$ `8 F) k$ Y* ]
<DIV id=lrc49 style="COLOR: #000000">看到你不舍的眼 </DIV>
7 L" Y8 K b' y% u<DIV id=lrc50 style="COLOR: #000000">我会用一个拥抱换取你的转身 </DIV>
" A2 O3 i: B( C9 O& Q$ u5 O2 O<DIV id=lrc51 style="COLOR: #000000">我在等一分钟 </DIV>
6 s% ?& ^( |0 B' z- ~1 r( _<DIV id=lrc52 style="COLOR: #000000">或许下一分钟 </DIV>+ A, Q& r Z1 {* E3 A2 @
<DIV id=lrc53 style="COLOR: #000000">如果你真的也心痛 </DIV>
* i! D7 n( w+ a) S! i<DIV id=lrc54 style="COLOR: #000000">我会告诉你我的胸膛依旧暖
8 F" j6 N2 P/ l4 v) u3 e<DIV id=lrc style="DISPLAY: none"></DIV>
8 i! A4 W% u, s<SCRIPT type=text/javascript>
- i9 t7 v( j# \/ m- fdocument.domain="1ting.com";
! @. t( `; ?- b+ M; m; \var colorPasted="#666666";
: T$ ]8 A$ ?* Nvar colorPlaying="#ff3300";6 |4 k) ]% y! Y
var colorNormal="#000000";
4 I8 _; d3 s. y7 U7 V- n" }$ = function (a,g){6 r1 l1 M: ^/ N" b/ B2 r& ~: G
var o = new Array(); " ]+ y# i3 N, u/ s! `5 \/ L% w
var c = new Array(); # k" s6 a8 M" J2 R
var r;
& M" Q$ w+ j3 u* }5 u var u; & t J; F1 ?" ~- \9 C1 H: G V5 b7 ~
var a = a.split(';'); ( X# m( ]: }7 U& S- A% a
j n! b4 E% Y, B4 G: ~! f
var e = "keydowns,resize,load,dblclick,click,mouseout,mouseover,mousemove,mouseup,mousedown,inputchange,inputfocus,inputblur".split(",");+ y# }/ L' z& p4 S% W
for(var i=0;i<e.length;i++){
) [3 L4 L3 `* W# A& r/ q* u- L6 A+ j eval(e<i>+" = function (s){eval($event('on"+e<i>.replace("input","")+"'))}")" \5 {6 C) I5 C( y
}) E- V( S b) D. G8 M7 |
5 P' j7 g* x! Z- K5 w5 Z after = function (t,d,s){) B9 ^, V8 P h e- o- W- \' s
$after = function (){
2 V" F# T6 ~1 I- V" u9 y6 [4 Q var $n=document.createElement(t);
& A6 G) t1 j8 M% k4 H if(d!=null){
, Z: L, K0 R+ c; g $n.id=d;
; Y' }& W& C( h4 k/ h8 F: K }
2 N G- D6 y: H# m* \1 _0 j0 w & F2 Q. D# e' r- \5 T
u.insertBefore($n,null) $ g0 e1 f8 t9 x% F+ y
r = $n; * \/ H+ M0 l0 m
u = $n; ; m3 j! H ? U2 N2 G
}/ R6 B" {$ a0 j1 ^8 V3 U
$for(s,"$after")& W2 B6 }& D7 X" g ?0 w
}
3 `+ d) W. f/ X3 w6 Z$ t1 h
) p& q. B) M4 U show = function (s){; z. a& c6 Q4 t
$show = function (){- m) K' h; ~7 I" W! i
u.style.display!="none" ? style("display:none") : style("display:block") ;
% L. L/ c1 }9 a4 k* B w0 f7 g: W/ o }
/ ~9 d, J2 ^) _; M4 Y0 J- N# X $for(s,"$show")9 n( ?' ]3 T' i N
}5 d S$ m% g: _! H* I/ N
1 y' o* c5 T7 U! L( Y% i4 l3 Y3 r
check = function (t,s){2 ^0 V. e* `/ o* G3 b
$check = function (){
$ o7 E/ Z4 I; k8 x0 I/ c if(t=="2"){
+ I; q( E: \9 D8 G% ? if(u.checked){
1 Y n4 a6 B7 N5 P! G& P# Z u.checked = false;
: D6 |$ O9 J1 w/ S) ~/ W9 a& @8 Y: z }else{& l8 R- Q' Q2 ]: Z8 Y
u.checked = true;4 H1 ?$ a* k$ X4 k* U
}& o$ r, E/ f! |: |. l5 C9 h) A
}else{
+ W/ z0 t2 T+ b* @% S, i$ I u.checked = t*1 ;; }3 S# h6 j5 v% e
}( y9 f& U; U6 M
}
3 V+ `2 J2 Z% n; R $for(s,"$check")
1 p. ^) a; f$ z5 Y( r' Y8 J }% w8 u( }% w( d. [8 _: ~- n
3 Y: u9 d3 u- R style = function (v,s){/ ^- H# r, l1 w, [ B1 e/ G) w
$style = function (){- g8 w: [+ s0 I) m, |- k1 P& Q& k5 v
var $n = v.split(",") ; l7 O+ F' v9 w1 _# S9 n" U- m
for (var i=0;i<$n.length;i++ ){
' {% l# t( a# ? {) k var $m = $n<i>.split(":")
) d: a8 Y2 K) w* Z' s: } eval("u.style."+$m[0]+"='"+$m[1]+"'");$ V: v! V2 q% e7 g+ H1 V, _8 s8 Y
}
) h7 f& E4 y K; u6 C5 |+ ? }
+ q6 Y, R* j, x# z $for(s,"$style")
7 t' \/ P0 @9 { T% C# x }
2 b3 c3 ]2 U' `, h8 e. u8 b
% G3 L+ f7 u/ B- l value = function (v,s){
7 D& z6 |; Q* w* v9 U" K4 f var $n= $this (v);
4 q" @& Q, b. l8 P9 B% \. h $value = function (){
% C4 z' |$ E; P0 ]0 i u.value = $n
8 N e6 Y7 A) V- ]' g7 [. W& e }; b; `1 I* P$ ^
$for(s,"$value")
% G, K$ ?, G( z7 ] U0 I+ x }' X- ]0 d7 i' W
: a( }. m9 g1 M4 u7 O+ _ text = function (v,s){- x4 Z0 e4 V5 k a. E6 e
var $n= $this (v);
2 J' Y/ t* x9 T" U9 a; N2 Q* T $text = function (){
$ e) |: k) [, [; h3 l+ q, s5 X. d , r3 ]% k P/ ~. S: C1 ~8 @' p
u.text = $n3 [7 R- |. d. s/ y( l3 p
}, h P6 `) U: B8 T
$for(s,"$text") + v% f( s5 M$ c
}
5 u0 j @8 M1 w* _' P1 e: B. s
) Y* L8 h% R8 X" P innerhtml = function (v,s){! @$ m3 j7 | [( o/ N' |; O& p$ @+ Q
var $n= $this (v);. R$ f& u( `2 G5 J& y) h# M
$innerhtml = function (){5 ~ S, s( H: `) K% D0 K
u.innerHTML = $n/ X7 {- X: l0 Q8 t
}
" s' m. V" ?4 i8 q( l# C8 s9 P $for(s,"$innerhtml")
4 i! s6 |2 m. o& F4 _ }
- r$ b6 F- Z' D 0 D% r0 ]/ e6 B- [" i
removechild = function (s){& |( I2 `, N2 K2 q* a/ S; \3 K
$removechild = function (){
$ d4 F$ D0 e# m" c& @8 \, } u.parentNode.removeChild(u)+ c& @, A% ^5 Z2 n( E
}/ t& U I9 H& A9 H7 U' E
$for(s,"$removechild")& v0 Y8 E4 A2 ?
}( t& l3 m- p3 w0 M
! z, w. z6 C% ^' L/ \! b
$this =function(v){% M U* m/ g- `' i5 ?+ v
if(v.indexOf("this") == 0){
5 J( E" j. \9 Z4 e, o; b# R" d return eval(v.replace("this","u"))4 O) p4 `9 P( U- N9 ~" ^9 @7 u
}
9 U/ P) k9 d# r0 a t1 f! J# ?: H return v;
7 J5 c) [ I# b1 k! X, d* m }
$ r2 x: X, h6 v" u: f
9 [+ B- F5 g! ^. D7 Z( s $event = function (s){% P% w: X7 c' S* b
var $n ="u."+s+" = function(){$work(this,s);}"
6 w- G' i1 F+ v2 \ return $n;) F2 Z9 k1 I1 x0 i
}
! U1 I0 M4 |9 Z% x
, |- p6 N- v* g$ Y6 k6 d2 \* K2 }; X $replace = function (s){ ~* m# j; M) k/ ]
+ _ Y* y+ L9 w2 e6 l! c9 i
}0 H# O! p8 p8 _% P4 f8 ~" g
! N# O( X% A( d" O' q1 G* `$ K
$for = function (s,c){4 w# Z1 x/ w2 p& x
var $n="this."+c+"()" ;+ C K9 M2 i9 j' k0 o5 c# K, `
if(s!=null){
& T% k7 [2 s. ^3 D( ` var $m =$test(s);
A7 C4 L4 X1 o7 A1 s for (var i=0;i<$m.length ;i++ ){$ T2 v6 F" B! e" f+ b
u = $m<i>;: n5 b; `& I6 l( _# h! n
eval($n);- N; }! W* f9 a" f/ j
}
3 c) y. J+ Q! d/ Y' z }
) y% q& Q/ {0 X+ `% k& M- o, A0 K else{
0 F1 w2 ^* y3 p c3 e eval($n);. g( M, M- a+ A: d+ I3 b
}
, X: L, V/ Y S: W }: ^( j4 s$ A6 k
0 q, l* u a: m% Y& `( q5 ~! |6 X
$test = function (a){4 L5 {2 H& M7 x" S9 u" g3 u
var o = new Array();$o(a.split(';'),o);9 T# [2 J% `; l0 ]) T
return o;
; B& j0 m$ \& x0 \ }
5 J) a1 W! b* A6 q5 n% A! i0 |* m% e, r1 @9 B
$format = function(s){: c* K5 `* Z0 K4 a, x$ K
while (s.indexOf("'")>0){
7 F, d$ j7 n7 j7 Z s=s.replace("'","\"");
6 v e6 G! A, _# { }
. _- E* S7 B% B$ ~! Y while (s.indexOf("][")>0){5 Z, n" M' |! G1 e9 x v
s=s.replace("][","','"): y3 V; P5 C: R0 k
}
8 k; v9 ~$ [2 ^5 H while (s.indexOf("[")>0){
6 K8 V' s7 j( k4 u s=s.replace("[","'").replace("]","'")
8 x3 N$ u" |9 n1 j } ' f' [ }& b3 U6 L
return s;" F( b5 n! ^: t$ K* {8 }1 \
}
$ O% V; e$ i4 S" M3 e; T: K G6 g, a/ o R! {- N
$work = function(w,s){. s! `/ Q; T; O
u=w;eval(s)% N4 u) k/ p6 I4 P# w0 B
}* W: ?8 [ ~+ X9 x
* T; ], m, }* w* ~2 _ $id = function (s){( J, [2 C3 H0 h% A2 A0 C- W! s( }
return document.getElementById(s);
7 v( ^4 I1 g, i- S3 S- q }
% \5 }- _( L" ~7 o- _6 i
; r& a- j9 I) O $name = function (s){& u7 G# N( S1 ^/ t
return document.getElementsByName(s);. J$ S: {' i) Y5 B/ U0 X) S; Y7 O2 D9 |6 v
}
! N' s2 p% {/ A0 e
3 G! Z, H: b7 p2 N1 \6 N$ d7 e $tagname = function (s){
7 f9 k4 W% f% @ return document.getElementsByTagName(s);$ Q6 ~1 U- y2 K2 I2 F
}- z T4 Z/ M+ F* D6 x
6 Y; S/ f+ J* X; ? $o = function (a,o,c){* |& n: L, s H1 t$ `
$push = function (n) {
# d$ C; W8 e9 B( H* J for (var i=0;i< n.length;i++ ){5 l- @5 k! a* @) x' _
o.push(n<i>);
+ I) ^) E6 O* z% S } " N# W% y, T E" ?! k
}
3 F6 R/ C) U/ `7 ]% C- Y for(var i=0;i<a.length;i++){9 g+ p# B0 q, Y- O. U5 z& u& A
if(a<i>.indexOf("(") >= 0){
" }9 O: K7 Y% g( h) a' ]; G c.push(a<i>);
: R- j1 I3 W1 L F! g }
! s% Q6 j' H" g if(a<i>.indexOf("~") > 0){
M# J f9 r4 v+ B. } p" K4 K try {
g% V# C: N, M) Q) ]7 C $push(eval(a<i>.replace("#","document.getElementById('").replace(" ~ @","').getElementsByTagName('")+"')"));
3 S8 b+ W1 j- Z1 t/ n6 V" h }catch(e)0 n* i3 W. r. z- V" }# h5 U4 e- F
{} ( Q$ J/ }, o( n! ~
}
7 Y7 p$ e$ \ }3 z, v) T else{, R: ^8 N' D" j4 R3 C3 j
if(a<i>.indexOf("#")==0){
' x2 ^3 K/ W5 `& \- }7 ^; `7 s, O o.push($id(a<i>.replace("#","")));
! _- `. K% l& u2 P9 |* \' c) c2 ]" w }0 V- Q) B: r& r! x4 P C
if(a<i>.indexOf(".")==0){
8 v, \4 M) f0 M; N' @2 B $push($name(a<i>.replace(".","")));- o2 f/ C* a" a+ r! W
}: O' S5 ?6 ~8 i$ ?6 u
if(a<i>.indexOf("@")==0 ){3 `! l1 m2 D" W9 R) m: B2 S
$push($tagname(a<i>.replace("@","")));' D5 G8 g) ~. X8 k- A
}/ V+ M. q) N# k
if(a<i>.indexOf("*")==0){
# \ b7 i% J3 @3 p* a; u $p= a<i>;
0 }2 `* H( ]7 s if($p.indexOf(".")< 0){
( x. Q' B3 h; H$ [# f) h6 W $p = $p.replace("parent","parentNode")
! F- a( h0 B4 f7 L" ^! D' p- j }
, h7 R9 ~- N4 e! e! K9 i* H var $p ="u."+$p.replace("*","");, W+ i- P% R7 ]1 a/ I
while ($p.indexOf("parent.")> 0){& u4 l. q, Z9 X, E0 x6 D" K
$p = $p.replace("parent.","parentNode.")/ l ^% j7 Z, M' Z: Q3 x+ d
}! i# j! b u" p. P$ }4 [, c; z7 ?
while ($p.indexOf("child{")> 0){
# q+ f; A; s2 Y, f. r: m+ O $p = $p.replace("child{","childNodes[").replace("}","]")
2 Y& l2 x* ]- l4 K! y' J! \7 I E }
7 s7 R' q, T, d8 O: A$ U/ l" \ o.push(eval($p));
* x, Z$ k. s |+ u- F4 S- T }( b. x3 Y3 [: ?. f( S+ n
if(a<i>.indexOf("document")==0 || a<i>.indexOf("window")==0){
) p' f' g& c u o.push(eval(a<i>));
9 g" k/ [" n2 H: G }
) t+ Q4 I! x4 w/ M } A4 b- Z8 Z) }' c
if(g!=null){ 2 r% D P0 e* u5 g# e+ V. V
o.push(g);g=null
9 a' [/ Q7 r0 \0 M }
% N2 W4 r5 ]0 S( J/ x' B4 w }( @3 u0 U6 R$ R1 @( X3 L
}
7 K: u/ `" D9 P: h& N t
% c9 F9 t& {% ~' T $o(a,o,c);
, J$ N3 A |0 T' ~
0 ~) q* [4 w; C* ?- }* B for(var i = 0;i<o.length;i++){) y$ M) d& M2 U4 @ @
for(var j=0;j<c.length;j++){
; B: N) J' o9 F f7 P u = o<i>;eval($format(c[j])); S8 J7 A6 A+ q2 ?4 L
}- j4 w2 q; S: q3 Q H
}! K6 U' p) l6 y( c$ z% V6 j
3 y3 ?; {% l# f; b% ^% F if(o.length == 0){+ q" H* t& g8 t, K
for(var i=0;i<c.length;i++){
$ v% T- \" R$ L5 q/ }4 B& B eval($format(c<i>));
; ?' i8 _0 o& L* w4 h0 o( Z) j# a }6 F* w3 s9 b. h3 u: P6 j
}7 Q, B% f' t2 M, H' ]; F
" j9 X$ c2 M7 k; i% W/ u! B
if(r!=null){9 E) q7 w" R+ O5 {' Q
return r;. P: t- r7 @0 s* E. M
}
: P V' u- C0 M: D( L * ~7 x# H7 o' u- M; q! \5 E% u
if(o.length==1){$ H g5 e* F4 _$ Z! Y7 _5 `' T
return o[0];( P- X+ m, |/ H) y# v
}
" O0 N% B' a* r! j else{
5 \) |$ g( Z }% ?1 \4 J return o
l G/ f- L' X1 ^ }
$ N4 n: o; ` O" u; J( ~
! w7 f7 _: w) \ j }
0 N3 W' I9 O/ n9 tvar lrc =$("#lrc;show()").innerHTML.split("[");
6 i; V f. W' R N+ Fif(lrc.length>5){0 L6 V2 M2 y/ c7 B" I: E, P
var array = new Array();
1 n4 q: {. b" B& k, Y3 jfor (var i=0;i<lrc.length ;i++ )* D! e+ z5 e( G# A3 ]) h
{
9 I4 m) e; w; Q/ C. [) B/ t: v var g = new Object();
" M' N1 `4 d) `. v* N* B8 v t= lrc<i>.split("]");
! w/ b4 \% V \+ m6 f8 U g.time = getTime(t[0]);
) H1 k7 o- W& B* _, l* ?; Q4 T" t- j if(isNaN(g.time))
2 Y K4 z6 s+ {) P0 q; I continue;* V0 w$ L+ I" T5 e& d' j
g.c = t[1];
' W4 r, [. o) t2 c% }" s2 u+ u if(g.c == "")
& R/ a8 w" K- G+ y g.c = getNext(i);1 @6 Y. a# q$ n( H1 V
array.push(g);' L5 x( R2 }- v
}
* S1 K9 D% V" Y( @3 o+ L3 x& Iarray.sort(function(x, y) {: c( G$ Z* t2 l: e/ ?/ i
if (x.time>y.time) % M% f2 t7 W/ T1 a& Q
return 1;
4 @1 n- A# @: Q else if(x.time<y.time)
4 Y# B6 Q5 Q6 J8 f9 F return -1;. h, b5 E0 b& T/ P( X5 g7 _8 T
else
( \7 U) U2 x4 E4 H9 o9 r' y2 e return 0;8 ?6 m8 M/ K# f% ~5 J
}
6 R) J4 |+ x t0 H: o/ c/ e);" i! [' l0 C7 x/ n" k* O
for(var i = 0;i<array.length;i++)
! b7 r0 S2 v: f7 {, A3 ^{
+ Y3 K7 X2 G/ l# F var g = array<i>;% u8 h; W p% n- ~
if(!g.c){
5 s) {( ^( g! y& b" x* i7 k$ ^ g.c="";
8 M) p6 M/ u4 Y& b }
- C& V% Z6 t. x; p. { $("#list").innerHTML+="<div id=lrc"+i+">"+g.c+"</div>";
9 S+ u1 F7 G. G3 ]8 F: ~}+ _" Z3 \% q" R3 g: S7 X
var time = setInterval("lrcList()",500);
( z- t6 H- e3 }}else{
6 E) i% e( I* Q- T. B4 E. S' e% A $("#list").innerHTML=$("#lrc").innerHTML;
) J; s. R# j' q8 C9 L* ]4 v}# w4 h7 o% f+ c
function getNext(i)% G$ n) R3 D( ~1 W( _0 W" p
{8 i' G7 z& A5 g" Q0 F6 \' s9 H2 Q2 K
var result = "";
; [3 d$ U0 J$ ]. y- z! t var i = i+1;
) [( Q8 N7 I ~/ N7 f$ i6 U# d) b t = lrc<i>.split("]");
8 L9 ` y1 f& y. z; F& ? M if(t[1]=="")4 J/ t( L9 l# Z/ G! w2 g" m
result = getNext(i);; W" R+ g# }; p _
else) ^/ t/ x$ r2 r. k
result = t[1]
* p3 _! T0 ], q8 x2 V0 i3 [6 p return result;/ P W U( U- v3 i9 i0 X y
}) L8 r: p. D$ v& P7 i* e, b4 Y
5 ?$ L8 f) ^+ x5 v& f. a }2 `
function getTime(str)7 P/ i5 t3 _1 R9 {; q; K
{
9 P% L+ [1 K' R7 v0 H# ^ var time =0;5 d5 T* O7 y' W& d
var ta = str.split(":");
/ _' }, d0 z; h- v if(ta.length<2)6 o! I* t- I$ F: y/ q, s2 b. x
return time;
# ]% D: {# B, L; |9 _
5 q2 X6 {7 D* e# o* ?6 d if(ta[1].indexOf(".")>0){; F6 i9 r1 u- B" _; _
var tb = ta[1].split(".");- d7 x( x% t! w' @4 h
time = ta[0]*60*1000+tb[0]*1000+tb[1]*10;
?$ A% M( v7 ]: i) C }, O$ {1 E5 d" {
else ^7 m H0 R" _
time =ta[0]*60*1000+ta[1]*1000;
: e- E) F9 r; n; u8 H return time;
/ b9 Z( ~# n/ v6 Y: l) l& S9 [}
& ^) W7 C3 `6 ?8 k E) j. Yvar preTime = 0;
2 D# ]; G, s! V0 lvar nextTime = 0;
- J# L3 J: D7 c2 p" I9 x7 n7 O3 `var currIndex =0;7 A" \' E3 _+ I7 t
function lrcList(){8 `; E& [9 M. i2 A
var s = parent.document.getElementById("MediaPlayer").controls.currentPosition;1 |. ~& s2 c, N6 `2 \! }) [! S
s = s*1000;
1 b( _: G* r' U if(s==0){
1 D9 t/ O7 \4 K currIndex =0;
9 h/ X8 q0 z' {( \ $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
5 C: r* p* Y1 {/ J1 X; L8 S# Q for(var i=0;i<array.length;i++){
+ M6 X* B& L! C+ E9 e) C document.getElementById("lrc"+i).style.color=colorNormal;
$ m; E- t" [ A7 s7 I% i: t( x }
4 G7 q! z8 O/ \$ l: f" W return;
. N+ ?) R8 a `4 @, j }
- y: r) F; R. S9 p. [. K) D4 M if(s>0&&currIndex<array.length-1)8 V+ r0 l& o' [5 W R& E6 `
{
^! {$ L, C* i preTime = array[currIndex].time;
! Z! s: J4 C" Z" o
3 L2 T5 P J) U& o* P nextTime = array[currIndex+1].time;' I+ P ?$ V' ?
: ^, w; j: u [! a if(s>=preTime&&s<nextTime){* C- e0 C6 M z
}
* F9 u% e. F3 q( B' Q5 U" ` else if(s>=nextTime)
5 ^* Y! Q; H( a' a {
# Y0 ^9 R, M' R8 v1 g8 P document.getElementById("lrc"+currIndex).style.color=colorPasted;
! B6 o3 f7 Y0 T; b; d0 h7 p8 {$ { currIndex++;( ~$ ?. c. f# c8 |; M* |$ N
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
1 j) z N0 A5 {/ N2 M! M document.getElementById("lrc"+currIndex).style.color=colorPlaying;% [, |! @ H- S2 N b
lrcList();1 B3 B& F" x: o4 {- Y7 N
}
2 }6 S, x* |2 ^. o' t else{
2 f# A) R/ \* k- H document.getElementById("lrc"+currIndex).style.color=colorNormal;
: d6 o- g+ d0 F' y3 K' g currIndex--;4 n/ n. D4 L: n; n
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
- T( C* c1 Z0 {. R document.getElementById("lrc"+currIndex).style.color=colorPlaying;
, q+ _+ A! n8 w* ` lrcList();4 i: E4 z' X r' [. l% J Q( g! f# K
} 6 w2 F" x" a$ y8 d/ J' m$ b
}. f* o. q$ H. @% W5 j
else
7 s: I' t8 X" \3 {7 c4 M- J {5 A/ u4 w2 A' m3 J. r; q
if(s<array[array.length-1].time){
3 [, R$ R, L+ ]& y3 T currIndex = 0;
' i: Q2 T0 x) d: a5 x $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
1 [3 o' F% M# } for(var i=0;i<array.length;i++){& u6 @1 [2 U$ n9 [: i
document.getElementById("lrc"+i).style.color=colorNormal;- ~+ Q, V: o+ a g$ [! X
}
+ H+ t# E9 h- d6 a* a1 g, t lrcList();
% j* N7 b9 v3 M, L) } }& V. E. W. `& c# A, j, @
}
' f, z6 d S, e! t' d) W}
4 j0 ~/ ~# |3 @# J8 b; K# _) K</SCRIPT>
) z! v% i$ z* n1 n4 D, C</DIV></DIV>
; V8 y& w' O! s6 V! M8 H. B, a4 K! V
[ 本帖最后由 幽谷兰 于 2008-9-18 17:36 编辑 ] |
|