一拐一怪的?
复制内容到剪贴板
代码:
<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,inputblur".split(","); for(var i=0;i<e.length;i++){>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)>"+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++){>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){><script>


