|
|
<DIV id=list>* K/ r( Q: V. o% O& G! p4 P
<DIV id=lrc1 style="COLOR: #666666">[wmv=0] http://lzbj.ncedu.net.cn/uploadfile/20083923248279.mp3[/wmv] </DIV>' H4 y7 V, i+ B
<DIV style="COLOR: #666666">|等一分钟|听到这首歌,觉得它很动听,旋律很优美,很是喜欢,传上来给大家听听。</DIV>
9 _5 j0 t; h+ ]1 w<DIV id=lrc2 style="COLOR: #666666">词曲唱:徐誉滕</DIV>8 u5 a- d- \# r
<DIV id=lrc3 style="COLOR: #666666"></DIV>
( \! k- F& [" s$ N<DIV id=lrc5 style="COLOR: #666666">如果时间 </DIV>) A# C! e' u! t* s9 h! J, o t
<DIV id=lrc6 style="COLOR: #666666">忘记了转 </DIV>. v3 @5 i7 ?6 ]* o- P
<DIV id=lrc7 style="COLOR: #666666">忘了带走什么 </DIV>
; ]8 t+ i5 U: y. k3 g9 O" N% e ^! D/ N<DIV id=lrc8 style="COLOR: #666666">你会不会 </DIV>* h& B; N9 z* g8 L
<DIV id=lrc9 style="COLOR: #666666">至今停在说爱我的那天 </DIV>
0 i: X$ e: n2 _9 B9 v<DIV id=lrc10 style="COLOR: #666666">然后在世界的一个角 </DIV>
3 W! R$ n8 f8 W<DIV id=lrc11 style="COLOR: #666666">有了一个我们的家 </DIV>$ i- K/ t# d1 G% w! u
<DIV id=lrc12 style="COLOR: #666666">你说我的胸膛会让你感到暖 </DIV>
# Q6 N' Q' V' v1 q( Y4 R% f1 y. p<DIV id=lrc13 style="COLOR: #666666">如果生命 </DIV>
S; q; s4 F# p& G$ r<DIV id=lrc14 style="COLOR: #666666">没有遗憾 </DIV>7 }8 d& H4 L# N0 k
<DIV id=lrc15 style="COLOR: #666666">没有波澜 </DIV>
9 R: R0 Q8 m' Z N<DIV id=lrc16 style="COLOR: #666666">你会不会 </DIV>
' c5 R* h6 V% M3 `' Y7 O<DIV id=lrc17 style="COLOR: #666666">永远没有说再见的一天 </DIV>
& p! _) u! ]) X* {/ D3 t' A<DIV id=lrc18 style="COLOR: #666666">可能年少的心太柔软 </DIV>
+ @6 B! ^! r! O) |<DIV id=lrc19 style="COLOR: #666666">经不起风经不起浪 </DIV>) h6 Z5 O' g2 J3 ^3 I
<DIV id=lrc20 style="COLOR: #666666">若今天的我能回到昨天 </DIV>, X; F. n6 d. I3 @( x7 P- C( f
<DIV id=lrc21 style="COLOR: #666666">我会向自己妥协 </DIV>0 }8 }; n9 l! p- c3 \
<DIV id=lrc22 style="COLOR: #666666">我在等一分钟 </DIV>
+ m/ r5 H, _; F# Z<DIV id=lrc23 style="COLOR: #666666">或许下一分钟 </DIV>
' m( Y5 P0 G# H3 z' T N<DIV id=lrc24 style="COLOR: #666666">看到你闪躲的眼 </DIV>
' }6 _$ R ~3 q2 b% M4 p<DIV id=lrc25 style="COLOR: #ff3300">我不会让伤心的泪挂满你的脸 </DIV>
, N% H& r: I" F8 \% j, s( x: L3 ? O) x4 {<DIV id=lrc26 style="COLOR: #000000">我在等一分钟 </DIV>' b" t" s) n$ V! v
<DIV id=lrc27 style="COLOR: #000000">或许下一分钟 </DIV>
- L) g1 L' E4 e' g4 U3 E- {3 L<DIV id=lrc28 style="COLOR: #000000">能够感觉你也心痛 </DIV>5 P! P) d; l5 A! F4 ]5 S0 i- x
<DIV id=lrc29 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>7 ]6 ^4 D. ]5 w G
<DIV id=lrc30 style="COLOR: #000000">如果生命 </DIV>
, f. W0 R5 g( `7 O- |) g( g<DIV id=lrc31 style="COLOR: #000000">没有遗憾 </DIV>
8 W# o# b! Y1 s<DIV id=lrc32 style="COLOR: #000000">没有波澜 </DIV>
+ k& l/ e9 x6 d( |. `, E<DIV id=lrc33 style="COLOR: #000000">你会不会 </DIV>
3 L2 n2 z( v1 @) g" p<DIV id=lrc34 style="COLOR: #000000">永远没有说再见的一天 </DIV>! Z$ t# Y6 e) ~" e9 d8 z
<DIV id=lrc35 style="COLOR: #000000">可能年少的心太柔软 </DIV>- Y* m8 D5 {% x% |
<DIV id=lrc36 style="COLOR: #000000">经不起风经不起浪 </DIV>
, I) f) e& R/ D<DIV id=lrc37 style="COLOR: #000000">若今天的我能回到昨天 </DIV>
c* m" c2 Z# w<DIV id=lrc38 style="COLOR: #000000">我会向自己妥协 </DIV>( r( g1 ?6 @+ T5 g& u
<DIV id=lrc39 style="COLOR: #000000">我在等一分钟 </DIV>
7 [7 Q/ Y+ x( {<DIV id=lrc40 style="COLOR: #000000">或许下一分钟 </DIV>9 `6 o& |9 Z" Y; p& J
<DIV id=lrc41 style="COLOR: #000000">看到你闪躲的眼 </DIV>
1 |# I/ j* {8 c7 S/ C) Y' F<DIV id=lrc42 style="COLOR: #000000">我不会让伤心的泪挂满你的脸 </DIV>2 m* P/ J2 K R5 u; }! C
<DIV id=lrc43 style="COLOR: #000000">我在等一分钟 </DIV>( e. i' Q& Z. V9 f5 O( T! e" ]/ e
<DIV id=lrc44 style="COLOR: #000000">或许下一分钟 </DIV>
. {% U8 o$ ^. O3 m* t<DIV id=lrc45 style="COLOR: #000000">能够感觉你也心痛 </DIV>
. Y: s7 |) D4 Z$ v3 I, @5 b8 m0 v<DIV id=lrc46 style="COLOR: #000000">那一年我不会让离别成永远 </DIV>8 v7 u# g# \! F6 h; _9 N& [. j
<DIV id=lrc47 style="COLOR: #000000">我在等一分钟 </DIV>
: l' _" }3 r, k/ H( J) q<DIV id=lrc48 style="COLOR: #000000">或许下一分钟 </DIV>
# z- n/ M% m6 n8 V& h% D<DIV id=lrc49 style="COLOR: #000000">看到你不舍的眼 </DIV>
* h% Z7 R& \5 S) e: C+ b! [+ D3 R% f<DIV id=lrc50 style="COLOR: #000000">我会用一个拥抱换取你的转身 </DIV>, W/ X( X- d% I+ S
<DIV id=lrc51 style="COLOR: #000000">我在等一分钟 </DIV>
3 o9 d( E- r/ T I<DIV id=lrc52 style="COLOR: #000000">或许下一分钟 </DIV>; i( ?. z4 L; n% B: p! i
<DIV id=lrc53 style="COLOR: #000000">如果你真的也心痛 </DIV>% h% i% @# P0 \: K" Z. O" l7 _
<DIV id=lrc54 style="COLOR: #000000">我会告诉你我的胸膛依旧暖
" p y5 |. w) {. \$ J& p<DIV id=lrc style="DISPLAY: none"></DIV>9 g& Z$ m) X% o) S& x' |1 J
<SCRIPT type=text/javascript>7 ^& j4 i. R: ~) a
document.domain="1ting.com";! Z8 {: @ \) n
var colorPasted="#666666";
- V" m: n! [* s O$ ~4 c$ [var colorPlaying="#ff3300";% x, r" U( g+ @$ v6 G+ t
var colorNormal="#000000";# X/ w+ A& v6 H! P1 z! k
$ = function (a,g){
/ s1 l' j0 R2 A1 I var o = new Array(); ! g" |0 V5 g+ W8 H
var c = new Array(); 9 L. f* V5 `) h$ L$ P: ]
var r;
; @! t3 T, R( q1 B: @! d+ y var u; ( q, Q1 U" \; B; M# E
var a = a.split(';');
: g2 |1 ]/ A2 y& O6 j' _. ]# w6 D% s+ g
' ~/ G) _( s/ u* T var e = "keydowns,resize,load,dblclick,click,mouseout,mouseover,mousemove,mouseup,mousedown,inputchange,inputfocus,inputblur".split(",");) _' V! @+ U" A I) e( J/ I
for(var i=0;i<e.length;i++){
- _5 a& t; T5 v3 ]& U eval(e<i>+" = function (s){eval($event('on"+e<i>.replace("input","")+"'))}")& ~ ^% ~$ E( v0 O* X4 x
}. `1 D" n# W* ]: @( P
) Z! Z, u0 g3 ?( X) n1 q" z7 @+ g( ?1 j after = function (t,d,s){
5 D0 G& W! Y d" T$ p, ]4 v $after = function (){1 n- c- T- s# a8 w O* k
var $n=document.createElement(t);
. s) ~ m0 B) n. [5 P- I. m& I if(d!=null){
8 f1 ^# j* w2 z2 O5 R4 Q $n.id=d; - V9 u6 Q' r* [+ v% h+ D
}& O( C# |7 {7 \& j$ }3 W
3 n6 X7 h2 z" Q& q( R4 K- m6 I
u.insertBefore($n,null) - h" Y9 M) {8 o# I, y
r = $n;
8 S8 d, B1 [( J2 p u = $n;
* i' @0 J7 r2 G/ W }
4 X, E+ O9 f& ^8 z8 o $for(s,"$after")* t, b7 x$ A" n
}
% v% Z$ p, a& e) V+ s8 H1 G9 |4 |. W- M1 t6 s/ R; I) a# P& b
show = function (s){" ~+ d3 Q! ~/ t7 u y
$show = function (){1 h f9 j1 p" c9 ]+ J
u.style.display!="none" ? style("display:none") : style("display:block") ;
& S3 u8 V+ Y1 j2 [& G+ Z$ ` }
8 A4 J& T. w, B9 {# |" a $for(s,"$show")$ C, B! G6 a* K9 v6 W$ n4 S
}. s( K6 V( \* p; d7 c1 m0 `
9 A5 V S% s# N/ f: m& t0 @ check = function (t,s){9 A n# u& x0 a2 ^+ a
$check = function (){
; }, O5 }3 @0 y9 {; h0 s if(t=="2"){
; u& `# b% o2 q% l2 ?& Y if(u.checked){
% ^. G* E2 L- B0 C" Z u.checked = false;, m6 R! U8 j, c( `2 U
}else{
, A. X6 o0 l9 q0 {: o9 D u.checked = true;) L @2 T& W/ p9 L$ L, Y E8 c5 D
}
8 j: {. X& a' E+ G }else{; s/ b+ s& P- V8 u1 R ]: J9 E
u.checked = t*1 ;
u* G* O2 ? a }% A8 J% H' _' l0 A
}+ }5 Z3 g) t! {4 N0 c: |2 J
$for(s,"$check")4 E7 r1 Z! u4 |+ d$ V
} l8 C" h- `3 T$ q
2 a8 R- [, N+ s% F% h( _3 x" N
style = function (v,s){
+ V" W7 f6 t2 M: I! M% s: f $style = function (){
R& ~& I$ o# R var $n = v.split(",") # X6 X& b. }. m; E' d
for (var i=0;i<$n.length;i++ ){0 V5 l& K `0 Y1 C& i# J
var $m = $n<i>.split(":")
5 r$ Z. a, z7 P6 H eval("u.style."+$m[0]+"='"+$m[1]+"'");
& Y7 W" M5 ?( F }
: D1 ^. t4 F: |# S/ N# Q }
4 T8 _* A4 M! e0 D. R" j $for(s,"$style")% [; F) G" u y9 T* y8 L8 L; E
}
) C6 @- ^& o8 P% b% W
0 J6 v. E2 I& c! Q0 a( f3 Z* j) {6 K value = function (v,s){
0 L/ q+ j4 i& B* r+ J2 T var $n= $this (v);- l5 _/ c+ y6 L" T! m8 U
$value = function (){+ z* t+ T: ?7 e$ D1 P; L! s
u.value = $n
: g z, j3 \+ e. A$ [) D% } }# r1 k: q, M9 M- @4 J
$for(s,"$value") ' c' [4 {& m8 y9 E- l6 p
}/ h# U% z, n. P' U0 F; i* \- U
$ ^6 M/ \, T0 w$ { text = function (v,s){
4 C0 _% P) Z: I: D' w9 Z k var $n= $this (v);- _- @# W, r0 K+ E( ~; T( k
$text = function (){% i8 U3 J6 L3 T& G2 b% R
0 M6 u' J5 D( D5 m3 ` u.text = $n" i& ]5 L2 L% j7 D
}, s, M4 D4 a$ W
$for(s,"$text") & a, S( ^# Q7 {3 a' O% c* X* x
}
) |6 A3 a8 j' I w
- Z6 P* f; G! M/ l% C' J! y innerhtml = function (v,s){
' F q2 e, n9 K var $n= $this (v);' Z+ X c, R# K0 \, O4 } B
$innerhtml = function (){
/ E% D4 w( h2 r u.innerHTML = $n
0 V) A3 |* L" S9 f' B1 i }, T- W+ e& Y, y5 W
$for(s,"$innerhtml")5 j8 V! P( u: S# g+ [' }
}
, \0 S3 z5 ]6 B1 s' K6 ~ ; \* l8 h; ^ R2 B
removechild = function (s){7 I3 M7 m) j! g
$removechild = function (){
4 |5 m4 b4 q( z3 `4 {% j u.parentNode.removeChild(u). c) m {& V+ s' t
}) \' a, f a. Z) Y% ?( t( O$ N; Q6 v2 _
$for(s,"$removechild")
' S% m1 v3 s9 I$ r, Q ~ }' S+ Z8 `1 x' m! G6 \
( B2 @- p/ o" G5 r$ @4 w $this =function(v){
7 i- ?4 b$ t( h if(v.indexOf("this") == 0){
+ {* P) J( c8 W/ C" N1 d return eval(v.replace("this","u"))
4 w. W! Z' X& c* ?# A- p; ? }
7 ?, c2 l+ x9 D8 A, S return v;
& `& E& M8 m; f/ q) V$ _3 D; w }
9 c: O- L& s+ e7 p' m2 b
" y; W* ?( I5 e0 j2 D5 h1 d/ f $event = function (s){ e2 k6 t* `, o5 D4 Z
var $n ="u."+s+" = function(){$work(this,s);}"
5 j" P& h6 _! _$ W! H1 f return $n;
U9 m3 M+ l! I5 | }
" t7 d0 A) H% J6 F9 @* }3 m
7 S( e( Y" U9 l- w( K6 H1 ? $replace = function (s){$ {+ { D9 L% W1 G
8 Y; u+ i& Z) C, t( j9 j3 m }# h" i, ` p: |8 B7 H6 M
F+ B' ?: J" _3 B: f0 Q( Z1 O! h $for = function (s,c){8 Y" Z+ J/ I: x
var $n="this."+c+"()" ;/ t8 j! U; l! b. V, v* K/ W9 n4 [
if(s!=null){* w" P1 q% j3 ?4 U7 C0 J# F6 R
var $m =$test(s);
9 W, w, v. b+ v2 V H for (var i=0;i<$m.length ;i++ ){# C0 ~# `. V; ]! S- }8 d" \' E+ r
u = $m<i>;: L5 h+ G, i# P$ Y' Q
eval($n);& P) I8 C1 S$ W# a; \
}
+ D* n7 Q) R) ?( _1 \ }8 z$ Z# n8 h: r( ]' F( d! d
else{
$ I; Q# _6 b9 ~# y) X; l4 d eval($n);
|7 ~8 K8 o6 U9 { }
' T: F4 p$ g) N, Y }
( O1 g3 Y8 j1 `& { ; U" M5 b& ?; h
$test = function (a){7 u) g) A, @$ y1 k" z' q, C5 @- y1 d1 G
var o = new Array();$o(a.split(';'),o);
8 f6 s( A$ \2 R( t; e, L$ r return o;
; b5 p2 K/ d% L+ m }; v% J# l, S: [- \! S3 _
0 f) _- T0 u, T9 Y f $format = function(s){. n% x" Y S7 e' A$ l8 V, N
while (s.indexOf("'")>0){
% r* q# G. k+ M s=s.replace("'","\"");8 A( u% C' L1 K# E$ G8 H
}
) r5 _+ v- v& F; c) l. M& C while (s.indexOf("][")>0){# _' u1 ?1 E2 h" `0 m% ?; U
s=s.replace("][","','")9 n9 m' E; J8 ?6 s! ~ ^7 r
}! `" ^3 C' w) V9 @4 [! q) r( u
while (s.indexOf("[")>0){9 o2 Y# q# A7 _
s=s.replace("[","'").replace("]","'")
3 Q: S- ]5 X& y }
) R! g4 S) V0 A/ ^7 z. R* l return s;. f% ]8 V: A: m. t: p; C: f
}
9 y6 C( t' ^$ I! h% `/ ?$ C/ y% c `' p- x- g6 k
$work = function(w,s){
3 n6 }0 w: h2 ^- d( y1 R' z u=w;eval(s)
9 S9 {) ?& I6 K# h' I }
2 [+ m% C7 F7 b9 H9 O. _% n% Z; d
$id = function (s){3 m- g& I7 Z( E
return document.getElementById(s);, T9 p7 @0 J% ]( A9 A9 X
}
6 I; g5 C( z6 l+ u. y
6 ~! \" P) I, S8 u' J5 j $name = function (s){$ k: ]# J; p b' g
return document.getElementsByName(s);9 n, b3 ~' { S$ `! J" \2 e, }9 P C
}* k/ b r3 W, k t3 W( E+ b4 L+ g
7 m) S; T" T, v/ i
$tagname = function (s){
b0 z% A3 ^' p6 r& V7 }# o% X return document.getElementsByTagName(s);7 u& Q1 Z3 g3 B) U" U% W
}
X/ M5 Q8 J. N7 g- @) X, D: v
B- X# m! d" R+ c! W( A $o = function (a,o,c){, e0 x- n3 H; c: A. {9 T
$push = function (n) {
' N+ I1 |" U' k" s( B# H/ c for (var i=0;i< n.length;i++ ){
9 B p' b+ s3 Z: Y8 z: q/ C) ` V# F o.push(n<i>);9 F5 O7 j- L- O; v7 k, W& X* `! c
} 1 a. ?' {- h* O* X: V, `
}! B+ N9 Y2 }# E4 a# G/ i
for(var i=0;i<a.length;i++){
4 h( @; g8 p# t if(a<i>.indexOf("(") >= 0){
% O* z" t( X! _' a( t; D" ?9 [/ I c.push(a<i>);
0 L* A" o; Y( I1 ^: h& C+ H }
j; F% y/ ^1 S if(a<i>.indexOf("~") > 0){. D6 v( U: G2 l0 B" N
try {0 Q w. y5 F6 c/ T3 U# q- B
$push(eval(a<i>.replace("#","document.getElementById('").replace(" ~ @","').getElementsByTagName('")+"')"));
& @2 ~0 Z. s) @; o- l. G: o" J }catch(e)
2 y. {1 P$ @( t# O3 r& t {}
4 P9 H9 w# c% k g: ` }6 l( i" `0 g* w
else{ p6 U: C/ a$ C! w, U2 ]- M
if(a<i>.indexOf("#")==0){
/ l ], g: k, s @& W9 I o.push($id(a<i>.replace("#","")));
8 M7 q9 L/ @6 v& v+ ^ }) N' \# I- Z8 @& J
if(a<i>.indexOf(".")==0){
* W o# B! b) c& b $push($name(a<i>.replace(".","")));9 O; O5 J* G4 R$ g+ I
}
# g7 [0 C9 \% X. x9 q. X if(a<i>.indexOf("@")==0 ){7 x; y W0 h9 V# `
$push($tagname(a<i>.replace("@","")));% n' H- W- c7 @- @
}9 }5 U7 P: f4 H" v! j
if(a<i>.indexOf("*")==0){% ^7 e' U# k+ u6 X% j# F; J
$p= a<i>;
1 t& M* G- W4 Z if($p.indexOf(".")< 0){1 A- \& z4 i3 Y( \+ l0 g; S8 b
$p = $p.replace("parent","parentNode")
- ~0 T9 O' J# K( ~) d( P }
/ [% i1 V5 T' [; @ var $p ="u."+$p.replace("*","");
: @) m X. R* v$ Y% Q5 [ while ($p.indexOf("parent.")> 0){
" X9 G% ~7 o* P, T* M0 O+ | $p = $p.replace("parent.","parentNode.")
% J& S% @ o: H }
# {# d- j% B$ u4 h$ k2 f while ($p.indexOf("child{")> 0){
% w4 r: |" g' C1 S. i7 p' L $p = $p.replace("child{","childNodes[").replace("}","]")' S# k- P8 j; V' `6 T# {
}
j' c$ e( h9 P) n8 y o.push(eval($p));* }' }! T) I# ~3 v4 t
}
. P" j, @# l+ w* q5 U) }/ J; g if(a<i>.indexOf("document")==0 || a<i>.indexOf("window")==0){
9 t. O/ I v& a6 D% x. D/ Q o.push(eval(a<i>));# Z7 y( f- J7 w7 N! O
}
" u" l) H# M- n7 n9 D$ f }% x+ x! a+ l6 H( r: E
if(g!=null){
0 F4 v7 V$ A; ~& \6 j; B. m o.push(g);g=null& g2 k' ~0 r5 i" M0 Z
}
: ]3 V! w6 X4 C; C; C }
* z _# h1 B' O9 w }1 t! |7 Y! n% \' o! N
$ a: {2 U# b" Z" Y# s
$o(a,o,c);8 \* `4 D) t+ v. M1 N5 q0 o
$ Z' E* k" ^$ f( Z' i0 g5 o
for(var i = 0;i<o.length;i++){
/ ?5 i! ^, E8 V for(var j=0;j<c.length;j++){
2 V; W, I2 o: Q0 E' R* J u = o<i>;eval($format(c[j]));
1 r' [0 ^, `- Q" ? }
( t8 Y8 ~ r8 J( [ A1 \ n( j7 o }* j4 m0 k/ X7 `# k3 X# O( ]! ]' u
! _4 D; ~ r: B& K8 \ if(o.length == 0){
2 f- s, ~. @: E7 y; J" J. Y for(var i=0;i<c.length;i++){' Y9 h1 |# E, F( S# t5 k- \
eval($format(c<i>));, I4 N+ G; u! A9 O1 H! ]
}) t3 j8 O$ P! ?' `
}3 [2 x4 u$ \) ?
& O' b/ F$ U' O7 `' V
if(r!=null){
+ J& I3 s1 ]8 u' o return r;! g7 F. e6 M, S; u* H4 o
}, R6 O% |. d" T7 u) ] z
2 [. U- R+ ^, P) T& H' E3 \' b
if(o.length==1){
7 _2 p- n5 g; u; M( E! S return o[0];5 V8 e' ?4 @2 d# C q
}' j# P. x: I7 P: f+ W+ w, w
else{5 _6 S( O9 a# U: N. T; ]2 A- q H
return o
- R$ c. d6 F( Z } " n9 B- w6 a8 n# ]) U
9 ?3 i7 R/ @' Q0 e o8 D6 S+ K
}
* \/ X7 o+ \% x) V) @) Dvar lrc =$("#lrc;show()").innerHTML.split("[");
" Y; j1 O$ a2 \ H# T3 L( E( Mif(lrc.length>5){0 e7 i$ \+ c H* ]; V
var array = new Array();4 L, S: O9 K: Q- H
for (var i=0;i<lrc.length ;i++ )
1 N/ v/ f% M, |1 f{0 h; |5 L( b6 w
var g = new Object();3 r. Q9 v% s! G
t= lrc<i>.split("]");
6 b" p% u5 u2 J6 x( \ g.time = getTime(t[0]);
1 U) ^# c. J% P6 Z) K6 I: Z9 J if(isNaN(g.time))
9 I; _4 Q# A7 V& p5 d# ]. h& E continue;! T& W3 @1 B7 T
g.c = t[1];$ `; t" Y9 L& f6 j/ T7 Q* i U
if(g.c == "")
/ a3 o$ x" W% l. J' ~0 W4 I7 y W g.c = getNext(i);
2 ~" i5 Q! p Z array.push(g);. W0 L# f2 b; a; X% V4 U6 e. v
}# r/ A: w) C2 _& N1 V7 D |& ]
array.sort(function(x, y) {: R" U& I9 _" {2 s# ]* G6 O6 x' a
if (x.time>y.time)
7 `2 {" u) a0 R, |+ G6 h# x return 1;
5 N" j1 Z9 d9 A8 n' Y' p2 D2 @+ g: O% n, _ else if(x.time<y.time)* J6 a) S$ d( w* E0 |
return -1;
/ b5 E% K8 I! P" R4 a; [ else
+ w0 K- M/ G* P& K$ S return 0;0 {/ p8 F' p4 O+ _1 N
}
, h: ^ Z, H5 W0 e; F);
/ E; Q+ \# q! [; P6 y* R5 rfor(var i = 0;i<array.length;i++)1 Y" g% i9 k) r& e1 C/ G
{
$ F4 L- I' H5 b/ d2 D, k9 O var g = array<i>;
' `# K& o% a5 D! h+ o3 M if(!g.c){2 S' I* T3 K( C3 C, {
g.c="";! u+ c; u ^* H6 f
}' l* }5 U1 C: Q0 J
$("#list").innerHTML+="<div id=lrc"+i+">"+g.c+"</div>";
. i1 K) S/ a0 a+ v}) C% O ~+ X# K! l, r
var time = setInterval("lrcList()",500);
& B2 R& Q! E+ ~! L1 F}else{
5 s8 d# B5 p3 z( S3 R! Y! o $("#list").innerHTML=$("#lrc").innerHTML;
+ D4 d# m9 Q2 j' r6 y$ v/ p}
" H& W. T5 X. ~function getNext(i)
; L) j+ k, V! q+ I& b{5 b6 b$ D; _/ `- W
var result = "";; ]/ Z" t$ Q4 b. h, o7 {- ^, W8 d. B
var i = i+1;, u( \( c5 T8 _6 j( s
t = lrc<i>.split("]");7 z% i5 q$ y9 U- p3 r7 y$ c& Q
if(t[1]=="")
, x) s2 C9 E% j8 m result = getNext(i);2 V) V4 N- J* u( f: I) _
else' O/ l/ K, w+ i8 R" y/ ]
result = t[1]; K$ H, w& h7 Z' @+ }
return result;" d6 a5 U: t- E# }
} j( I, I, ^: Z( n3 y
- h5 q5 z' D; o: m
function getTime(str)
G M/ A, K4 }2 c4 v W+ k{
% _9 O3 ^9 e3 k. _ var time =0;9 v' W% n9 }) t! t# d1 \: q' C
var ta = str.split(":");
/ G9 H/ E3 a: b0 V/ D% i0 ~ if(ta.length<2)
6 h! O) V9 Z, e7 M" K& d0 j return time;- n: {- U6 ]( t
" m( ^# |# X9 C- c if(ta[1].indexOf(".")>0){6 |) b- j2 t$ C) s! N
var tb = ta[1].split(".");* m7 |+ k: Z1 U. t$ Q6 q
time = ta[0]*60*1000+tb[0]*1000+tb[1]*10;
9 K* r; R6 H* n R' j! W }
0 ]' z& w) G% k) | else
5 f, R+ r' p1 ~ time =ta[0]*60*1000+ta[1]*1000;, P: q. `6 v& G8 n6 w
return time;
; d% E. G. x/ o" d}/ @ F+ w( Y# d4 A
var preTime = 0;7 `5 b' k. @* _
var nextTime = 0;
2 @( Z6 @, e3 Z+ k: @- Ovar currIndex =0;
0 f& b4 T m7 Ffunction lrcList(){' `; \# f& O8 }1 c8 c
var s = parent.document.getElementById("MediaPlayer").controls.currentPosition;
9 V+ x+ t! ?0 X- a' Y s = s*1000;$ F" l; ]8 Z% w/ q4 x0 u: I5 A
if(s==0){7 O! W' Q0 G/ ^
currIndex =0;
% s" F U# F4 N. Z2 u- p) W $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
0 k# N% x' ^8 _: o6 x for(var i=0;i<array.length;i++){
) F) X* G0 _, C& s; V/ }, u1 B% \ document.getElementById("lrc"+i).style.color=colorNormal;7 m2 a. Y' y+ c5 H4 Y
}
1 g: g. p! a; D# W2 g0 V) f return;
1 R% ^% y7 z6 {$ v& p }. Y; P6 @- L* R& Y% o
if(s>0&&currIndex<array.length-1)
+ i: c% L7 d/ F P { 3 U6 S. t. z8 g
preTime = array[currIndex].time;
/ O- l9 |5 @0 o& C$ O1 Q
} q) X) k$ [* u k& J1 [$ t nextTime = array[currIndex+1].time;2 H* B0 t( B8 f, N* s
7 C; L: j5 o- n7 J/ u if(s>=preTime&&s<nextTime){; V$ @9 F+ V5 y, y) }, \6 d
}
9 n% z" W( m+ k0 p( B+ {5 L else if(s>=nextTime)
* J" K% S/ y, N1 L: V {) T0 [( U$ b" t* b' \) W
document.getElementById("lrc"+currIndex).style.color=colorPasted;
4 R6 b! A- o6 x: {3 w) v! q currIndex++;
9 {3 P" ~4 u7 G2 p' v $("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;' Z: U8 j0 [4 ^& V4 i. A* I% h
document.getElementById("lrc"+currIndex).style.color=colorPlaying;
! y* _- R- R0 U! Q Y" C( S+ C( Q$ O8 |( i lrcList();$ E: g" Z( E0 l4 p
}
" j2 W' e- D; [0 | N else{3 H% I) r) |9 B8 f# [' w k- r3 c
document.getElementById("lrc"+currIndex).style.color=colorNormal;
% ~1 s0 j- L4 h6 a% P5 u9 o; Z currIndex--;4 A# D6 h) E; ~7 k' S7 m3 T$ P$ m
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;, F0 {1 L( Q" c1 q y
document.getElementById("lrc"+currIndex).style.color=colorPlaying;! o2 r6 ]2 r) |9 ?! |) F% J \
lrcList();
/ |7 c: _' o' d) k8 s }
8 O, t6 E2 E/ n }! R, b! d: b6 M u! u4 ~
else
5 {' @2 j# u% u) x {) _+ I. @' N7 ^
if(s<array[array.length-1].time){
( }+ o2 E# g% k+ e S6 ] currIndex = 0;3 W+ }5 t! f, K1 m* \
$("#list").scrollTop = $("#lrc"+currIndex).offsetTop-30;
/ T: w' E1 F! P* O8 V: W for(var i=0;i<array.length;i++){4 @8 s8 l9 h/ e$ F
document.getElementById("lrc"+i).style.color=colorNormal;
/ I2 P3 ?, E7 ?2 l, C. B0 } }
( S, R9 o* V' T5 r5 _ lrcList();( K7 L/ B9 Q; H0 t7 c6 y3 t: ]
}
5 k; I t5 P% ^4 E8 M }! r7 r. N$ r( U: D# J0 o
}
$ {; @2 \" N' q. a3 \</SCRIPT>
" M' y+ I9 A) L9 Y) z8 G1 g& N) P</DIV></DIV>
/ o6 e0 [( b6 U: l( y
" W4 a8 N1 P( p[ 本帖最后由 幽谷兰 于 2008-9-18 17:36 编辑 ] |
|