Css code
The code is as follows: |
Copy code |
. Couplet_ad /* Bottom fixed */{position: fixed; bottom: auto; top: 0; width: 120px; height: 230px; z-index: 99999; margin-top: 158px ;} * Html. couplet_ad /* Fixed at the bottom of IE6 */{_ position: absolute; _ Bottom: auto; _ Top: expression(eval(document.doc umentElement. scrollTop ));} . Couplet_ad a {display: block; cursor: pointer ;} # Ad_left {left: 0px ;} # Ad_right {right: 0px ;} |
Html code (put the following code directly in html)
Couplet advertisement left
The code is as follows: |
Copy code |
<Div class = "couplet_ad" id = "ad_left"> <A target = "_ blank" href = ""> </a> <A onClick = "ad_left ();"> Close </a> </Div>
|
Couplet advertisement right
The code is as follows: |
Copy code |
<Div class = "couplet_ad" id = "ad_right"> <A target = "_ blank" href = ""> </a> <A onClick = "ad_right ();"> Close </a> </Div> |
This js is the code for closing the button
The code is as follows: |
Copy 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> |