• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

1ting的歌词同步,所用到的代码

原作者: [db:作者] 来自: [db:来源] 收藏 邀请
复制代码 代码如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="Keywords" content="有没有人告诉你试听,有没有人告诉你下载,有没有人告诉你歌词,有没有人告诉你mp3,歌曲有没有人告诉你" /><meta http-equiv="Description" content="有没有人告诉你试听,有没有人告诉你下载,有没有人告诉你歌词,有没有人告诉你mp3,歌曲有没有人告诉你" /><title>有没有人告诉你试听,歌曲有没有人告诉你mp3下载,歌词 - 陈楚生</title><style type="text/css"><!--body{font-size:12px; font-family:Verdana,宋体;background: #F5F5F5;margin:0; padding:0;color:#0075B5;}*{margin:0; padding:0;list-style:none;}form,img{border:none;}a{color:#0058B3; text-decoration:none; cursor:pointer}a:hover{color:#F00; text-decoration: none;}.s:link{color:#5994C8;text-decoration: none;}.s:hover{color:#F00;text-decoration: none;}#c:after,.b1:after,.b2:after, ul:after{padding:0px;content:'.';display:block;clear:both;visibility:hidden;height:0;}#c,.b1,.b2{height:1%;}.i6{width:46px; color:#8E3608; width:46px;}.i1, .i6{height:19px;border-style:double; font-size:12px; padding-top:3px; margin-top:2px;}.i6, .i1{border:#E8CA78 1px solid; background-color:#FFEB93; color:#834400;}.i1{margin-right:26px; padding-top:2px; width:60px;}#c{width:667px;margin:0px auto;padding:5px;background: #FFF;}.b1{border:1px #89D4F8 solid;}.b1 h1{background:url('/i/2007/ls.gif') repeat-x;font-size:12px;line-height:26px;height:26px;}.b1 h2{background:url('/i/2007/bs.gif') repeat-x;padding:0px 10px;font-size:12px;line-height:28px;height:28px;}.b1 .tts{padding:1px;width:663px;}.b1 span{float:right;}.b2{width:655px;padding:0px 5px 5px 5px;}.b2 .ls{width:338px;margin-top:5px;}.l{float:left;width:348px;height:442px;}.r{float:right;width:300px;height:442px;}.b3{border:1px #C3E7F8 solid;margin-top:5px;padding:0px 5px;height:298px;}.b3 li{float:left;width:168px;line-height:22px;height:22px;}.b3 h3{font-size:12px;line-height:30px;}.gc{border:1px #C3E7F8 solid; background:#EDFBFF; height:135px;}.gc h4{font-size:12px;line-height:21px; font-weight:normal;}.gc div{height:120x; width:298px;}.r .tts{margin-top:8px; height:257px;width:300px;}.b1 h2,.b3 li{overflow:hidden;text-overflow:ellipsis;}.b4{border-top:0px;}.b5{border:1px #C3E7F8 solid;padding:4px;}.ls img{cursor:pointer;}.ls ul{text-align:center;}.ls ul li, .ls ul li a{width:75px; height:20px; line-height:20px;}.ls ul li{float:left; margin:0px 10px 0px 0px;  display:block;}.ls ul li{border:0px; background-color:#FFEB93;}.ls ul li a, .ls ul li a:link{color:#834400; border:1px #E8CA78 solid; display:block; height:20px; line-height:20px;}.ls ul li a:hover{border:1px #7BCBF1 solid; background-color:#C3E7F8; color:#0058B3; display:block; height:20px; line-height:20px;}--></style><script type="text/javascript" src="http://js.1ting.com"></script><script type="text/javascript" src="/scripts/2007/common.js"></script><script type="text/javascript" src="/scripts/2007/players.js"></script><script type="text/javascript">var mid='160186';</script><script type="text/javascript" src="/scripts/2007/timer.js"></script></head><body><div id="c"><div class="b1"><h1><a href="http://www.1ting.com/" target="_blank"><img src="/i/2007/h1.gif" alt="一听音乐网" align="absmiddle" /></a><a href="http://www.1ting.com/" target="_blank">返回首页</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.1ting.com/group/group1_0.html" target="_blank">港台歌手</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.1ting.com/group/group2_0.html" target="_blank">内地歌手</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.1ting.com/group/group3_0.html" target="_blank">欧美歌手</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.1ting.com/group/group4_0.html" target="_blank">日本歌手</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.1ting.com/group/group5_0.html">韩国歌手</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.1ting.com/group/group6_0.html" target="_blank">影视金曲</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://box.1ting.com/" target="_blank">我的音乐盒</a></h1><div class="tts"><iframe scrolling="no" topmargin="0" width="100%" height="60" marginwidth="0" marginheight="0" frameborder="0" align="center" src="http://img.1ting.com/ting/p_1.html"></iframe></div><h2>歌曲:有没有人告诉你试听(<a href="http://so.1ting.com/lingting/?q=%E9%99%88%E6%A5%9A%E7%94%9F" target="_blank" class="s">聆听</a>,<a href="http://tree.1ting.com/tree.jsp?id=160186" target="_blank" class="s">音乐树</a>)&nbsp;&nbsp;&nbsp;&nbsp;歌手:<a href="/singer/64/singer_4853.html"  target="_blank">陈楚生</a>&nbsp;&nbsp;&nbsp;&nbsp;专辑:<a href="/album/65/album_11988.html"  target="_blank">快乐男声 陈楚生</a></h2><div class="b2"><div class="l"><div class="b5"><!-- 播放器代码开始 --><object id="MediaPlayer" name="MediaPlayer" width="338" height="64" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject"  ><param name="url" value="http://wma.1ting.com/wmam/zzzzzmp3/2007aJuly/03j_Chesheng/2.wma"><param name="ShowControls" value="1"><param name="ShowPositionControls" value="0"><param name="ShowAudioControls" value="1"><param name="ShowTracker" value="1"><param name="ShowDisplay" value="0"><param name="ShowStatusBar" value="1"><param name="AutoSize" value="0"><param name="ShowGotoBar" value="0"><param name="ShowCaptioning" value="0"><param name="AutoStart" value="1"><param NAME="PlayCount" value="100000"><param name="AnimationAtStart" value="0"><param name="TransparentAtStart" value="0"><param name="AllowScan" value="0"><param name="EnableContextMenu" value="0"><param name="ClickToPlay" value="0"><param name="InvokeURLs" value="1"><param name="DefaultFrame" value="datawindow"><param name="volume" value="100"><embed pluginspage="http://www.microsoft.com/windows/windowsmedia/download/" type="application/x-mplayer2" src="" ShowControls="0" ShowDisplay="0" ShowStatusBar="0" autostart="0" autorewind="0" ShowPositionControls="0" ShowTracker="0"> </embed></object><!-- 播放器代码结束 --><div class="ls"><ul><li><a  onclick="return openPop(this);" href="http://box.1ting.com/favorite.jsp?t=1&rID=160186&rName=%E6%9C%89%E6%B2%A1%E6%9C%89%E4%BA%BA%E5%91%8A%E8%AF%89%E4%BD%A0&rID_1=4853&rName_1=%E9%99%88%E6%A5%9A%E7%94%9F">加入音乐盒</a></li><li><a href="#" onclick="AddLink('http://img.1ting.com/ting/download.html?songID=160186&songName=%E6%9C%89%E6%B2%A1%E6%9C%89%E4%BA%BA%E5%91%8A%E8%AF%89%E4%BD%A0')" >下载歌曲</a></li><li><a href="http://img.1ting.com/ting/ivr.html?n=有没有人告诉你"  target="_blank">点歌给好友</a></li><li style="margin-right:0px;"><script language="javascript" type="text/javascript">document.write("<a href=\"#\" onclick=\"javascript:copyInBoard(url);\">复制给好友</a>");var url = location.href;url +="\r\n有没有人告诉你,晕,这歌真经典,来听下,个人极力推荐!....^_^";</script></li></ul></div><div class="ls"><iframe src="http://img.1ting.com/ting/p_2.html?s=有没有人告诉你" frameborder="0" scrolling="no" width="338" height="30"></iframe></div></div><div class="b3"><h3>我们为您推荐的歌曲</h3><ul id="songs"><div id="ttc"></div><li><input name="" type="checkbox" value="160190" /><a href="http://www.1ting.com/player/c7/player_160190.html"  target="_blank">她们</a></li><li><input name="" type="checkbox" value="138331" /><a href="http://www.1ting.com/player/c5/player_138331.html"  target="_blank">有一种爱叫做放手</a></li><li><input name="" type="checkbox" value="140444" /><a href="http://www.1ting.com/player/aa/player_140444.html"  target="_blank">该死的温柔</a></li><li><input name="" type="checkbox" value="122694" /><a href="http://www.1ting.com/player/c2/player_122694.html"  target="_blank">遇上你是我的缘</a></li><li><input name="" type="checkbox" value="163195" /><a href="http://www.1ting.com/player/c7/player_163195.html"  target="_blank">有没有人告诉你 - 陈楚生</a></li><li><input name="" type="checkbox" value="160185" /><a href="http://www.1ting.com/player/c7/player_160185.html"  target="_blank">凤凰花又开</a></li><li><input name="" type="checkbox" value="132596" /><a href="http://www.1ting.com/player/c5/player_132596.html"  target="_blank">等一分钟</a></li><li><input name="" type="checkbox" value="160187" /><a href="http://www.1ting.com/player/c7/player_160187.html"  target="_blank">睫毛在跳舞</a></li><li><input name="" type="checkbox" value="159918" /><a href="http://www.1ting.com/player/9b/player_159918.html"  target="_blank">我不想忘记你</a></li><li><input name="" type="checkbox" value="161764" /><a href="http://www.1ting.com/player/c7/player_161764.html"  target="_blank">一帘幽梦 - 同恩</a></li><li><input name="" type="checkbox" value="146703" /><a href="http://www.1ting.com/player/aa/player_146703.html"  target="_blank">爱情转移</a></li><li><input name="" type="checkbox" value="118175" /><a href="http://www.1ting.com/player/65/player_118175.html"  target="_blank">冰河时代2</a></li><li><input name="" type="checkbox" value="160189" /><a href="http://www.1ting.com/player/c7/player_160189.html"  target="_blank">寻找</a></li><li><input name="" type="checkbox" value="160188" /><a href="http://www.1ting.com/player/c7/player_160188.html"  target="_blank">一夜</a></li><li><input name="" type="checkbox" value="159108" /><a href="http://www.1ting.com/player/9b/player_159108.html"  target="_blank">我真的受伤了</a></li><li><input name="" type="checkbox" value="161552" /><a href="http://www.1ting.com/player/c7/player_161552.html"  target="_blank">改变自己</a></li><li><input name="" type="checkbox" value="160066" /><a href="http://www.1ting.com/player/c7/player_160066.html"  target="_blank">原来你也唱过我的歌 - 梁静茹</a></li><li><input name="" type="checkbox" value="160146" /><a href="http://www.1ting.com/player/c7/player_160146.html"  target="_blank">不能说的秘密 - 周杰伦</a></li></ul><p style="width:100%"><form name="Gsearch" id="Gsearch" action="http://so.1ting.com/song.do" method="get" target="_blank"><input name="q" id="q" type="text" style="width:120px;height:17px;border:#E8CA78 1px solid;" />&nbsp;<input type="submit" name="sub" value="歌曲搜索" class="i1" /><a onclick="clk('all','songs');" style="text-decoration:underline; color:#834400;">全选</a>&nbsp;&nbsp;<a onclick="clk('un','songs');" style="text-decoration:underline; color:#834400;">反选</a>&nbsp;&nbsp;<input type="button" name="sub" value="连 播" class="i6"  onclick="clk('play','songs');"/></form></p></div></div><div class="r"><div class="gc"><div><iframe src="http://geci.1ting.com/gc160186.html" frameborder="0" scrolling="no" width="298" height="130"></iframe></div></div><div class="tts"><iframe src="http://img.1ting.com/ting/p_3.html?s=有没有人告诉你" frameborder="0" scrolling="no" width="300" height="300"></iframe></div></div></div><iframe name="yeqiangwei" id="yeqiangwei" src="http://img.1ting.com/ting/ppp.htm" frameborder="0" scrolling="no" width="665" height="60"></iframe><h2><span></span>有没有人告诉你歌曲评论</h2><iframe name="comment" src="http://pinglun.1ting.com/pl.jsp?type=3&id=160186&style=1" frameborder="0" scrolling="no" width="665" height="200"></iframe><iframe scrolling="no" topmargin="0" width="100%" height="60" marginwidth="0" marginheight="0" frameborder="0" align="center" src="http://img.1ting.com/ting/p_4.html"></iframe></div></div><script type="text/javascript" src="http://img.1ting.com/ting/innerPlayer.js"></script><script language="JavaScript" type="text/javascript">var gotourl="";</script><script src="/ting/mp3_download.js"></script><script language="javascript" type="text/javascript" src="http://counter.1ting.com/c.jsp?t=1&r1=160186&n1=%E6%9C%89%E6%B2%A1%E6%9C%89%E4%BA%BA%E5%91%8A%E8%AF%89%E4%BD%A0&r2=11988&n2=%E5%BF%AB%E4%B9%90%E7%94%B7%E5%A3%B0+%E9%99%88%E6%A5%9A%E7%94%9F&r3=4853&n3=%E9%99%88%E6%A5%9A%E7%94%9F&g=2"></script></body></html><script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script><script type="text/javascript">_uacct = "UA-1460618-1";urchinTracker();</script>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 
Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; 
charset=UTF-8" />
<meta name="Keywords" content="有没有人告诉你歌词" />
<title>有没有人告诉你歌词</title>
<style>
body{
    scrollbar-face-color: #B3E2FE;
    scrollbar-shadow-color: #DAF1FF;
    scrollbar-mediumlight-color: #B3E2FE;
       scrollbar-track-color: #EDFBFF;
    scrollbar-arrow-color: #50BAEC;
    scrollbar-base-color :#B3E2FE;
    scrollbar-darkshadow-color:#B3E2FE;
}
body{margin:0px; padding:5px 0px;}
*{margin:0px; padding:0px; font:12px "Verdana","宋体"; 
list-style:none; color:black; background:#EDFBFF;}
#list, #lrc{margin:0px; padding:5px 5px 0px 5px;}
#list{height:122px; overflow:auto; position:relative; 
margin:0px 5px 0px 5px;}
#list div, #lrc div{line-height:18px;}
.post{float:right;}
</style>
<script type="text/javascript">
function Common(){
    this.openpop = function(obj, url, w, h) {
        if(typeof w== undefined){w=510;}
        if(typeof h == undefined){h=220;}
        var t,l;
        if(obj){
            obj.onclick = function(e){
                var tempx = 
window.screen.availWidth;
                var tempy = 
window.screen.availHeight
                t = (tempy-h)/2;
                l = (tempx-w)/2;
                window.open
(url,'',"width=" + w + ",height=" + h + ",top=" + t + 
",left=" + l + 
",scrollbars=0,resizable=1,scrollbars=yes");
            }
        }else{
            if(typeof t == undefined)
{t=200;}
            if(typeof l == undefined)
{l=100;}
            window.open(url,'',"width=" + w 
+ ",height=" + h + ",top=" + t + ",left=" + l + 
",scrollbars=0,resizable=1,scrollbars=yes");
        }
        return false;
    }
}
var c = new Common();
</script>
</head>
<BODY><div id="list" ></div>
<div id="lrc" >
[ti:有没有人告诉你]
[ar:陈楚生]
[al:]
[by:tanglinggeng]
[00:02.48]有没有人告诉你
[00:05.32]陈楚生
[00:12.21]当火车开入这座陌生的城市, 
[00:17.11]那是从来就没有见过的霓虹.  
[00:30.41]我打开离别时你送我的信件, 
[00:37.51]忽然感到无比的思念. 
[00:45.31]看不见雪的冬天不夜的城市, 
[00:52.21]我听见有人欢呼有人在哭泣. 
[00:57.31]早习惯穿梭冲满诱惑的黑夜, 
[01:08.21]但却无法忘记你的脸. 
[01:15.31]有没有人曾告诉你我很爱你, 
[01:25.31]有没有曾在你日记里哭泣. 
[01:35.31]有没有人曾告诉你我很在意, 
[01:40.31]在意这座城市的距离. 
[02:19.21]当火车开入这座陌生的城市, 
[02:28.11]那是从来就没有见过的霓虹.  
[02:34.41]我打开离别时你送我的信件, 
[02:42.51]忽然感到无比的思念. 
[02:50.31]看不见雪的冬天不夜的城市, 
[02:57.21]我听见有人欢呼有人在哭泣. 
[03:05.31]早习惯穿梭冲满诱惑的黑夜, 
[03:13.21]但却无法忘记你的脸. 
[03:21.31]有没有人曾告诉你我很爱你, 
[03:28.31]有没有曾在你日记里哭泣. 
[03:36.31]有没有人曾告诉你我很在意, 
[03:44.31]在意这座城市的距离. 
[03:51.31]有没有人曾告诉你我很爱你, 
[03:59.31]有没有曾在你日记里哭泣. 
[04:07.31]有没有人曾告诉你我很在意, 
[04:15.31]在意这座城市的距离. 
《一般人@一听音乐网》http://www.1Ting.com 欢迎您的光临!
</div>
<div id="time"></div>
<script type="text/javascript">
document.domain="1ting.com";
$ = function (a,g){
    var o = new Array();    
    var c = new Array();    
    var r;                    
    var u;                    
    var    a = a.split(';');    

    var e = 
"keydowns,resize,load,dblclick,click,mouseout,mouseover,
mousemove,mouseup,mousedown,inputchange,inputfocus,input
blur".split(",");
    for(var i=0;i<e.length;i++){
        eval(e[i]+" = function (s){eval($event
('on"+e[i].replace("input","")+"'))}")
    }

    after = function (t,d,s){
        $after = function (){
            var $n=document.createElement
(t);
            if(d!=null){
                $n.id=d;    
            }

            u.insertBefore($n,null)     
            r = $n;        
            u = $n;        
        }
        $for(s,"$after")
    }

    show  = function (s){
        $show = function (){
            u.style.display!="none" ? style
("display:none") : style("display:block") ;
        }
        $for(s,"$show")
    }

    check  = function (t,s){
        $check = function (){
             if(t=="2"){
                if(u.checked){
                    u.checked = 
false;
                }else{
                    u.checked = 
true;
                }
             }else{
                u.checked =  t*1 ;
             }
        }
        $for(s,"$check")
    }

    style = function (v,s){
        $style = function (){
            var $n = v.split(",") 
            for (var i=0;i<$n.length;i++ ){
                var $m = $n[i].split
(":") 
                eval("u.style."+$m[0]
+"='"+$m[1]+"'");
            }
        }
        $for(s,"$style")
    }

    value = function (v,s){
        var $n= $this (v);
        $value = function (){
            u.value = $n
        }
        $for(s,"$value")    
    }

    text = function (v,s){
        var $n= $this (v);
        $text = function (){

            u.text = $n
        }
        $for(s,"$text")    
    }

    innerhtml = function (v,s){
        var $n= $this (v);
        $innerhtml = function (){
            u.innerHTML = $n
        }
        $for(s,"$innerhtml")
    }

    removechild = function (s){
        $removechild = function (){

u.parentNode.removeChild(u)
        }
        $for(s,"$removechild")
    }

    $this =function(v){
        if(v.indexOf("this") == 0){
            return eval(v.replace
("this","u"))
        }
        return v;
    }

    $event = function (s){
        var $n ="u."+s+" = function(){$work
(this,s);}"
        return $n;
    }

    $replace = function (s){

    }

    $for = function (s,c){
        var $n="this."+c+"()" ;
        if(s!=null){
            var $m =$test(s);
            for (var i=0;i<$m.length ;i++ ){
                u = $m[i];
                eval($n);
            }
        }
        else{
            eval($n);
        }
    }

    $test = function (a){
        var o = new Array();$o(a.split(';'),o);
        return o;
    }

    $format  = function(s){
        while (s.indexOf("'")>0){
            s=s.replace("'","\"");
        }
        while (s.indexOf("][")>0){
            s=s.replace("][","','")
        }
        while (s.indexOf("[")>0){
            s=s.replace("[","'").replace
("]","'")
        } 
        return s;
    }

    $work = function(w,s){
        u=w;eval(s)
    }

    $id = function (s){
        return document.getElementById(s);
    }

    $name = function (s){
        return document.getElementsByName(s);
    }

    $tagname = function (s){
        return document.getElementsByTagName(s);
    }

    $o = function (a,o,c){
        $push = function  (n) {
            for (var i=0;i< n.length;i++ ){
                o.push(n[i]);
            }    
        }
        for(var i=0;i<a.length;i++){
            if(a[i].indexOf("(") >= 0){
                c.push(a[i]);
            }
            if(a[i].indexOf("~") > 0){
                try {
                    $push(eval(a
[i].replace("#","document.getElementById('").replace(" ~ 
@","').getElementsByTagName('")+"')"));
                }catch(e)
                {}      
            }
            else{
                if(a[i].indexOf("#")
==0){
                        o.push
($id(a[i].replace("#","")));
                }
                if(a[i].indexOf(".")
==0){
                        $push
($name(a[i].replace(".","")));
                }
                if(a[i].indexOf("@")==0 
){
                        $push
($tagname(a[i].replace("@","")));
                }
                if(a[i].indexOf("*")
==0){
                        $p= a
[i];
                        if
($p.indexOf(".")< 0){

$p = $p.replace("parent","parentNode")
                        }
                        var $p 
="u."+$p.replace("*","");
                        while 
($p.indexOf("parent.")> 0){

$p = $p.replace("parent.","parentNode.")
                        }
                        while 
($p.indexOf("child{")> 0){

$p = $p.replace("child{","childNodes[").replace("}","]")
                        }
                        o.push
(eval($p));
                }
                if(a[i].indexOf
("document")==0 || a[i].indexOf("window")==0){
                        o.push
(eval(a[i]));
                }
            }
            if(g!=null){     
                o.push(g);g=null
            }         
        }
    }

    $o(a,o,c);

    for(var i = 0;i<o.length;i++){
        for(var j=0;j<c.length;j++){
             u = o[i];eval($format(c[j]));
        }
    }

    if(o.length == 0){
        for(var i=0;i<c.length;i++){
             eval($format(c[i]));
        }
    }

    if(r!=null){
        return r;
    }

    if(o.length==1){
        return o[0];
    }
    else{
        return o
    } 

 }
var  lrc =$("#lrc;show()").innerHTML.split("[");
if(lrc.length>5){
var array = new Array();
for (var i=0;i<lrc.length ;i++ )
{
    var g = new Object();
    t= lrc[i].split("]");
    g.time = getTime(t[0]);
    if(isNaN(g.time))
        continue;
        g.c = t[1];
    if(g.c == "")
        g.c = getNext(i);
        array.push(g);
}
array.sort(function(x, y) {
    if (x.time>y.time)  
        return 1;
    else if(x.time<y.time)
        return -1;
    else
        return 0;
    }                   
);
for(var i = 0;i<array.length;i++)
{
    var g = array[i];
    if(!g.c){
        g.c="";
    }
    $("#list").innerHTML+="<div  
id=lrc"+i+">"+g.c+"</div>";
}
var time = setInterval("lrcList()",500);      
}else{
    $("#list").innerHTML=$("#lrc").innerHTML;
}
function getNext(i)
{
    var result = "";
    var i = i+1;
    t = lrc[i].split("]");
    if(t[1]=="")
        result = getNext(i);
    else
        result = t[1]
    return result;
}

function getTime(str)
{
    var time =0;
    var ta = str.split(":");
    if(ta.length<2)
        return time;

    if(ta[1].indexOf(".")>0){
        var tb = ta[1].split(".");
        time = ta[0]*60*1000+tb[0]*1000+tb[1]
*10;
    }
    else
        time =ta[0]*60*1000+ta[1]*1000;
    return time;
}
var preTime = 0;
var nextTime = 0;
var currIndex =0;
function lrcList(){
    var s = parent.document.getElementById
("MediaPlayer").controls.currentPosition;
    s = s*1000;
    if(s==0){
        currIndex =0;
        $("#list").scrollTop = 
$("#lrc"+currIndex).offsetTop-30;
        for(var i=0;i<array.length;i++){
            document.getElementById
("lrc"+i).style.color='#000000';
        }
        return;
    }
    if(s>0&&currIndex<array.length-1)
    {    
        preTime = array[currIndex].time;

        nextTime = array[currIndex+1].time;

        if(s>=preTime&&s<nextTime){
        }
        else if(s>=nextTime)
        {
            document.getElementById
("lrc"+currIndex).style.color='#ccc';
            currIndex++;
            $("#list").scrollTop = 
$("#lrc"+currIndex).offsetTop-30;
            document.getElementById
("lrc"+currIndex).style.color='#ff9900';
            lrcList();
        }
        else{
            document.getElementById
("lrc"+currIndex).style.color='#000';
            currIndex--;
            $("#list").scrollTop = 
$("#lrc"+currIndex).offsetTop-30;
            document.getElementById
("lrc"+currIndex).style.color='#ff9900';
            lrcList();
        }        
    }
    else
    {
        if(s<array[array.length-1].time){
            currIndex = 0;
            $("#list").scrollTop = 
$("#lrc"+currIndex).offsetTop-30;
            for(var i=0;i<array.length;i++){
                document.getElementById
("lrc"+i).style.color='#000000';
            }
            lrcList();
        }
    }
}
</script>
</BODY>
</HTML>

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap