变色代码加歌词同步
<META content="MSHTML 6.00.6000.16674" name=GENERATOR><IMG id=img1 style="FILTER: progid:DXImageTransform.Microsoft.Light(); WIDTH: 1000px; HEIGHT:600px" height=600 src="图片地址" width=1000>
<SCRIPT language=JavaScript>
<!--
var bcolor="#FFffFF"//
var numax=50;//
ccolor=new Array("#ccff99","#ff0033","#99ccff","#ff9900","#aaffee","#33ccff","#990033","#ffff00");
img1.style.filter="progid:DXImageTransform.Microsoft.Light()"
iii=0
col="0123456789abcdef"
rr=col.indexOf(ccolor[0].substring(1,2))*16+col.indexOf(ccolor[0].substring(2,3));
gg=col.indexOf(ccolor[0].substring(3,4))*16+col.indexOf(ccolor[0].substring(4,5));
bb=col.indexOf(ccolor[0].substring(5,6))*16+col.indexOf(ccolor[0].substring(6,7));
eval("img1.filters['DXImageTransform.Microsoft.Light'].addAmbient("+rr+","+gg+","+bb+",100)")
iii=1
function changecolor(num,r,g,b){
if(num==0){
r=col.indexOf(ccolor[iii].substring(1,2))*16+col.indexOf(ccolor[iii].substring(2,3));
g=col.indexOf(ccolor[iii].substring(3,4))*16+col.indexOf(ccolor[iii].substring(4,5));
b=col.indexOf(ccolor[iii].substring(5,6))*16+col.indexOf(ccolor[iii].substring(6,7));
}
//status=num+","+((r-rr)*num/numax+rr)+","+((g-gg)*num/numax+gg)+","+((b-bb)*num/numax+bb)
eval("img1.filters['DXImageTransform.Microsoft.Light'].changecolor(0,"+((r-rr)*num/numax+rr)+","+((g-gg)*num/numax+gg)+","+((b-bb)*num/numax+bb)+",100)")
//eval("img1.filters['DXImageTransform.Microsoft.Light'].addAmbient("+((r-rr)*num/numax+rr)+","+((g-gg)*num/numax+gg)+","+((b-bb)*num/numax+bb)+",100)")
if(num<numax){
num=num+1;
setTimeout('changecolor('+num+','+r+','+g+','+b+')',100)
}else{
num=0;
rr=r;
gg=g;
bb=b;
iii=iii+1;
if(iii>ccolor.length-1) iii=0;
setTimeout('changecolor('+num+','+r+','+g+','+b+')',2000)
}
}
changecolor(0);
// -->
</SCRIPT>
<!-- ImageReady Slices (题目.psd) -->
<!-- End ImageReady Slices --><EMBED style="LEFT: 722px; WIDTH: 60px; POSITION: absolute; TOP: -32px; HEIGHT: 450px" align=right src=特效 width=500 height=350 type=application/octet-stream wmode="transparent" invokeURLs="false" quality="high" allowScriptAccess="never" allowNetworking="internal"></EMBED> <EMBED style="LEFT: 100px; WIDTH: 600px; POSITION: absolute; TOP: 90px; HEIGHT: 460px" align=right src=特效 width=500 height=250 type=application/octet-stream wmode="transparent" invokeURLs="false" quality="high" allowScriptAccess="never" allowNetworking="internal"></EMBED>
<OBJECT id=aboutplayer height=0 width=0 classid=clsid:6bf52a52-394a-11d3-b153-00c04f79faa6><PARAM NAME="URL" VALUE="音乐地址"><PARAM NAME="rate" VALUE="1"><PARAM NAME="balance" VALUE="0"><PARAM NAME="currentPosition" VALUE="19.5473606"><PARAM NAME="defaultFrame" VALUE=""><PARAM NAME="playCount" VALUE="100"><PARAM NAME="autoStart" VALUE="-1"><PARAM NAME="currentMarker" VALUE="0"><PARAM NAME="invokeURLs" VALUE="-1"><PARAM NAME="baseURL" VALUE=""><PARAM NAME="volume" VALUE="100"><PARAM NAME="mute" VALUE="0"><PARAM NAME="uiMode" VALUE="full"><PARAM NAME="stretchToFit" VALUE="0"><PARAM NAME="windowlessVideo" VALUE="0"><PARAM NAME="enabled" VALUE="-1"><PARAM NAME="enableContextMenu" VALUE="0"><PARAM NAME="fullScreen" VALUE="0"><PARAM NAME="SAMIStyle" VALUE=""><PARAM NAME="SAMILang" VALUE=""><PARAM NAME="SAMIFilename" VALUE=""><PARAM NAME="captioningID" VALUE=""><PARAM NAME="enableErrorDialogs" VALUE="0"><PARAM NAME="_cx" VALUE="26"><PARAM NAME="_cy" VALUE="26"></OBJECT></CENTER><SPAN id=lrcdata>
<!--
[ti:爱不在就放手]
[ar:乌兰托娅]
[al:单曲]
[by:贴赠:会子]
[00:01.41]爱不在就放手
[00:03.38]演唱 乌兰托娅
[00:04.91]词曲 张毅
[00:06.11]贴赠:会子 ·祝老友开开心心每一天!
[00:30.18]秋的眼 秋的眉 秋的水
[00:37.18]轻轻的风随落花四处纷飞
[00:44.18]黄的花 黄的朵 黄的蕊
[00:51.18]亲爱的人我多想一生把你陪
[00:58.38]
[01:00.13]你的眼 你的泪 你的美
[01:07.35]忧伤的夜
[01:09.07]就象那 浓浓 的咖啡
[01:14.21]我的梦 我的情 我的悲
[01:21.21]亲爱的人我多想一生把你陪
[01:28.44]爱情的感伤 不一定是心碎
[01:35.22]思念这杯苦酒怎么喝也不醉
[01:56.40][01:42.22]爱不在就放手别变成负累
[02:03.05][01:49.11]就算痛到心碎也要走出包围
[02:10.49]
[02:56.71]你的眼 你的泪 你的美
[03:03.60]忧伤的夜
[03:05.47]就象那 浓浓 的咖啡
[03:10.60]我的梦 我的情 我的悲
[03:17.72]亲爱的人我多想一生把你陪
[03:24.61]太在意收获就会失去那种美
[03:31.28]就算不停去追
[03:34.78]人生也没有完美
[03:52.91][03:38.83]爱不在就放手别变成负累
[03:59.58][03:45.50]就算痛到心碎也要走出包围
[04:13.57][04:06.69]就算痛到心碎...
[04:17.18][04:10.19]也要走出包围......
[04:26.26]
--></SPAN>
<table id=sth style="LEFT: 500px; POSITION: absolute; TOP: 480px" cellSpacing=0 cellPadding=0 border=0>
<tr>
<td align=middle>
<table cellSpacing=0 cellPadding=0 border=0>
<tr>
<td align=middle><SPAN id=lrcbox style="COLOR: #000000; HEIGHT: 30px">老郑</SPAN></td>
</tr>
<tr style="POSITION: relative; TOP: -30px">
<td noWrap>
<div id=lrcbc style="OVERFLOW: hidden; WIDTH: 132px; COLOR: #990033; HEIGHT: 520px">老郑</div></td>
</tr>
</table>
</td>
</tr>
</table>
<SCRIPT language=JavaScript>
ffbb=0;
lrcobj=new lrcClass(lrcdata.innerHTML.slice(4,-3));
function lrcClass(tt)
{
this.inr=[];
this.oTime=0;
this.dte=-1;
tt=tt.replace(/\[[^\[\]]*\:[^\[\]]*[^\[\]\d\.]+[^\[\]]*\]/g,"");
while(/\[[^\[\]]+\:[^\[\]]+\]/.test(tt))
{
tt=tt.replace(/((\[[^\[\]]+\:[^\[\]]+\])+[^\[\r\n]*)[^\[]*/,"\n");
var zzzt=RegExp.$1;
/^(.+\])([^\]]*)$/.exec(zzzt);
var ltxt=RegExp.$2;
var eft=RegExp.$1.slice(1,-1).split("][");
for(var ii=0; ii<eft.length; ii++)
{
var sf=eft[ii].split(":");
var tse=parseInt(sf[0],10)*60+parseFloat(sf[1]);
var sso={t:[] , w:[] , n:ltxt}
sso.t[0]=tse-this.oTime;
this.inr[this.inr.length]=sso;
}
}
for(var ii=0; ii<this.inr.length; ii++)
{
while(/<[^<>]+\:[^<>]+>/.test(this.inr[ii].n))
{
this.inr[ii].n=this.inr[ii].n.replace(/<(\d+)\:([\d\.]+)>/,"%=%");
var tse=parseInt(RegExp.$1,10)*60+parseFloat(RegExp.$2);
this.inr[ii].t[this.inr[ii].t.length]=tse-this.oTime;
}
lrcbc.innerHTML="<font>"+this.inr[ii].n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/%=%/g,"</font><font>")+" </font>";
var fall=lrcbc.getElementsByTagName("font");
for(var wi=0; wi<fall.length; wi++)
this.inr[ii].w[this.inr[ii].w.length]=fall[wi].offsetWidth;
this.inr[ii].n=lrcbc.innerText;
}
this.run=function(tme)
{
{
var ii;
for(ii=this.inr.length-1; ii>=0 && this.inr[ii].t[0]>tme; ii--){}
if(ii<0) return;
this.ddh=this.inr[ii].t;
this.fjh=this.inr[ii].w;
this.dte=(ii<this.inr.length-1)?this.inr[ii+1].t
[0]:aboutplayer.currentMedia.duration;
this.print(this.retxt(ii));
}
var bbw=0;
var ki;
for(ki=0; ki<this.ddh.length && this.ddh[ki]<=tme; ki++)
bbw+=this.fjh[ki];
var kt=ki-1;
var sc=((ki<this.ddh.length)?this.ddh[ki]:this.dte)-this.ddh[kt];
var tc=tme-this.ddh[kt];
bbw-=this.fjh[kt]-tc/sc * this.fjh[kt];
if(bbw>lrcbox.offsetWidth)
bbw=lrcbox.offsetWidth;
lrcbc.style.width=Math.round(bbw);
}
this.retxt=function(i)
{
return(i<0 || i>=this.inr.length)?"":this.inr[i].n;
}
this.print=function(txt)
{
lrcbox.innerText=txt;
lrcbc.innerText=txt;
}
}
function lrcrun()
{
with(aboutplayer)
{
lrcobj.run(controls.currentPosition+ffbb);
}
setTimeout("lrcrun()",10);
}
lrcrun();
</SCRIPT> |