主頁(yè) > 知識(shí)庫(kù) > 1ting的歌詞同步,所用到的代碼

1ting的歌詞同步,所用到的代碼

熱門(mén)標(biāo)簽:網(wǎng)站文章發(fā)布 美圖手機(jī) 呼叫中心市場(chǎng)需求 智能手機(jī) 檢查注冊(cè)表項(xiàng) 鐵路電話系統(tǒng) 銀行業(yè)務(wù) 服務(wù)器配置
復(fù)制代碼 代碼如下:

!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="有沒(méi)有人告訴你試聽(tīng),有沒(méi)有人告訴你下載,有沒(méi)有人告訴你歌詞,有沒(méi)有人告訴你mp3,歌曲有沒(méi)有人告訴你" />meta http-equiv="Description" content="有沒(méi)有人告訴你試聽(tīng),有沒(méi)有人告訴你下載,有沒(méi)有人告訴你歌詞,有沒(méi)有人告訴你mp3,歌曲有沒(méi)有人告訴你" />title>有沒(méi)有人告訴你試聽(tīng),歌曲有沒(méi)有人告訴你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 ;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="有沒(méi)有人告訴你歌詞" />
title>有沒(méi)有人告訴你歌詞/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:有沒(méi)有人告訴你]
[ar:陳楚生]
[al:]
[by:tanglinggeng]
[00:02.48]有沒(méi)有人告訴你
[00:05.32]陳楚生
[00:12.21]當(dāng)火車開(kāi)入這座陌生的城市, 
[00:17.11]那是從來(lái)就沒(méi)有見(jiàn)過(guò)的霓虹.  
[00:30.41]我打開(kāi)離別時(shí)你送我的信件, 
[00:37.51]忽然感到無(wú)比的思念. 
[00:45.31]看不見(jiàn)雪的冬天不夜的城市, 
[00:52.21]我聽(tīng)見(jiàn)有人歡呼有人在哭泣. 
[00:57.31]早習(xí)慣穿梭沖滿誘惑的黑夜, 
[01:08.21]但卻無(wú)法忘記你的臉. 
[01:15.31]有沒(méi)有人曾告訴你我很愛(ài)你, 
[01:25.31]有沒(méi)有曾在你日記里哭泣. 
[01:35.31]有沒(méi)有人曾告訴你我很在意, 
[01:40.31]在意這座城市的距離. 
[02:19.21]當(dāng)火車開(kāi)入這座陌生的城市, 
[02:28.11]那是從來(lái)就沒(méi)有見(jiàn)過(guò)的霓虹.  
[02:34.41]我打開(kāi)離別時(shí)你送我的信件, 
[02:42.51]忽然感到無(wú)比的思念. 
[02:50.31]看不見(jiàn)雪的冬天不夜的城市, 
[02:57.21]我聽(tīng)見(jiàn)有人歡呼有人在哭泣. 
[03:05.31]早習(xí)慣穿梭沖滿誘惑的黑夜, 
[03:13.21]但卻無(wú)法忘記你的臉. 
[03:21.31]有沒(méi)有人曾告訴你我很愛(ài)你, 
[03:28.31]有沒(méi)有曾在你日記里哭泣. 
[03:36.31]有沒(méi)有人曾告訴你我很在意, 
[03:44.31]在意這座城市的距離. 
[03:51.31]有沒(méi)有人曾告訴你我很愛(ài)你, 
[03:59.31]有沒(méi)有曾在你日記里哭泣. 
[04:07.31]有沒(méi)有人曾告訴你我很在意, 
[04:15.31]在意這座城市的距離. 
《一般人@一聽(tīng)音樂(lè)網(wǎng)》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;ie.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;ia.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;io.length;i++){
        for(var j=0;jc.length;j++){
             u = o[i];eval($format(c[j]));
        }
    }

    if(o.length == 0){
        for(var i=0;ic.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;ilrc.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.timey.time)
        return -1;
    else
        return 0;
    }                   
);
for(var i = 0;iarray.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.length2)
        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;iarray.length;i++){
            document.getElementById
("lrc"+i).style.color='#000000';
        }
        return;
    }
    if(s>0currIndexarray.length-1)
    {    
        preTime = array[currIndex].time;

        nextTime = array[currIndex+1].time;

        if(s>=preTimesnextTime){
        }
        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(sarray[array.length-1].time){
            currIndex = 0;
            $("#list").scrollTop = 
$("#lrc"+currIndex).offsetTop-30;
            for(var i=0;iarray.length;i++){
                document.getElementById
("lrc"+i).style.color='#000000';
            }
            lrcList();
        }
    }
}
/script>
/BODY>
/HTML>

標(biāo)簽:河南 紅河 樂(lè)山 沈陽(yáng) 上海 新疆 長(zhǎng)治 滄州

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《1ting的歌詞同步,所用到的代碼》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266