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