|
用这个代码 就可以了
下面是需要保存的txt的内容。。效果不怎么好。。老是重叠了。。就什么都看不见了 呵呵
<SCRIPT LANGUAGE="java script1.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"&&windo
w.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>
|