歌词移动
<DIV style="LEFT: -250px; WIDTH: 980px; POSITION: relative; TOP: 140px"><IFRAME marginWidth=0 marginHeight=0 src="http://www.mjbox.com/r/hz/hzyh66/MP3/666.txt" frameBorder=0 width=1000 scrolling=no height=420></IFRAME></DIV><BR><BR><BR><BR><BR><BR><BR><BR><BR>[ 本帖最后由 无忌未来 于 2009-11-8 18:08 编辑 ] 我就是想问下怎么样才可以把歌词显示的行数少一点,就是说能显示个三四排歌词就够了,请教高手了。。。先谢 <P><html><BR><head><BR><title>女人如烟</title><BR><STYLE><BR>TD { FONT-SIZE: 8pt; LINE-HEIGHT: 14px; }<BR>BODY{<BR>FONT-SIZE: 9pt;<BR>LINE-HEIGHT: 16px;<BR>margin-left: 0px;<BR>margin-top: 0px;<BR>margin-right: 0px;<BR>margin-bottom: 0px;<BR>}<BR>#lrcollbox td, #lrcollbox font {font-family: 微软雅黑; font-size: 14px;}<BR>#lrcoll td { color:#000000; cursor: default; }<BR>#lrcbox { color:#006000 }<BR>#lrcfilter { filter: alpha(opacity=0) }<BR>#lrcbc { color:#FF0000 }<BR></STYLE><BR></head><BR><img src=\"<A href=\"http://bbs.yhlove.com/attachments/month_0910/20091018_2dffdee04c63131b5759YpejbZ58uocs.jpg\">http://bbs.yhlove.com/attachments/month_0910/20091018_2dffdee04c63131b5759YpejbZ58uocs.jpg</A>\"></P>
<P><div style=\"position: absolute; z-index: 1; left:30px; top:170px\" id=\"layer1\"><BR><body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\"><BR><span id=\"lrcdata\"><!--</P>
<P><BR><BR><BR> <BR>女人如烟<BR>词曲:穆真演唱:魏佳艺<BR>那天你用柔情将我点燃<BR>我开始变成你手中的烟<BR>你轻轻地将我含在唇间<BR>我的身姿弥漫了你的眼<BR>你漫不经心燃烧我的生命<BR>我也心甘情愿做你的烟<BR>也许你不经意的一个微笑<BR>我就义无反顾地来到你身边<BR>你说过 今生与烟为伴<BR>你说过 女人如烟你已习惯<BR>你说过 聚散离合随遇而安<BR>可我来世还要做你手中的烟<BR>想我了 就请你把我点燃<BR>任我幸福的泪缠绵你指尖<BR>化成灰也没有一丝遗憾<BR>让我今生来世为你陪伴<BR>间奏 词曲穆真 演唱魏佳艺<BR>那天你用柔情将我点燃<BR>我开始变成你手中的烟<BR>你轻轻地将我含在唇间<BR>我的身姿弥漫了你的眼<BR>你漫不经心燃烧我的生命<BR>我也心甘情愿做你的烟<BR>也许你不经意的一个微笑<BR>我就义无反顾地来到你身边<BR>空气中 寂寞在悄悄蔓延<BR>就算我化为烟雾也不忍离散<BR>好喜欢 你疼我说笨蛋噢乖<BR>我知道 我的感觉无法改变<BR>想我了 就请你把我点燃<BR>任我幸福的泪缠绵你指尖<BR>化成灰也没有一丝遗憾<BR>让我今生来世为你陪伴<BR>让我今生来世<BR>为你陪伴</P>
<P> </P>
<P>--></span><BR><center><BR><OBJECT id=aboutplayer height=0 width=0 <BR>classid=clsid:6bf52a52-394a-11d3-b153-00c04f79faa6><PARAM NAME=\"url\" VALUE=\"<A href=\"http://www.mjbox.com/r/hz/hzyh66/MP3/\">http://www.mjbox.com/r/hz/hzyh66/MP3/</A>女人如烟 魏佳艺.mp3\"><PARAM NAME=\"autostart\" VALUE=\"5\"><PARAM NAME=\"volume\" VALUE=\"100\"><PARAM NAME=\"enablecontextmenu\" VALUE=\"0\"><PARAM NAME=\"enableerrordialogs\" VALUE=\"0\"><param NAME=\"PlayCount\" VALUE=\"100\"></OBJECT><BR></CENTER><BR><div id=\"lrcollbox\" style=\"overflow:hidden; height:250; width:350;\" ><BR><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" id=\"lrcoll\" style=\"position:relative; top: -20px;\" oncontextmenu=\"return false;\"><BR><tr><td nowrap height=\"20\" align=\"center\" id=\"lrcwt1\"></td></tr><BR><tr><td nowrap height=\"20\" align=\"center\" id=\"lrcwt2\"></td></tr><BR><tr><td nowrap height=\"20\" align=\"center\" id=\"lrcwt3\"></td></tr><BR><tr><td nowrap height=\"20\" align=\"center\" id=\"lrcwt4\"></td></tr><BR><tr><td nowrap height=\"20\" align=\"center\" id=\"lrcwt5\"></td></tr><BR><tr><td nowrap height=\"20\" align=\"center\" id=\"lrcwt6\"></td></tr><BR><tr><td nowrap height=\"20\" align=\"center\" id=\"lrcwt7\"></td></tr><BR><tr><td nowrap height=\"20\" align=\"center\" id=\"lrcwt8\"></td></tr><BR><tr><td nowrap height=\"20\" align=\"center\" id=\"lrcwt9\"></td></tr><BR><tr><td nowrap height=\"20\" align=\"center\" id=\"lrcwt10\"></td></tr><BR><tr><td nowrap height=\"20\" align=\"center\" id=\"lrcwt11\"></td></tr><BR><tr><td nowrap height=\"20\" align=\"center\"><BR><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><BR><tr><td nowrap height=\"20\"><span id=\"lrcwt12\" style=\"height:20\"></span></td></tr><BR><tr style=\"position:relative; top: -20px; z-index:6\"><td nowrap height=\"20\"><div id=\"lrcfilter\" style=\"overflow:hidden; width:100%; color:#FFFF33; height:20\"></div></td></tr><BR></table><BR></td></tr><BR><tr style=\"position:relative; top: -20px\"><td nowrap height=\"20\" align=\"center\"><BR><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><BR><tr><td nowrap height=\"20\"><span id=\"lrcbox\" style=\"height:20\">歌词加载中</span></td></tr><BR><tr style=\"position:relative; top: -20px; z-index:6;\"><td nowrap height=\"20\"><div id=\"lrcbc\" style=\"overflow:hidden; height:20; width:0;\"></div></td></tr><BR></table><BR></td></tr><BR><tr style=\"position:relative; top: -40px;\"><td nowrap height=\"20\" align=\"center\" id=\"lrcwt13\"></td></tr><BR><tr style=\"position:relative; top: -40px;\"><td nowrap height=\"20\" align=\"center\" id=\"lrcwt14\"></td></tr><BR><tr style=\"position:relative; top: -40px;\"><td nowrap height=\"20\" align=\"center\" id=\"lrcwt15\"></td></tr><BR><tr style=\"position:relative; top: -40px;\"><td nowrap height=\"20\" align=\"center\" id=\"lrcwt16\"></td></tr><BR><tr style=\"position:relative; top: -40px;\"><td nowrap height=\"20\" align=\"center\" id=\"lrcwt17\"></td></tr><BR><tr style=\"position:relative; top: -40px;\"><td nowrap height=\"20\" align=\"center\" id=\"lrcwt18\"></td></tr><BR><tr style=\"position:relative; top: -40px;\"><td nowrap height=\"20\" align=\"center\" id=\"lrcwt19\"></td></tr><BR><tr style=\"position:relative; top: -40px;\"><td nowrap height=\"20\" align=\"center\" id=\"lrcwt20\"></td></tr><BR></table><BR></div><BR></center><BR><script language=\"JavaScript\"><BR>var lrc0;<BR>var lrc1;<BR>var min;<BR>lrcobj = new lrcClass(lrcdata.innerHTML.slice(4,-3));</P>
<P>function lrcClass(tt)<BR>{<BR>this.inr = [];<BR>this.min = [];</P>
<P>this.oTime = 0;</P>
<P>this.dts = -1;<BR>this.dte = -1;<BR>this.dlt = -1;<BR>this.ddh;<BR>this.fjh;</P>
<P>lrcbc.style.width = 0;</P>
<P>if(/\\/i.test(tt))<BR> this.oTime = RegExp.$1/1000;</P>
<P>tt = tt.replace(/\\[\\:\\][^$\\n]*(\\n|$)/g,\"$1\");<BR>tt = tt.replace(/\\[[^\\[\\]\\:]*\\]/g,\"\");<BR>tt = tt.replace(/\\[[^\\[\\]]*[^\\[\\]\\d]+[^\\[\\]]*\\:[^\\[\\]]*\\]/g,\"\");<BR>tt = tt.replace(/\\[[^\\[\\]]*\\:[^\\[\\]]*[^\\[\\]\\d\\.]+[^\\[\\]]*\\]/g,\"\");<BR>tt = tt.replace(/<[^<>]*[^<>\\d]+[^<>]*\\:[^<>]*>/g,\"\");<BR>tt = tt.replace(/<[^<>]*\\:[^<>]*[^<>\\d\\.]+[^<>]*>/g,\"\");</P>
<P>while(/\\[[^\\[\\]]+\\:[^\\[\\]]+\\]/.test(tt))<BR>{<BR> tt = tt.replace(/((\\[[^\\[\\]]+\\:[^\\[\\]]+\\])+[^\\[\\r\\n]*)[^\\[]*/,\"\\n\");<BR> var zzzt = RegExp.$1;<BR> /^(.+\\])([^\\]]*)$/.exec(zzzt);<BR> var ltxt = RegExp.$2;<BR> var eft = RegExp.$1.slice(1,-1).split(\"][\");<BR> for(var ii=0; ii<eft.length; ii++)<BR> {<BR> var sf = eft.split(\":\");<BR> var tse = parseInt(sf,10) * 60 + parseFloat(sf);<BR> var sso = { t:[] , w:[] , n:ltxt }<BR> sso.t = tse-this.oTime;<BR> this.inr = sso;<BR> }<BR>}<BR>this.inr = this.inr.sort( function(a,b){return a.t-b.t;} );</P>
<P>for(var ii=0; ii<this.inr.length; ii++)<BR>{<BR> while(/<[^<>]+\\:[^<>]+>/.test(this.inr.n))<BR> {<BR> this.inr.n = this.inr.n.replace(/<(\\d+)\\:([\\d\\.]+)>/,\"%=%\");<BR> var tse = parseInt(RegExp.$1,10) * 60 + parseFloat(RegExp.$2);<BR> this.inr.t.t.length] = tse-this.oTime;<BR> }<BR> lrcbc.innerHTML = \"<font>\"+ this.inr.n.replace(/&/g,\"&\").replace(/</g,\"<\").replace(/>/g,\">\").replace(/%=%/g,\"</font><font>\") +\"</font>\";<BR> var fall = lrcbc.getElementsByTagName(\"font\");<BR> for(var wi=0; wi<fall.length; wi++)<BR> this.inr.w.w.length] = fall.offsetWidth;<BR> this.inr.n = lrcbc.innerText;<BR>}</P>
<P>for(var ii=0; ii<this.inr.length-1; ii++)<BR> this.min = Math.floor((this.inr.t-this.inr.t)*10);<BR>this.min.sort(function(a,b){return a-b});<BR>min = this.min/2;</P>
<P>this.run = function(tme)<BR>{<BR> if(tme<this.dts || tme>=this.dte)<BR> {<BR> var ii;<BR> for(ii=this.inr.length-1; ii>=0 && this.inr.t>tme; ii--){}<BR> if(ii<0) return;<BR> this.ddh = this.inr.t;<BR> this.fjh = this.inr.w;<BR> this.dts = this.inr.t;<BR> this.dte = (ii<this.inr.length-1)?this.inr.t:aboutplayer.currentMedia.duration;</P>
<P> lrcwt1.innerText = this.retxt(ii-12);<BR> lrcwt2.innerText = this.retxt(ii-11);<BR> lrcwt3.innerText = this.retxt(ii-10);<BR> lrcwt4.innerText = this.retxt(ii-9);<BR> lrcwt5.innerText = this.retxt(ii-8);<BR> lrcwt6.innerText = this.retxt(ii-7);<BR> lrcwt7.innerText = this.retxt(ii-6);<BR>lrcwt8.innerText = this.retxt(ii-5);<BR>lrcwt9.innerText = this.retxt(ii-4);<BR>lrcwt10.innerText = this.retxt(ii-3);<BR>lrcwt11.innerText = this.retxt(ii-2);<BR>lrcfilter.innerText = this.retxt(ii-1);<BR>lrcwt12.innerText = this.retxt(ii-1);<BR> <BR> lrcwt13.innerText = this.retxt(ii+1);<BR> lrcwt14.innerText = this.retxt(ii+2);<BR> lrcwt15.innerText = this.retxt(ii+3);<BR> lrcwt16.innerText = this.retxt(ii+4);<BR> lrcwt17.innerText = this.retxt(ii+5);<BR> lrcwt18.innerText = this.retxt(ii+6);<BR>lrcwt19.innerText = this.retxt(ii+7);<BR>lrcwt20.innerText = this.retxt(ii+8);<BR> this.print(this.retxt(ii));<BR> if(this.dlt==ii-1)<BR> {<BR> clearTimeout(lrc0);<BR> if(lrcoll.style.pixelTop!=0) lrcoll.style.top = 0;<BR> golrcoll(0);<BR> clearTimeout(lrc1);<BR> lrcfilter.filters.alpha.opacity = 100;<BR> golrcolor(0);<BR> }<BR> else if(parseInt(lrcoll.style.top)!=-20)<BR> {<BR> clearTimeout(lrc0);<BR> lrcoll.style.top = -20;<BR> clearTimeout(lrc1);<BR> lrcfilter.filters.alpha.opacity = 0;<BR> }<BR> this.dlt = ii;<BR> }<BR> var bbw = 0;<BR> var ki;<BR> for(ki=0; ki<this.ddh.length && this.ddh<=tme; ki++)<BR> bbw += this.fjh;<BR> var kt = ki-1;<BR> var sc = ((ki<this.ddh.length)?this.ddh:this.dte) - this.ddh;<BR> var tc = tme - this.ddh;<BR> bbw -= this.fjh - tc / sc * this.fjh;<BR> if(bbw>lrcbox.offsetWidth)<BR> bbw = lrcbox.offsetWidth;<BR> lrcbc.style.width = Math.round(bbw);<BR>}</P>
<P>this.retxt = function(i)<BR>{<BR> return (i<0 || i>=this.inr.length)?\"\":this.inr.n;<BR>}</P>
<P>this.print = function(txt)<BR>{<BR> lrcbox.innerText = txt;<BR> lrcbc.innerText = txt;<BR>}</P>
<P>this.print(\"歌词加载中\");<BR>lrcwt1.innerText = \"\";<BR>lrcwt2.innerText = \"\";<BR>lrcwt3.innerText = \"\";<BR>lrcwt4.innerText = \"\";<BR>lrcwt5.innerText = \"\";<BR>lrcwt6.innerText = \"\";<BR>lrcwt7.innerText = \"\";</P>
<P>lrcwt8.innerText = \"\";<BR>lrcwt9.innerText = \"\";<BR>lrcwt10.innerText = \"\";<BR>lrcwt11.innerText = \"\";<BR>lrcfilter.innerText = \"\";<BR>lrcwt12.innerText = \"\";</P>
<P>lrcwt13.innerText = \"\";<BR>lrcwt14.innerText = \"\";<BR>lrcwt15.innerText = \"\";<BR>lrcwt16.innerText = \"\";<BR>lrcwt17.innerText = \"\";<BR>lrcwt18.innerText = \"\";<BR>lrcwt19.innerText = \"\";<BR>lrcwt20.innerText = \"\";<BR>}</P>
<P>function lrcrun()<BR>{<BR>with(aboutplayer)<BR>{<BR> lrcobj.run(controls.currentPosition);<BR>}<BR>if(arguments.length==0) setTimeout(\"lrcrun()\",10);<BR>}</P>
<P>function golrcoll(s)<BR>{<BR>lrcoll.style.top = -(s++)*2;<BR>if(s<=9)<BR> lrc0 = setTimeout(\"golrcoll(\"+s+\")\",min*10);<BR>}</P>
<P>function golrcolor(t)<BR>{<BR>lrcfilter.filters.alpha.opacity = 110-(t++)*10;<BR>if(t<=10)<BR> lrc1 = setTimeout(\"golrcolor(\"+t+\")\",min*10);<BR>}<BR>window.onerror = function()<BR>{return true;}<BR>lrcrun();<BR></script></div></P>
<P></CENTER><BR><EMBED style=\"LEFT: 845; WIDTH: 160px; POSITION: absolute; TOP: 138; HEIGHT: 160px\" align=right src=http://www.shuyunxin.com/cc/flash/92.swf type=application/octet-stream wmode=\"transparent\" quality=\"high\" ;;></EMBED></P>
<P><SCRIPT language=JavaScript><BR><!-- Logo Orbit II <A href=\"mailto:kurt.grigg@virgin.net\">kurt.grigg@virgin.net</A></P>
<P>yourLogo=\'生 日 快 乐 .*天 * 天 * 快 *乐 *。\';<BR>logoFont=\'Arial\';<BR>logoSize=8;<BR>logoColor=\'ffffff\';<BR>logoWidth=40;<BR>logoHeight=40;<BR>logoSpeed=0.02;</P>
<P><BR>//Nothing needs altering below!<BR>yourLogo=yourLogo.split(\'\');<BR>L=yourLogo.length; <BR>Result=\"<font face=\"+logoFont+\" style=\'font-size:\"+logoSize+\"pt\' color=\"+logoColor+\">\";<BR>TrigSplit=360/L;<BR>br=(document.layers)?1:0;<BR>if (br){<BR>for (i=0; i < L; i++)<BR>document.write(\'<layer name=\"ns\'+i+\'\" top=0 left=0 width=14 height=14\">\'+Result+yourLogo+\'</font></layer>\');<BR>}<BR>else{<BR>document.write(\'<div id=\"outer\" style=\"position:absolute;top:0px;left:0px\"><div style=\"position:relative\">\');<BR>for (i=0; i < L; i++)<BR>document.write(\'<div id=\"ie\" style=\"position:absolute;top:0px;left:0px;width:14px;height:14px\">\'+Result+yourLogo+\'</font></div>\');<BR>document.write(\'</div></div>\');<BR>}<BR>ypos=0;<BR>xpos=0;<BR>step=logoSpeed;<BR>currStep=0;<BR>Y=new Array();<BR>X=new Array();<BR>Yn=new Array();<BR>Xn=new Array();<BR>for (i=0; i < L; i++) <BR> {<BR> Yn=0;<BR> Xn=0;<BR> }<BR>(document.layers)?window.captureEvents(Event.MOUSEMOVE):0;<BR>function Mouse(evnt){<BR> ypos = (document.layers)?evnt.pageY:event.y;<BR> xpos = (document.layers)?evnt.pageX:event.x;<BR>}<BR>(document.layers)?window.onMouseMove=Mouse:document.onmousemove=Mouse;<BR>function animateLogo(){<BR>if (!br)outer.style.pixelTop=document.body.scrollTop; <BR>for (i=0; i < L; i++){<BR>var layer=(document.layers)?document.layers[\'ns\'+i]:ie.style;<BR>layer.top =Y+logoHeight*Math.sin(currStep+i*TrigSplit*Math.PI/180);<BR>layer.left=X+logoWidth*Math.cos(currStep+i*TrigSplit*Math.PI/180);<BR>}<BR>currStep-=step;<BR>}<BR>function Delay(){<BR>for (i=L; i >= 0; i--)<BR>{<BR>Y=Yn+=(ypos-Yn)*(0.1+i/L); <BR>X=Xn+=(xpos-Xn)*(0.1+i/L); <BR>}<BR>animateLogo();<BR>setTimeout(\'Delay()\',20);<BR>}<BR>window.onload=Delay;<BR>// --><BR></SCRIPT></P>
<P></body><BR></html></P> 好漂亮的贴,谢谢无忌提供代码! 谢谢楼主的提供,辛苦了 无忌好:这个同步是用js代码控制的和那个轮显相册是一样的,你这里设置了是20行的显示;你要少的话可以把多余的行去除就可以了! 原帖由 祝福 于 2009-11-9 21:05 发表 static/image/common/back.gif
无忌好:这个同步是用js代码控制的和那个轮显相册是一样的,你这里设置了是20行的显示;你要少的话可以把多余的行去除就可以了!
哈哈哈,祝福老师来了啊,谢了噢。我先试下,不懂再请教你 <P>头大了,这代码太难搞,昏倒</P>
<P> </P>
<P><FONT color=red size=5>晕啊,下面我回的那个不能编辑了 </FONT></P>
<P><FONT color=red size=5>好象还不可以哎</FONT></P>
[ 本帖最后由 无忌未来 于 2009-11-10 22:06 编辑 ] <P>无忌给你改好了再试试:</P>
<P> </P>
<P><html><BR><head><BR><title>女人如烟</title><BR><STYLE><BR>TD { FONT-SIZE: 8pt; LINE-HEIGHT: 14px; }<BR>BODY{<BR>FONT-SIZE: 9pt;<BR>LINE-HEIGHT: 16px;<BR>margin-left: 0px;<BR>margin-top: 0px;<BR>margin-right: 0px;<BR>margin-bottom: 0px;<BR>}<BR>#lrcollbox td, #lrcollbox font {font-family: 华文新魏; font-size: 14px;}<BR>#lrcoll td { color:#000000; cursor: default; }<BR>#lrcbox { color:#FFFF00 }<BR>#lrcfilter { filter: alpha(opacity=0) }<BR>#lrcbc { color:#FF0000 }<BR></STYLE><BR></head><BR><img src=\"<A href=\"http://bbs.yhlove.com/attachments/month_0910/20091018_2dffdee04c63131b5759YpejbZ58uocs.jpg\">http://bbs.yhlove.com/attachments/month_0910/20091018_2dffdee04c63131b5759YpejbZ58uocs.jpg</A>\"></P>
<P><div style=\"position: absolute; z-index: 1; left:30px; top:170px\" id=\"layer1\"><BR><body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\"><BR><span id=\"lrcdata\"><!--</P>
<P><BR><BR><BR> <BR>女人如烟<BR>词曲:穆真演唱:魏佳艺<BR>那天你用柔情将我点燃<BR>我开始变成你手中的烟<BR>你轻轻地将我含在唇间<BR>我的身姿弥漫了你的眼<BR>你漫不经心燃烧我的生命<BR>我也心甘情愿做你的烟<BR>也许你不经意的一个微笑<BR>我就义无反顾地来到你身边<BR>你说过 今生与烟为伴<BR>你说过 女人如烟你已习惯<BR>你说过 聚散离合随遇而安<BR>可我来世还要做你手中的烟<BR>想我了 就请你把我点燃<BR>任我幸福的泪缠绵你指尖<BR>化成灰也没有一丝遗憾<BR>让我今生来世为你陪伴<BR>间奏 词曲穆真 演唱魏佳艺<BR>那天你用柔情将我点燃<BR>我开始变成你手中的烟<BR>你轻轻地将我含在唇间<BR>我的身姿弥漫了你的眼<BR>你漫不经心燃烧我的生命<BR>我也心甘情愿做你的烟<BR>也许你不经意的一个微笑<BR>我就义无反顾地来到你身边<BR>空气中 寂寞在悄悄蔓延<BR>就算我化为烟雾也不忍离散<BR>好喜欢 你疼我说笨蛋噢乖<BR>我知道 我的感觉无法改变<BR>想我了 就请你把我点燃<BR>任我幸福的泪缠绵你指尖<BR>化成灰也没有一丝遗憾<BR>让我今生来世为你陪伴<BR>让我今生来世<BR>为你陪伴<BR>--></span><BR><center><BR><OBJECT id=aboutplayer height=0 width=0 <BR>classid=clsid:6bf52a52-394a-11d3-b153-00c04f79faa6><PARAM NAME=\"url\" VALUE=\"<A href=\"http://www.mjbox.com/r/hz/hzyh66/MP3/\">http://www.mjbox.com/r/hz/hzyh66/MP3/</A>女人如烟 魏佳艺.mp3\"><PARAM NAME=\"autostart\" VALUE=\"5\"><PARAM NAME=\"volume\" VALUE=\"100\"><PARAM NAME=\"enablecontextmenu\" VALUE=\"0\"><PARAM NAME=\"enableerrordialogs\" VALUE=\"0\"><param NAME=\"PlayCount\" VALUE=\"100\"></OBJECT><BR></CENTER><BR><div id=\"lrcollbox\" style=\"overflow:hidden; height:280; width:350;\" ><BR><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" id=\"lrcoll\" style=\"position:relative; top: -20px;\" oncontextmenu=\"return false;\"><BR><tr><td nowrap height=\"20\" align=\"center\" id=\"lrcwt1\"></td></tr><BR><tr><td nowrap height=\"20\" align=\"center\" id=\"lrcwt2\"></td></tr></P>
<P><tr><td nowrap height=\"20\" align=\"center\"><BR><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><BR><tr><td nowrap height=\"20\"><span id=\"lrcwt12\" style=\"height:20\"></span></td></tr><BR><tr style=\"position:relative; top: -20px; z-index:6\"><td nowrap height=\"20\"><div id=\"lrcfilter\" style=\"overflow:hidden; width:100%; color:#FF00FF00; height:20\"></div></td></tr><BR></table><BR></td></tr><BR><tr style=\"position:relative; top: -20px\"><td nowrap height=\"20\" align=\"center\"><BR><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><BR><tr><td nowrap height=\"20\"><span id=\"lrcbox\" style=\"height:20\">歌词加载中</span></td></tr><BR><tr style=\"position:relative; top: -20px; z-index:6;\"><td nowrap height=\"20\"><div id=\"lrcbc\" style=\"overflow:hidden; height:20; width:0;\"></div></td></tr><BR></table><BR></td></tr></P>
<P></table><BR></div><BR></center><BR><script language=\"JavaScript\"><BR>var lrc0;<BR>var lrc1;<BR>var min;<BR>lrcobj = new lrcClass(lrcdata.innerHTML.slice(4,-3));</P>
<P>function lrcClass(tt)<BR>{<BR>this.inr = [];<BR>this.min = [];</P>
<P>this.oTime = 0;</P>
<P>this.dts = -1;<BR>this.dte = -1;<BR>this.dlt = -1;<BR>this.ddh;<BR>this.fjh;</P>
<P>lrcbc.style.width = 0;</P>
<P>if(/\\/i.test(tt))<BR> this.oTime = RegExp.$1/1000;</P>
<P>tt = tt.replace(/\\[\\:\\][^$\\n]*(\\n|$)/g,\"$1\");<BR>tt = tt.replace(/\\[[^\\[\\]\\:]*\\]/g,\"\");<BR>tt = tt.replace(/\\[[^\\[\\]]*[^\\[\\]\\d]+[^\\[\\]]*\\:[^\\[\\]]*\\]/g,\"\");<BR>tt = tt.replace(/\\[[^\\[\\]]*\\:[^\\[\\]]*[^\\[\\]\\d\\.]+[^\\[\\]]*\\]/g,\"\");<BR>tt = tt.replace(/<[^<>]*[^<>\\d]+[^<>]*\\:[^<>]*>/g,\"\");<BR>tt = tt.replace(/<[^<>]*\\:[^<>]*[^<>\\d\\.]+[^<>]*>/g,\"\");</P>
<P>while(/\\[[^\\[\\]]+\\:[^\\[\\]]+\\]/.test(tt))<BR>{<BR> tt = tt.replace(/((\\[[^\\[\\]]+\\:[^\\[\\]]+\\])+[^\\[\\r\\n]*)[^\\[]*/,\"\\n\");<BR> var zzzt = RegExp.$1;<BR> /^(.+\\])([^\\]]*)$/.exec(zzzt);<BR> var ltxt = RegExp.$2;<BR> var eft = RegExp.$1.slice(1,-1).split(\"][\");<BR> for(var ii=0; ii<eft.length; ii++)<BR> {<BR> var sf = eft.split(\":\");<BR> var tse = parseInt(sf,10) * 60 + parseFloat(sf);<BR> var sso = { t:[] , w:[] , n:ltxt }<BR> sso.t = tse-this.oTime;<BR> this.inr = sso;<BR> }<BR>}<BR>this.inr = this.inr.sort( function(a,b){return a.t-b.t;} );</P>
<P>for(var ii=0; ii<this.inr.length; ii++)<BR>{<BR> while(/<[^<>]+\\:[^<>]+>/.test(this.inr.n))<BR> {<BR> this.inr.n = this.inr.n.replace(/<(\\d+)\\:([\\d\\.]+)>/,\"%=%\");<BR> var tse = parseInt(RegExp.$1,10) * 60 + parseFloat(RegExp.$2);<BR> this.inr.t.t.length] = tse-this.oTime;<BR> }<BR> lrcbc.innerHTML = \"<font>\"+ this.inr.n.replace(/&/g,\"&\").replace(/</g,\"<\").replace(/>/g,\">\").replace(/%=%/g,\"</font><font>\") +\"</font>\";<BR> var fall = lrcbc.getElementsByTagName(\"font\");<BR> for(var wi=0; wi<fall.length; wi++)<BR> this.inr.w.w.length] = fall.offsetWidth;<BR> this.inr.n = lrcbc.innerText;<BR>}</P>
<P>for(var ii=0; ii<this.inr.length-1; ii++)<BR> this.min = Math.floor((this.inr.t-this.inr.t)*10);<BR>this.min.sort(function(a,b){return a-b});<BR>min = this.min/2;</P>
<P>this.run = function(tme)<BR>{<BR> if(tme<this.dts || tme>=this.dte)<BR> {<BR> var ii;<BR> for(ii=this.inr.length-1; ii>=0 && this.inr.t>tme; ii--){}<BR> if(ii<0) return;<BR> this.ddh = this.inr.t;<BR> this.fjh = this.inr.w;<BR> this.dts = this.inr.t;<BR> this.dte = (ii<this.inr.length-1)?this.inr.t:aboutplayer.currentMedia.duration;</P>
<P> lrcwt1.innerText = this.retxt(ii-12);<BR> lrcwt2.innerText = this.retxt(ii-11);<BR> this.print(this.retxt(ii));<BR> if(this.dlt==ii-1)<BR> {<BR> clearTimeout(lrc0);<BR> if(lrcoll.style.pixelTop!=0) lrcoll.style.top = 0;<BR> golrcoll(0);<BR> clearTimeout(lrc1);<BR> lrcfilter.filters.alpha.opacity = 100;<BR> golrcolor(0);<BR> }<BR> else if(parseInt(lrcoll.style.top)!=-20)<BR> {<BR> clearTimeout(lrc0);<BR> lrcoll.style.top = -20;<BR> clearTimeout(lrc1);<BR> lrcfilter.filters.alpha.opacity = 0;<BR> }<BR> this.dlt = ii;<BR> }<BR> var bbw = 0;<BR> var ki;<BR> for(ki=0; ki<this.ddh.length && this.ddh<=tme; ki++)<BR> bbw += this.fjh;<BR> var kt = ki-1;<BR> var sc = ((ki<this.ddh.length)?this.ddh:this.dte) - this.ddh;<BR> var tc = tme - this.ddh;<BR> bbw -= this.fjh - tc / sc * this.fjh;<BR> if(bbw>lrcbox.offsetWidth)<BR> bbw = lrcbox.offsetWidth;<BR> lrcbc.style.width = Math.round(bbw);<BR>}</P>
<P>this.retxt = function(i)<BR>{<BR> return (i<0 || i>=this.inr.length)?\"\":this.inr.n;<BR>}</P>
<P>this.print = function(txt)<BR>{<BR> lrcbox.innerText = txt;<BR> lrcbc.innerText = txt;<BR>}</P>
<P>this.print(\"歌词加载中\");<BR>lrcwt1.innerText = \"\";<BR>lrcwt2.innerText = \"\";<BR>}</P>
<P>function lrcrun()<BR>{<BR>with(aboutplayer)<BR>{<BR> lrcobj.run(controls.currentPosition);<BR>}<BR>if(arguments.length==0) setTimeout(\"lrcrun()\",10);<BR>}</P>
<P>function golrcoll(s)<BR>{<BR>lrcoll.style.top = -(s++)*2;<BR>if(s<=9)<BR> lrc0 = setTimeout(\"golrcoll(\"+s+\")\",min*10);<BR>}</P>
<P>function golrcolor(t)<BR>{<BR>lrcfilter.filters.alpha.opacity = 110-(t++)*10;<BR>if(t<=10)<BR> lrc1 = setTimeout(\"golrcolor(\"+t+\")\",min*10);<BR>}<BR>window.onerror = function()<BR>{return true;}<BR>lrcrun();<BR></script></div></P>
<P> </P>
<P></body><BR></html><BR></P> 原帖由 祝福 于 2009-11-10 19:33 发表 static/image/common/back.gif
无忌给你改好了再试试:
<html><head><title>女人如烟</title><STYLE>TD { FONT-SIZE: 8pt; LINE-HEIGHT: 14px; }BODY{FONT-SIZE: 9pt;LINE-HEIGHT: 16px;margin-left: 0px;margin-top: 0px;margin-right:...
我试过了,好象也不可以哎,晕了 不过还是谢谢祝福老师了
页:
[1]