qq下载
首页 | QQ下载 | qq表情 | qq皮肤 | qq游戏 | qq头像 | QQ技巧 | 搞笑图片 | 幽默笑话 | QQ资料 | QQ音速 | QQ幻想 | QQ堂 | QQ空间

您现在的位置: QQ下载 > QQ秘籍 > qq空间代码 > QQ空间漂浮的MTV代码


QQ空间漂浮的MTV代码
文章来源:互联网 点击数: 更新时间:2006-3-21 18:27:06
把下面的内容保存为TXT 然后上传 得到文件后   

<img src="javascript:document.getElementById('hidentarget').src='上传的文件的地址';"></img>   


用这个代码  就可以了  

下面是需要保存的txt的内容。。效果不怎么好。。老是重叠了。。就什么都看不见了 呵呵  
<SCRIPT LANGUAGE="JavaScript1.2">    
<!--    
var mtvpath="rtsp://202.108.119.176/tvzb/yinpin/gq/MTV/2003110301.rm"   
//MTV的路径    
var mtvwidth=200   
var mtvheight=150   
//MTV的大小   
var speed=2;  
//飞行速度  
var protocal="http://"  
var domain="q-zone.qq.com"  
var mtvclick=protocal+"22871560."+domain    
var hideafter=0    
var isie=0;    
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) {    
isie=1;    
}    
else {    
isie=0;    
}    
function pop() {    
if(isie) {    
x=x+dx;y=y+dy;    
oPopup.show(x, y, mtvwidth, mtvheight);    
if(x+mtvwidth+5>screen.width) dx=-dx;    
if(y+mtvheight+5>screen.height) dy=-dy;    
if(x<0) dx=-dx;    
if(y<0) dy=-dy;    
startani=setTimeout("pop();",50);    
}    
}    

function dismisspopup(){    
clearTimeout(startani)    
oPopup.hide()    
}    

function dowhat(){    
if (mtvclick=="dismiss")    
dismisspopup()    
else    
window.open(mtvclick);   
}    


if(isie) {    
var x=0,y=0,dx=speed,dy=speed;    
var oPopup = window.createPopup();    
var oPopupBody = oPopup.document.body;    
oPopupBody.style.cursor="hand"    
oPopupBody.innerHTML = "<embed SRC='"+mtvpath+"' width='"+mtvwidth+"' height='"+mtvheight+"' autostart=true loop=ture></embed>"

[1] [2] 下一页

 
  • 上一篇文章:

  • 下一篇文章:
  • 查看QQ空间漂浮的MTV代码全部内容