对联广告代码

<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;
 }
}

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注