请问如何在网站首页两端悬挂两个FLASH动画?
<script language=JavaScript>function leftmove() { if(navigator.appName == Netscape){ document.myleft.top=10; document.myleft.left=15; document.myRight.top=10; document.myRight.left=pageXOffset+window.innerWidth-120; setTimeout(leftmove();,800) } else { myleft.style.top=10; myleft.style.left=15; myRight.style.top=10; myRight.style.left=document.body.scrollLeft+document.body.offsetWidth-120; setTimeout(leftmove();,800) } } function closeI() { document.all.duiLian1.style.visibility=hidden; document.all.duiLian2.style.visibility=hidden;} if (navigator.appName == Netscape){ if(document.body.offsetWidth>800){
document.write("<layer id=duiLian1 top=10 left=5 width=102 height=300><iframe src=adv.htm width=101 height=510 scrolling=no frameborder=0 marginwidth=0 marginheight=0></iframe><img src=images/closeL.gif width=49 height=11 align=right onclick=closeI(); style=cursor: hand;></layer>");}
document.write("<layer id=myleft top=400 left=15 width=80 height=80><iframe src=adv1.htm width=80 height=80 scrolling=no frameborder=0 style=border: 1px solid #999999; marginwidth=0 marginheight=0></iframe></layer>");
document.write("<layer id=myRight top=400 right=15 width=80 height=80><iframe src=adv1.htm width=80 height=80 scrolling=no frameborder=0 style=border: 1px solid #999999; marginwidth=0 marginheight=0></iframe></layer>");
leftmove(); }else{ if(document.body.offsetWidth>800){
document.write("<div id=duiLian1 style=position: absolute;width:102;top:10;left:5;visibility:visible;z-index:1><iframe src=adv.htm width=101 height=360 scrolling=no frameborder=0 marginwidth=0 marginheight=0></iframe><img src=images/closeL.gif width=49 height=11 align=right onclick=closeI(); style=cursor: hand;></div>");
document.write("<div id=duiLian2 style=position: absolute;width:102;top:10;right:5;visibility:visible;z-index:1><iframe src=advx.htm width=101 height=360 scrolling=no frameborder=0 marginwidth=0 marginheight=0></iframe><img src=images/closeR.gif width=49 height=11 onclick=closeI(); style=cursor: hand;></div>");}
document.write("<div id=myleft style=position: absolute;width:80;top:400;left:15;visibility: visible;z-index: 1><iframe src=adv1x.htm width=100 height=100 scrolling=no frameborder=0 style=border: 1px solid #999999;></iframe></div>");
document.write("<div id=myRight style=position: absolute;width:80;top:400;left:15;visibility: visible;z-index: 1><iframe src=adv1x.htm width=100 height=100 scrolling=no frameborder=0 style=border: 1px solid #999999;></iframe></div>");leftmove(); }</script>
<div id=couplet_left style=position: absolute;visibility:hidden;z-index:1>
<EMBED src=左边flash quality=high PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" TYPE="application/x-shockwave-flash" WIDTH="115" HEIGHT="260" id=zddl wmode=opaque></EMBED>
</div>
<div id=couplet_right style=position: absolute;visibility:hidden;z-index:1>
<EMBED src="右边flash" quality=high PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" TYPE="application/x-shockwave-flash" WIDTH="115" HEIGHT="260" id=zddl wmode=opaque></EMBED>
</div>
<SCRIPT FOR=zddl EVENT=FSCommand() LANGUAGE=JavaScript>
couplet_left.style.visibility=hidden;
couplet_right.style.visibility=hidden;
</script>
<script src=/zdcouple.js></script>
<script LANGUAGE=JavaScript>
try{
aryADSeq.push("doCouplet()");
}catch(e){
doCouplet();
}
</script>
这是前面部分的。还有一个JS文件zdcouple.js
代码:
function doCouplet(){
if(document.body.offsetWidth>800){
couplet_left.style.visibility=visible;
couplet_right.style.visibility=visible;
couplet_left.style.top=80;
couplet_left.style.left=2;
couplet_right.style.top=80;
couplet_right.style.right=2;
}
}