欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2022-06-26 08:37:21
复制代码 代码如下:
复制代码 代码如下:

<!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>