<!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd "><HTMLxmlns= "http://www.w3.org/1999/xhtml"><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=gb2312" /><title>Untitled Document</title></Head><Body> <DivID=adstyle= "width:1024; Position:absolute; height:99px; z-index:500000 "OnMouseOver= "Stop ()"onmouseout= "Start ()" > <Tablewidth=90> <tbody> <TR> <TD>Fill in the content here</TD> </TR> <TR> <TD> <!--<div align=right><a onclick=stopad () href= "javascript:void (null);" style= "font-size:12px;" > Close </a></div> - <DivAlign=right><aonclick= "Stopad ()">Shut down </a></Div> </TD> </TR> </tbody> </Table> </Div> <Script>varx= -, y= - varXin= true, Yin= true varStep= 1 varDelay= Ten varobj=document.getElementById ("AD") functionFloatad () {varL=T=0 varR=Document.body.clientWidth-Obj.offsetwidth; varB= +Obj.style.left=x+Document.documentElement.scrollLeft+"px"; //alert (document.body.scrollleft+ "");Obj.style.top=y+Document.documentElement.scrollTop+"px"; X=x+Step*(Xin?1:-1) if(x<L) {xin= true; x=L}if(x>R) {Xin= false; x=R} y=y+Step*(Yin?1:-1) if(y<T) {Yin= true; y=T}if(y>B) {Yin= false; y=B}}functionStopad () {Obj.style.display= 'None'; Clearinterval (ITL); } varITL=SetInterval ("Floatad ()", delay) Obj.onmouseover=function() {clearinterval (ITL)} obj.onmouseout=function() {ITL=SetInterval ("Floatad ()", Delay)} </Script> </Body></HTML>
Normal Heart is good! What's the big deal
Window code modified a section of JS