查看完整版本: 漂浮MTV代码!!

黑不白 2006-6-29 19:56

漂浮MTV代码!!

把下面的内容保存为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>";   
oPopup.document.body.onmouseover=new Function("clearTimeout(startani)")   
oPopup.document.body.onmouseout=pop   
oPopup.document.body.onclick=dowhat   
pop();   

if (hideafter>0)   
setTimeout("dismisspopup()",hideafter*1000)   
}   


// -->   
</SCRIPT>

156068136 2006-7-28 14:09

对于不懂的人来说,难了点!解释一下呀,版主!!!
页: [1]
查看完整版本: 漂浮MTV代码!!
查看完整版本: 漂浮MTV代码!!