How to write the couplet code in CSS

Source: Internet
Author: User
The couplets advertised in this article are fully implemented using CSS and are compatible with all browsers, including various Ie,ff,gg browsers, and the code is simple and easy to use.

The code is as follows:

<!--CSS code-->.couplet_ad/* the 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--<!--couplet to the left--<div class= "Couplet_ad" id= "Ad_left" ><a targe t= "_blank" href= "" ></a><a onclick= "Ad_left ();" > Close </a></div><!--couplet ads right--><div class= "Couplet_ad" id= "ad_right" ><a target= "_blank" Href= "" ></a><a onclick= "ad_right ();" > Close </a></div><!--JS Close button code--><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 recommendations:

Div+css js couplets ads do not follow the screen scrolling solution _html/css_web-itnose

How to modify Discuz X2 's global couplet ads

JavaScript antithetical ads compatible with IE FF

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.