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