Http://www.xuecss3.com/qttx-25-2991-1.html
<! DOCTYPE html Public"-//w3c//dtd XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >List-style-type:none;}. Fixediv{position:fixed;top:140px;z-index:9999;width:140px;height:216px;background:#ddd;}. Fixediv img{float:Left ;}. Fixediv A.close{display:block;height:30px;line-height:30px;background:#fff;font-size:14px;padding:0 10px;color: #5e5e5e; text-decoration:none;text-align:center;}. Leftadv{left:0px;}. Rightadv{right:0px;}</style><divclass= "Fixediv leftadv" > <a href= "http://www.xuecss3.com/" ></a> <aclass= "Close" href= "javascript:void (0);" > Close AD </a></div><divclass= "Fixediv rightadv" > <a href= "http://www.xuecss3.com/" ></a> <aclass= "Close" href= "javascript:void (0);" > Close ads </a></div><div style= "height:1200px;" ></div><script type= "Text/javascript" src= "Js/jquery-1.4.2.min.js" ></script><script type= "Text/javascript" >$ (document). Ready (function(){ $(". Fixediv a"). Click (function(){ $(". Fixediv"). FadeOut (400); }); $(". Fixediv").Floatadv (); }); JQuery. Fn.floatadv =function(loaded) {varobj =This ; Body_height= parseint ($ (window).height ()); Block_height= parseint (obj.height ()); Top_position= parseint ((BODY_HEIGHT/2)-(BLOCK_HEIGHT/2) + $ (window).scrolltop ()); if(Body_height<block_height) {top_position = 0 + $ (window).scrolltop ();}; if(!loaded) {obj. css ({' position ': ' absolute '}); Obj. css ({' Top ':top_position}); $ (window). bind (' Resize ',function() {obj. FLOATADV (!loaded); }); $ (window). bind (' scroll ',function() {obj. FLOATADV (!loaded); }); } Else{obj.Stop (); Obj. css ({' position ': ' absolute '}); Obj. Animate ({' Top ': top_position}, +, ' linear '); }}</script></body>Follow window with close button to move the couplet ad code