CSS Code
Copy Code code as follows:
. couplet_ad
/* Bottom fixed */{position:fixed;bottom:auto; top:0; width:120px; height:230px; z-index:99999; margin-top:158px;}
* HTML. Couplet_ad
/* IE6 bottom fixed */{_position:absolute;
_bottom:auto;
_top:expression (eval (document.documentElement.scrollTop));
. couplet_ad a{display:block; cursor:pointer;}
#ad_left {left:0px;}
#ad_right {right:0px;}
HTML code (The following code is placed directly in HTML)
Couplet to the left of the advertisement
Copy Code code as follows:
<div class= "Couplet_ad" id= "Ad_left" >
<a target= "_blank" href= "></a>
<a onclick= "Ad_left ();" > Close </a>
</div>
Couplet to the right of advertising
Copy Code code as follows:
<div class= "Couplet_ad" id= "Ad_right" >
<a target= "_blank" href= "></a>
<a onclick= "Ad_right ();" > Close </a>
</div>
This JS is off the button code
Copy Code code as follows:
<script language= "JavaScript" >
function Ad_left () {
document.getElementById (' Ad_left '). style.display= "None";
}
function Ad_right () {
document.getElementById (' Ad_right '). style.display= "None";
}
</script>