|
|
<DIV id=list>! O& n# J, ]( A: X& k6 V
<DIV id=lrc1 style="COLOR: #666666">[wmv=0] http://lzbj.ncedu.net.cn/uploadfile/20083923248279.mp3[/wmv] </DIV>* |' o1 f1 p% L( _0 i; q1 X' O
<DIV style="COLOR: #666666">|等一分钟|听到这首歌,觉得它很动听,旋律很优美,很是喜欢,传上来给大家听听。</DIV>
4 C4 ^8 ^5 \3 `1 c+ I<DIV id=lrc2 style="COLOR: #666666">词曲唱:徐誉滕</DIV>, {( F: f- t! @ A( m
<DIV id=lrc3 style="COLOR: #666666"></DIV>
; L1 ~3 d& @2 t" C. \ K- ^<DIV id=lrc5 style="COLOR: #666666">如果时间 </DIV>4 P$ p% G( a# `
<DIV id=lrc6 style="COLOR: #666666">忘记了转 </DIV>
$ p2 _% p# D8 l1 M3 }: D<DIV id=lrc7 style="COLOR: #666666">忘了带走什么 </DIV>
: g4 K/ D- s* O' U' _' a0 D<DIV id=lrc8 style="COLOR: #666666">你会不会 </DIV>( |! R' }4 Q+ ~; }# C
<DIV id=lrc9 style="COLOR: #666666">至今停在说爱我的那天 </DIV>5 }3 W/ @- }& i- d K3 V
<DIV id=lrc10 style="COLOR: #666666">然后在世界的一个角 </DIV>
5 W& z2 B- ]% f% n. G<DIV id=lrc11 style="COLOR: #666666">有了一个我们的家 </DIV>7 U! u( |+ r3 H4 u
<DIV id=lrc12 style="COLOR: #666666">你说我的胸膛会让你感到暖 </DIV>
. d4 w0 k# g }3 y<DIV id=lrc13 style="COLOR: #666666">如果生命 </DIV># C* k2 n) A5 f6 w3 [: W
<DIV id=lrc14 style="COLOR: #666666">没有遗憾 </DIV>
; K6 T1 u9 m% b( l- q2 `<DIV id=lrc15 style="COLOR: #666666">没有波澜 </DIV>: `' P) X% ~* |7 i E
<DIV id=lrc16 style="COLOR: #666666">你会不会 </DIV>( q: j4 h L9 ^! M
<DIV id=lrc17 style="COLOR: #666666">永远没有说再见的一天 </DIV>1 q; A0 t9 I) i2 `; ?
<DIV id=lrc18 style="COLOR: #666666">可能年少的心太柔软 </DIV>! I, q) u* G! j; b+ u, _2 `
<DIV id=lrc19 style="COLOR: #666666">经不起风经不起浪 </DIV>
' X6 J" E7 V' ^1 c( W<DIV id=lrc20 style="COLOR: #666666">若今天的我能回到昨天 </DIV>
0 N0 ~- B4 A1 k+ T<DIV id=lrc21 style="COLOR: #666666">我会向自己妥协 </DIV>
& }# c$ I$ t; V) I+ \<DIV id=lrc22 style="COLOR: #666666">我在等一分钟 </DIV>
. {- R( s- q4 v i2 I2 W z2 E<DIV id=lrc23 style="COLOR: #666666">或许下一分钟 </DIV>
0 j5 U" _2 F8 Z7 N2 F<DIV id=lrc24 style="COLOR: #666666">看到你闪躲的眼 </DIV>( X9 ~; E& G( }
<DIV id=lrc25 style="COLOR: #ff3300">我不会让伤心的泪挂满你的脸 </DIV>
|) W0 E1 @( [) m2 ?9 T+ f<DIV id=lrc26 style="COLOR: #000000">我在等一分钟 </DIV>, m- U% m F+ w& D
<DIV id=lrc27 style="COLOR: #000000">或许下一分钟 </DIV>
: C* s k& G# e; B- A<DIV id=lrc28 style="COLOR: #000000">能够感觉你也心痛 </DIV>$ j) H2 r5 U+ _& u$ v' B
<DIV id=lrc29 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>' ~6 Z" M: f6 _' D9 C! E! G
<DIV id=lrc30 style="COLOR: #000000">如果生命 </DIV> F: g! C$ I% g6 t/ b- T
<DIV id=lrc31 style="COLOR: #000000">没有遗憾 </DIV>! ]8 p: A! h, q1 _1 J+ Z: Z- T+ [. E6 ^5 R
<DIV id=lrc32 style="COLOR: #000000">没有波澜 </DIV>; o# o4 o9 Y0 D) {( q$ k, ?
<DIV id=lrc33 style="COLOR: #000000">你会不会 </DIV>0 L# u# {1 R, x6 k# F9 A6 t
<DIV id=lrc34 style="COLOR: #000000">永远没有说再见的一天 </DIV>4 _( ^4 t c2 r8 n
<DIV id=lrc35 style="COLOR: #000000">可能年少的心太柔软 </DIV>
1 z8 V9 p5 o$ \# O7 D4 `* p<DIV id=lrc36 style="COLOR: #000000">经不起风经不起浪 </DIV>, y. f3 t, W" K4 M9 {2 M; e
<DIV id=lrc37 style="COLOR: #000000">若今天的我能回到昨天 </DIV>+ w/ g) D- `& @' Z% S2 P) B9 R$ v
<DIV id=lrc38 style="COLOR: #000000">我会向自己妥协 </DIV>2 M/ X" x" b: u
<DIV id=lrc39 style="COLOR: #000000">我在等一分钟 </DIV>% h# j) p& y3 Q/ _0 J
<DIV id=lrc40 style="COLOR: #000000">或许下一分钟 </DIV>
+ p/ [+ K' {! \/ e<DIV id=lrc41 style="COLOR: #000000">看到你闪躲的眼 </DIV>
( I! S& J7 B6 e0 ~<DIV id=lrc42 style="COLOR: #000000">我不会让伤心的泪挂满你的脸 </DIV>
4 o1 ]; R* c( F, D+ Z3 ]<DIV id=lrc43 style="COLOR: #000000">我在等一分钟 </DIV>" U% F2 f' o- b a* R
<DIV id=lrc44 style="COLOR: #000000">或许下一分钟 </DIV>
" N* o' D( ~9 y0 a" A) Z' F# [<DIV id=lrc45 style="COLOR: #000000">能够感觉你也心痛 </DIV>
- C$ ^: q; w3 x7 ?) ~<DIV id=lrc46 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>
9 o; I/ E1 {8 }6 |0 i- R<DIV id=lrc47 style="COLOR: #000000">我在等一分钟 </DIV>
4 ~' ~$ t" r# N# d/ N7 \, X: y<DIV id=lrc48 style="COLOR: #000000">或许下一分钟 </DIV>& P' _/ Z8 {, i2 G
<DIV id=lrc49 style="COLOR: #000000">看到你不舍的眼 </DIV>
! U4 u% p! b) t/ m$ |' ` z7 l<DIV id=lrc50 style="COLOR: #000000">我会用一个拥抱换取你的转身 </DIV>0 _6 j$ C2 P1 T5 j+ r2 s
<DIV id=lrc51 style="COLOR: #000000">我在等一分钟 </DIV>
I+ l: p! C0 y+ H<DIV id=lrc52 style="COLOR: #000000">或许下一分钟 </DIV>
4 J; Q8 U8 y& o! K! E2 j2 j<DIV id=lrc53 style="COLOR: #000000">如果你真的也心痛 </DIV>
+ T6 ?/ J, @0 I+ C3 G2 q8 w1 b<DIV id=lrc54 style="COLOR: #000000">我会告诉你我的胸膛依旧暖 2 L! s0 ?1 c9 W% v. Y; f
<DIV id=lrc style="DISPLAY: none"></DIV>
X2 J5 v9 U$ R0 V7 q<SCRIPT type=text/javascript>
6 C3 S+ L$ r( d8 X# idocument.domain="1ting.com";7 t7 T% ?/ t* p- c. C( V6 C# T5 o% J
var colorPasted="#666666";, e: @: t" X [6 ^! j
var colorPlaying="#ff3300";: O* i% b6 ]6 F9 q( i2 }: @
var colorNormal="#000000";" [% e9 W0 f/ t/ A6 I+ w; N4 f5 D
$ = function (a,g){
+ F e1 F6 Y0 W$ M var o = new Array(); 4 U; H' X+ d8 P* h
var c = new Array();
6 a, ~' g$ O7 H2 N% v) g var r;
, y- i9 h# w+ f- A& k: ]* k: M4 d var u; 5 u- l: c! K* v' i* Q; e
var a = a.split(';');
: p% e* r- g0 W9 |& L" O% l( \
' C% c5 L' M; j& `$ w var e = "keydowns,resize,load,dblclick,click,mouseout,mouseover,mousemove,mouseup,mousedown,inputchange,inputfocus,inputblur".split(",");
( T# T. f8 Q0 b8 ?7 } for(var i=0;i<e.length;i++){
0 V& I/ U* D! M8 K; `# C eval(e<i>+" = function (s){eval($event('on"+e<i>.replace("input","")+"'))}") \! R( b/ Z% t- u1 \# J
}
2 H5 D9 J& q: X+ ^: N; U
+ `8 @7 b! s4 q+ | after = function (t,d,s){. P( \5 l2 V+ k! C- ]) {, Y
$after = function (){( B1 L) _2 i$ @2 q
var $n=document.createElement(t);4 c, M9 H7 f3 c+ N. F' I7 ?7 s
if(d!=null){
- h0 u" P8 H, _/ r i $n.id=d;
5 L/ ~# Z( b. P5 T# i3 e }) w" Y0 s$ x/ o3 R) M' i4 Y
9 i6 y* n6 `, z u.insertBefore($n,null)
& o" H* D+ v: N# a' k r = $n; ( M' i' u% ?3 a5 a
u = $n; + m0 x3 _ U" U _2 x4 x' ?9 X
}
. @( n( c0 M$ p9 r, Y $for(s,"$after")1 L. t$ G6 _8 O. b! R
}& ^" h# `9 F/ s0 o4 k3 \; ^3 L/ ]
6 J4 m8 O4 b# c3 {, O, m) [& h9 L
show = function (s){" R7 W: Q6 A# t6 {- Q, F0 I; S1 V
$show = function (){
& F8 S6 R% Y& \# e# h" R3 A; ~' q9 t u.style.display!="none" ? style("display:none") : style("display:block") ;
5 C2 F% [4 H( s# y+ D7 N }: |8 C2 I9 ~) Y, X
$for(s,"$show")
, ^: h9 _# d A, o! K! U+ X/ E }0 p5 Q4 T8 d0 E1 ~# K' ~) Y e
@, B; W3 Q- e# D3 f; x
check = function (t,s){
' U3 Q0 h6 R. x $check = function (){
& u1 _6 @ w9 g5 j2 g& K, c j& G8 l if(t=="2"){7 q) c4 v! {! ?- L4 A& R
if(u.checked){ n N/ W* y1 D8 N1 v
u.checked = false;; f/ u: H1 i8 B* I, T( j) t
}else{6 E$ n6 V) ]! q4 D( R X X: |
u.checked = true;
% `1 O/ o/ S) B$ E0 k: W7 r2 Q }# @) J5 f; |$ G2 [/ t' p
}else{# M3 P+ v: h! N6 o4 s2 ]* V7 Y
u.checked = t*1 ;
1 f' l3 E' B i- W$ V }
1 \ }! I/ y: H9 c' z5 O }
- Z( D* w/ a# e- T# d $for(s,"$check")
6 {8 \) [3 x! K6 ]1 [ }- j1 g! q8 G& g' p
* x8 B5 f7 r2 H+ n* R style = function (v,s){
* T9 P H* a7 X" b. j8 X7 n( @ $style = function (){+ C! ]4 L3 x; |( P' w W0 ~
var $n = v.split(",") 9 S1 a/ o, M& g9 j- ?4 o- L8 D. [
for (var i=0;i<$n.length;i++ ){. J4 _6 o( M- j
var $m = $n<i>.split(":")
3 A/ Z$ m4 \$ y a+ i5 Z eval("u.style."+$m[0]+"='"+$m[1]+"'");
3 t5 j/ y5 B( h6 s$ r }5 \% m1 W2 W# f& \7 b% y. O
}, U' \+ ^' a8 M* K& t$ z$ A3 k9 V
$for(s,"$style")
& m- D0 f& r' l( Z" H3 s }
# X7 I4 ]$ w) F3 o1 A N" s& f" _
value = function (v,s){! q* v0 J8 c4 B! {3 w. v% B
var $n= $this (v);
4 t$ o6 S) J9 L- R- X4 r: Q& O8 Q $value = function (){
) ~6 J" B+ ?4 X! l7 _5 K! W u.value = $n
" f" Q; { C! ~+ w+ o H" @5 c2 f }1 ]( C" s e4 m) ^; {) S
$for(s,"$value") 4 z D9 @5 H$ w2 `- ]
}
3 e' `9 s3 D, i: A) e' u2 p/ s6 A0 q2 y% F. r. I* \
text = function (v,s){
- _0 r. ]! m4 m- O& @' l var $n= $this (v);! V& Q% E' x! n' G: ^4 u8 x" {8 x
$text = function (){
8 b8 o9 W3 f3 K$ V. O2 y# B+ @4 k+ p
: Z! H$ d' }7 I% e- e' H6 L1 c; R u.text = $n
) x2 }# h8 e" o) Y: `6 Y L I }6 Y/ e. A1 G) w
$for(s,"$text") ( c }/ ~* t" s2 F* ~! D |
}
1 p9 A/ y' Q. Q5 q* {* H8 p% Q) ]) ?( a: N5 I0 Z C
innerhtml = function (v,s){; Z$ s3 S1 W' F
var $n= $this (v);) m! O0 h5 _1 T+ ]8 N* f- y
$innerhtml = function (){. Z K; j2 c+ `) @, g: U4 F
u.innerHTML = $n/ a' ~: ~2 a, V- H
}' _* _# A, Z& u9 t% `# r3 F: k
$for(s,"$innerhtml")
+ {+ R3 P3 p* S- R/ W' b }
) s3 z3 N+ r$ b
& O' A' N0 ^, w. J& N removechild = function (s){
* z4 x* a# r+ @6 a5 ~ $removechild = function (){6 @/ s6 ]; }! }9 O# ?
u.parentNode.removeChild(u)+ j% Z/ n4 f6 V2 B! g
}
9 N4 y. V' l/ t; F0 f% u0 ^1 o. J $for(s,"$removechild")
0 t4 k" `. l6 B }( n% h2 P6 o6 J# q/ l* O" Y( `" @$ K, I
' u( T! V% i y; Y. Q
$this =function(v){
4 L( G$ z, m! D) z. q4 J if(v.indexOf("this") == 0){5 Y" M4 l* ~& C: C- V f. F( T
return eval(v.replace("this","u"))
& \# \4 f: v3 K% n } h1 p% |1 ~6 \: D
return v;
$ `7 O% T" y- h- ?0 W+ B& \& W }
) p0 v2 {) e$ n$ R/ R5 d3 F6 s4 ?. A8 w
$event = function (s){& W5 `" Z4 `; e: H: H$ D% l
var $n ="u."+s+" = function(){$work(this,s);}"
7 D6 H2 I& a4 Y- b7 o return $n;
/ a2 I: D' R- l* G% x. G }: \' z% i9 f U2 e
* H8 R2 _# F( f5 M4 L' [8 S9 a- V
$replace = function (s){
- r. z9 p1 O' N# ~ t0 f2 t0 V# ^$ L( g/ p# z0 B8 T7 R' m
}
( s# E. e6 ~1 x5 o- y' I9 c4 ~/ H, J0 T6 b: m+ z6 T' |$ H
$for = function (s,c){
4 R# e" R( {( d! Y2 w2 g$ j var $n="this."+c+"()" ;6 J5 N K: i7 Q; `
if(s!=null){8 a$ \) ?4 r5 d7 a! x% T0 C
var $m =$test(s);
$ E0 Q% Z: R6 O for (var i=0;i<$m.length ;i++ ){1 j9 }" C! E9 J6 j! o- Q1 e0 K
u = $m<i>;
1 j0 ]* q$ p* ?% ]8 O eval($n);. i( _- o7 r; K U
}& M( Z) l' p C6 D& H. D' M
}. E- w7 k/ Z5 p3 e" l, \
else{, y$ D* q o. L# T4 o
eval($n);
( X5 W1 ^$ c$ @" w, g, p8 I }
2 m7 w( k8 A# Y1 h }
' \' V1 ~9 E3 R! a# a9 U9 U & z5 I4 {. b2 q
$test = function (a){4 G! q: l$ d8 `1 \4 H6 w+ d7 H( }
var o = new Array();$o(a.split(';'),o);
/ O3 J; p3 R, e3 p& Q- W return o; ?' V# ` `8 S$ }1 ^' ^
}. ~# o' w1 k7 \
. y8 R9 j* P2 U p% q1 c $format = function(s){- t' {& G/ Y5 s7 M: ~% b3 S- g
while (s.indexOf("'")>0){0 G% y1 N) X6 q) M" [
s=s.replace("'","\"");
" U8 G( s" ]" K9 N" ?, } }
; A6 |5 j2 t) q# [2 d while (s.indexOf("][")>0){% Y" N$ g5 j& R1 h
s=s.replace("][","','")
8 L3 {& O5 {* I }4 C8 E5 T- a: k- T, R
while (s.indexOf("[")>0){
3 |8 X; I, B- Z0 E! l' p s=s.replace("[","'").replace("]","'")) u" H0 G5 @+ M3 p+ E
}
$ B7 |* p0 d, V Y1 h9 @+ L0 D& [$ p$ ?" U return s;
1 O4 R) ~' C( n, o, M }
6 Y1 f6 _9 V4 P" J5 M4 A8 q) r9 J' R+ J& D2 i, I% m! y: @4 ]; S7 A& }/ a
$work = function(w,s){
& i7 ~) P( v5 A% A. U! g/ Q u=w;eval(s); [) b* m9 t. h5 \1 |
}* T' e' G: ~+ j9 o
8 F+ i8 s2 P& o1 K8 C: \3 |$ ^- v $id = function (s){
5 C2 \; M& s! G# y5 W* k0 ~ return document.getElementById(s);
" U# j9 G4 p+ w- M }
6 T3 C" [* p k" }1 }1 A, N& X+ c1 @7 E
$name = function (s){
2 K" i" I, l0 j: P' G% ~ return document.getElementsByName(s);' L+ G# ~& p9 m- Y+ |2 g
}/ a8 S6 |6 f" [* h6 n
9 y2 t$ y& y6 t0 m8 P7 n' q- V' _ $tagname = function (s){
5 p) ]" N0 P: \5 [ return document.getElementsByTagName(s);. m9 F6 w: S6 U+ i
}6 e Y$ r3 O; w/ g% y
" a; }" D- ^" T( A/ j* b j $o = function (a,o,c){# D6 ^! P4 s5 D9 g
$push = function (n) {! G+ `9 s% } b( y" d4 e. E7 j
for (var i=0;i< n.length;i++ ){2 Q' z6 h3 _6 C: M# f
o.push(n<i>);- o2 J; y8 [1 E) v6 \
}
. S( O3 g2 F6 f8 ~: w1 | }) h" d; i6 @2 M( N7 {3 C
for(var i=0;i<a.length;i++){" n" k7 u1 n" v7 T! O
if(a<i>.indexOf("(") >= 0){" }5 C& N8 |7 ?$ C, e9 y
c.push(a<i>);0 u5 W! Y2 h2 t5 e# u* v) O6 ?3 x
}! L; E) K3 Z) I6 g9 @' b
if(a<i>.indexOf("~") > 0){
H# p; w" _* O( m h x/ ]0 R try {- f6 c. L" o4 U( }8 i
$push(eval(a<i>.replace("#","document.getElementById('").replace(" ~ @","').getElementsByTagName('")+"')"));
0 U2 }; l: L% ]9 g5 F# { }catch(e)
7 ], \, b0 m7 p& F4 a5 _ {}
( ^0 a" n( d z R4 p0 {5 a9 x }# \9 q: p% d% M. O; t K# ]8 b
else{
! d* i5 l+ Z8 g. r+ _. _: j if(a<i>.indexOf("#")==0){- F8 n, T! t/ }( E
o.push($id(a<i>.replace("#","")));2 O2 D: S% x1 x2 ]
}
2 s- Z. j" [& N# j: g if(a<i>.indexOf(".")==0){
2 M5 q, T& X# q2 v& _+ Z4 H $push($name(a<i>.replace(".","")));7 B3 x* D6 Y9 s: Y, p1 \& |( _- z
}
S2 ?- R" G9 ~* O* Z/ x if(a<i>.indexOf("@")==0 ){7 F1 w5 F, P0 O' R; s" i3 ?
$push($tagname(a<i>.replace("@","")));
" V: k. V$ r; |& `& D# P }( F- b+ U5 |7 c
if(a<i>.indexOf("*")==0){
8 J4 a3 W6 C0 K9 Y! r/ V) P& s $p= a<i>;
* U/ W s7 o- Q: ]' w2 p; h if($p.indexOf(".")< 0){
0 W" \$ r& \2 i z# y, F B $p = $p.replace("parent","parentNode")
4 Z, `( T9 u" v" i( Z7 j6 r }& }8 M9 G- x5 K( N- U( b9 W
var $p ="u."+$p.replace("*","");$ R2 m/ ~1 _" c6 o: s
while ($p.indexOf("parent.")> 0){# g4 m8 D7 p/ T2 {# ^
$p = $p.replace("parent.","parentNode."), M7 _; c: E4 j0 q8 t
}) u+ c2 h/ Z& t1 n6 C
while ($p.indexOf("child{")> 0){/ S7 V3 x! u3 w, p% x5 B9 @
$p = $p.replace("child{","childNodes[").replace("}","]")! Q; w* |3 | `, o& @
}
: |* F, M% _5 l3 h o.push(eval($p));
1 R$ M# W+ u c# ^ }
$ ~9 P# L* p; r& z* M1 L V+ ^ if(a<i>.indexOf("document")==0 || a<i>.indexOf("window")==0){6 {, I) K3 g+ |. c2 g) j6 w
o.push(eval(a<i>));
7 T; c& \( H' `, d1 ~ }
2 x8 q: M( I$ X M( n0 a( y }
) i6 x$ j b3 g1 B" b8 r g if(g!=null){
9 y/ f. }! x8 }$ F- q. t o.push(g);g=null# e9 s1 s% w. G' F3 j6 }
}
5 V% Z/ X- S5 T! j! { }
! z% U4 |/ w; ] }
8 ]: f1 }3 e! q8 L L1 z9 ]; D! S: Q. N
$o(a,o,c);
5 F8 B! _. G* t4 P% O2 B* X+ t2 S7 M ~" j0 c Q% p% ^
for(var i = 0;i<o.length;i++){
! L8 ~% [" g0 s+ [1 }# V/ d for(var j=0;j<c.length;j++){
4 k# g/ R: y; P8 _. b: b5 J" ]6 S9 p u = o<i>;eval($format(c[j]));' I! T3 G H( c9 j9 H, j
}
3 g( f: Y2 \+ F4 M( D+ o- u/ o$ V }' E! |# g* ?% A% ^
6 j: S, h/ Q& A/ |# p2 L
if(o.length == 0){0 M8 Q. @( A6 H+ D; r; s ~* Y! y
for(var i=0;i<c.length;i++){
* ?, a" N8 K' b$ K$ q/ ~8 N) F- w eval($format(c<i>));9 j {! ?4 g/ m j+ ~* `* y
}
7 O9 {5 h5 M; U! G }" r/ J) d+ n- n/ k A: \
- I. j) a, o7 w2 U8 P$ L- ?) p
if(r!=null){
; s) E, h0 d) _6 Y3 C0 u, x3 G return r;# J+ u: b) Q7 ~" L* H
}
6 T9 @* X) b3 I, I6 s" \
! R: v: ?1 P' q/ u" w; q4 K4 S if(o.length==1){6 c Y3 ^9 x5 E" B
return o[0];
; g* O, G2 U$ ^* F1 ~ }
9 |, @/ ^) ]0 D* f- S/ t! B9 [ else{" j. `- R c7 G' t# G
return o. S) z u8 ^1 v+ P& W. a8 _' {4 r
}
# ^. [! d. ^: B A
) O" f$ X. ~$ g. T# ?2 _' c7 { }
6 J2 C d% l! \var lrc =$("#lrc;show()").innerHTML.split("[");
/ d# n8 _7 d! aif(lrc.length>5){, E: i8 _, q; W5 O# Y! o% n
var array = new Array();/ h) n6 o8 W/ Y! v
for (var i=0;i<lrc.length ;i++ )
7 b% n* G0 a2 r" T) ~% b. o* p' O! p. v{' r' @ A+ V6 ~; y3 q
var g = new Object();
G. k% y9 ~7 g+ |: J3 M. h t= lrc<i>.split("]");3 |( ?, U$ y( g% I) ^$ x3 |
g.time = getTime(t[0]);
9 l' r# X M, l+ D0 H: B2 o if(isNaN(g.time))$ F/ M6 ]2 y. l Y1 Q* z
continue;" h$ i( E0 m4 w9 L' z2 ]8 I
g.c = t[1];4 i1 y; T7 o2 |& A( P
if(g.c == "")) Y5 h- R3 v0 z$ N
g.c = getNext(i);
" v5 F8 @: [* F; q) _) K2 V array.push(g);
$ a J. o7 a+ \}2 Y+ d& c; u: j( q8 R3 W& ]7 T, w
array.sort(function(x, y) {3 v0 x: }. `8 V$ [1 m7 H
if (x.time>y.time)
1 O6 k2 O4 d( m& [ return 1;0 }+ c F* c! M* k
else if(x.time<y.time) H5 b/ Y/ l4 c2 F$ h8 V+ Z" m& X
return -1;
& s9 B" T, n" l1 c else
* e' X9 i# {' L& n return 0;
) t3 l6 k5 J5 @ }
6 A! ~- u$ I u* Y9 U" I/ U9 Z5 v);
5 ]4 ]: J* n1 n: `: }for(var i = 0;i<array.length;i++)
/ G: ]% [* ~1 Z" O{( _ T7 \, _- Z, ]9 t/ I
var g = array<i>;& t1 b$ {* L" v6 a5 e# N! A* e
if(!g.c){
: }8 `) ^# F0 c' G g.c="";$ |1 O7 Z4 j# q' R
}# P. @7 y9 z- d" E" k
$("#list").innerHTML+="<div id=lrc"+i+">"+g.c+"</div>";7 u/ W. M5 V, @9 [' L
}4 _9 }, _/ `. U9 R' H
var time = setInterval("lrcList()",500);
, {% w; y! {4 m2 g; d6 F}else{; E) v+ S' F/ \
$("#list").innerHTML=$("#lrc").innerHTML;
) ? t+ p) T5 h}
' y# c1 {& F2 ~9 Mfunction getNext(i)
k1 L, K: x' e/ z3 { J{
9 J U, s% W$ w8 S var result = "";
) O' h4 Q+ u$ C* z$ q var i = i+1;5 B& u/ l$ ^) j9 P" R7 Y. l; ~5 p
t = lrc<i>.split("]");. \, m) A X" f7 N
if(t[1]==""). q3 a& q8 w y i! Q" t" K9 `( b
result = getNext(i);
5 N5 [# ] F- C/ S+ c. p6 G else0 b5 H s* P+ I6 D- T
result = t[1] w; n# d$ }( V3 R4 u6 r2 L
return result;
4 h5 F9 |" d/ |" y7 u, x}) j' e. N& O7 R' v
, F0 s2 ?8 A2 [function getTime(str)
0 f) g9 m* ^( |7 W; w. e{. [6 C N; F: { @* k. l
var time =0;5 s$ r, s3 {( y/ z6 h
var ta = str.split(":");
" S% G1 j! y! a, ]0 ?& o if(ta.length<2)
2 ^! A8 l$ S, p" [ return time;
/ T# M# J+ r% t# ?, _8 B0 ?' [% E6 F* V
if(ta[1].indexOf(".")>0){: E& I2 m H. S9 f; N' h; M4 Q `
var tb = ta[1].split(".");
! ]' h" H% i7 e time = ta[0]*60*1000+tb[0]*1000+tb[1]*10;
0 s% Q. }8 l# C( {: s }
, {5 A7 ]' m# Z5 s0 w else
5 G0 p \4 R$ M time =ta[0]*60*1000+ta[1]*1000;
& _ N( N5 `( j" i return time;- T) c/ f* k; S4 V
}1 E2 [! C1 S' O' Z% W1 y
var preTime = 0;) {2 G+ P7 L; _& U5 w. ]3 h1 P* [( [
var nextTime = 0;: b& }' A5 S v" N9 \
var currIndex =0;
3 o3 P1 j7 J- q# T& lfunction lrcList(){
/ p& S7 F9 l' n# B4 {% Q var s = parent.document.getElementById("MediaPlayer").controls.currentPosition;
+ g$ E0 v6 W9 u9 b0 u3 O s = s*1000;0 P% }* C- F6 `8 I: _- P& v7 Y
if(s==0){
9 f* X, B. L; l* M @ currIndex =0;
3 T! N, |7 J, k& ]% r $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
8 a6 N, X. z" A( O/ S8 |6 z& b for(var i=0;i<array.length;i++){2 e' z9 |* A/ t0 |3 c' b
document.getElementById("lrc"+i).style.color=colorNormal;
7 O2 G8 T6 M' c0 u3 o( ?' ~6 \& U }
- A3 y+ R J0 K1 ?( S return;' N* D& J9 T' R# w
}
5 E+ s1 K; |$ I; j) `" y if(s>0&&currIndex<array.length-1)
; e5 Y* N7 L/ U0 ]5 h; ^3 i8 G {
: l) y# M4 w+ }' P* q4 u- p preTime = array[currIndex].time;
$ ^! m C6 E' ?3 Z5 Y 4 U: x5 T8 G6 u/ [+ }0 g
nextTime = array[currIndex+1].time;
# t% \$ i6 b1 w5 S# v5 d
- [$ n( g% v- A/ Q5 d6 s4 ]& d if(s>=preTime&&s<nextTime){* M; D |4 I: ~5 j/ b# @" [+ v
}
# V" w; w$ H1 k5 H3 k else if(s>=nextTime)7 t" k$ t- t! \+ W% N7 O+ d" s
{
0 E" G+ g, D0 b5 C$ Z" J2 C: i# c document.getElementById("lrc"+currIndex).style.color=colorPasted;
6 {: f1 y% d( l4 |6 Q7 Y& y currIndex++;
+ z! O; i$ q! W5 i' Q $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;1 X0 @0 S6 \9 @+ A5 W
document.getElementById("lrc"+currIndex).style.color=colorPlaying;
* ?0 I* L# N8 T8 }9 n& O- e lrcList();
; M; s2 R9 d# ]( V O9 Y( B/ z! \8 m }, M% [ F+ x. C! r U% O) z
else{/ ^7 l8 I* L% r' T, ]4 M5 s. O
document.getElementById("lrc"+currIndex).style.color=colorNormal;
0 v/ x, G/ i4 Y: |' J% F3 X- e currIndex--;
- u5 Q1 u3 o7 z' \! C! }8 a, e @ $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;8 y h$ [0 C% C1 ?
document.getElementById("lrc"+currIndex).style.color=colorPlaying;. U3 P! x' ~' X- k) a
lrcList();2 k1 _% |# A3 [5 X) {* X6 ?9 \" b
} 4 y+ m0 ]3 {6 \
}( o) g/ ]4 z; R. i6 I* \
else; c; _5 e- n( b
{2 b& u0 O* h% f) Q
if(s<array[array.length-1].time){7 y: z4 K! R* @' S8 _, _% D
currIndex = 0;
0 ^5 ?% E7 z' v+ p2 H* r( ~9 G! o $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
. x8 E& T1 ^2 L. b6 v* F2 j$ R4 V for(var i=0;i<array.length;i++){
; E) k! f! e$ U/ D& \ document.getElementById("lrc"+i).style.color=colorNormal;( U9 H q; ?3 c, l" L* W/ y, I! F
}! R- M" ?3 Z" c9 U, w5 g+ k6 o4 }
lrcList();3 k3 m V. z' m( p' w
}
$ i- o+ Y. k4 ^/ V1 N0 h; I! _ }$ d0 ~; u7 j* V* e! V
}2 T$ c, Z8 U2 t
</SCRIPT>
) Y1 ?+ X7 c( J8 W: i Q</DIV></DIV>0 {( a, y% _/ i4 J2 w
. U; w) t; M- G) n[ 本帖最后由 幽谷兰 于 2008-9-18 17:36 编辑 ] |
|