Compare the classic Universal JS physical elastic floating AD code, floating speed moderate, moderate size, is the most classic most standard floating ad code, recommended for everyone to use. But floating ads on a page is best not to put too much, or it will affect the site browsing experience, not worth the candle.
<HTML> <Head> <Metahttp-equiv= "Content-type"content= "text/html; charset=gb2312" /> <title>Classic JS Physical elastic floating Image ad Code 丨 kiddy</title> </Head> <Body> <DIVID=IMG1style= "Z-INDEX:100; left:2px; width:59px; Position:absolute; top:43px; height:61px; visibility:visible; "><ahref= "http://www.langqiaohome.com/"Target= "_blank"><imgsrc= "Http://www.langqiaohome.com/uploads/allimg/150402/1-150402152444U1.jpg"width= "+"Height= "$"Border= "0"></a></DIV> <DivAlign= "Center"> <P> <SCRIPT> varXPos= -; varYPos= $; varStep= 1; varDelay= -; varHeight= 0; varHoffset= 0; varWoffset= 0; varYon= 0; varXon= 0; varPause= true; varinterval; Img1.style.top=YPos; functionChangepos () {width=Document.body.clientWidth; Height=Document.body.clientHeight; Hoffset=Img1.offsetheight; Woffset=Img1.offsetwidth; Img1.style.left=XPos+Document.body.scrollLeft; Img1.style.top=YPos+Document.body.scrollTop; if(Yon) {YPos=YPos+Step;} Else{YPos=YPos-Step;} if(YPos< 0) {Yon= 1; YPos= 0;} if(YPos>=(Height-Hoffset)) {Yon= 0; YPos=(Height-hoffset);} if(Xon) {XPos=XPos+Step;} Else{XPos=XPos-Step;} if(XPos< 0) {Xon= 1; XPos= 0;} if(XPos>=(Width-Woffset)) {Xon= 0; XPos=(Width-woffset); } } functionstart () {img1.visibility= "Visible"; Interval=SetInterval ('Changepos ()', delay); } functionPause_resume () {if(pause) {clearinterval (interval); Pause= false;} Else{interval=SetInterval ('Changepos ()', delay); Pause= true; }} start (); </SCRIPT> </P> <P> </P> <P> </P> <P> </P> <P> </P> <P> </P> <P>JS Physical elastic Floating AD</P> <P></P> <P> </P> </Div> </Body> </HTML>
Classic JS Physical elastic floating Image AD Code