Pure DIV/CSS couplet floating Advertisement Code (No JS)
The source code network is floating on both sides. Tested to be compatible with IE6, IE7, and Firefox browsers.
CSS code: copy Code the code is as follows :. r1 {width: 80px; Height: 80px; Background: red; float: Right;
position: fixed! Important; top/**/: 200px;
position: absolute; Z-index: 300; top: expression (offsetparent. scrolltop + 200); Right: 20px ;}< br>. r2 {width: 80px; Height: 80px; Background: red; float: Right;
position: fixed! Important; top/**/: 300px;
position: absolute; Z-index: 400; top: expression (offsetparent. scrolltop + 300); Right: 20px ;}< br>. l1 {width: 80px; Height: 80px; Background: red; float: Right;
position: fixed! Important; top/**/: 200px;
position: absolute; Z-index: 300; top: expression (offsetparent. scrolltop + 200); left: 20px ;}< br>. l2 {width: 80px; Height: 80px; Background: red; float: Right;
position: fixed! Important; top/**/: 300px;
position: absolute; Z-index: 400; top: expression (offsetparent. scrolltop + 300); left: 20px ;}
Page code: copy Code the code is as follows: