CSS implementation of the couplet advertising code _css/html

Source: Internet
Author: User

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>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.