QQ空间漂浮MTV的做法
<P>和原来的漂浮图片的原理是一样的,看说明将里面的设置改一下 <BR><BR>然后把下面的内容保存为TXT 然后上传 得到文件后 <BR><BR><img src="javascript:document.getElementById('hidentarget').src='上传的文件的地址';"></img> <BR><BR><BR>用这个代码 就可以了 <BR><BR>下面是需要保存的txt的内容。。效果不怎么好。。老是重叠了。。就什么都看不见了 呵呵 <BR><SCRIPT LANGUAGE="JavaScript1.2"> <BR><!-- <BR>var mtvpath="rtsp://202.108.119.176/tvzb/yinpin/gq/MTV/2003110301.rm" <BR>//MTV的路径 <BR>var mtvwidth=200 <BR>var mtvheight=150 <BR>//MTV的大小 <BR>var speed=2; <BR>//飞行速度 <BR>var protocal="http://" <BR>var domain="q-zone.qq.com" <BR>var mtvclick=protocal "22871560." domain <BR>var hideafter=0 <BR>var isie=0; <BR>if(window.navigator.appName=="Microsoft Internet Explorer"&&window.navigator.appVersion.substring(window.navigator.appVersion.indexOf("MSIE") 5,window.navigator.appVersion.indexOf("MSIE") 8)>=5.5) { <BR>isie=1; <BR>} <BR>else { <BR>isie=0; <BR>} <BR>function pop() { <BR>if(isie) { <BR>x=x dx;y=y dy; <BR>oPopup.show(x, y, mtvwidth, mtvheight); <BR>if(x mtvwidth 5>screen.width) dx=-dx; <BR>if(y mtvheight 5>screen.height) dy=-dy; <BR>if(x<0) dx=-dx; <BR>if(y<0) dy=-dy; <BR>startani=setTimeout("pop();",50); <BR>} <BR>} <BR><BR>function dismisspopup(){ <BR>clearTimeout(startani) <BR>oPopup.hide() <BR>} <BR><BR>function dowhat(){ <BR>if (mtvclick=="dismiss") <BR>dismisspopup() <BR>else <BR>window.open(mtvclick); <BR>} <BR><BR><BR>if(isie) { <BR>var x=0,y=0,dx=speed,dy=speed; <BR>var oPopup = window.createPopup(); <BR>var oPopupBody = oPopup.document.body; <BR>oPopupBody.style.cursor="hand" <BR>oPopupBody.innerHTML = "<embed SRC='" mtvpath "' width='" mtvwidth "' height='" mtvheight "' autostart=true loop=ture></embed>"; <BR>oPopup.document.body.onmouseover=new Function("clearTimeout(startani)") <BR>oPopup.document.body.onmouseout=pop <BR>oPopup.document.body.onclick=dowhat <BR>pop(); <BR><BR>if (hideafter>0) <BR>setTimeout("dismisspopup()",hideafter*1000) <BR>} <BR><BR><BR>// --> <BR></SCRIPT> </P>