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