<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<TITLE>JS Elastic Floating AD Code </title>
<body>
<div id=img1 style= "Z-INDEX:100; left:2px; width:59px; Position:absolute; top:43px; height:61px;
visibility:visible; "onmouseover=" Pause_resume () "onmouseout=" Pause_resume () "><a href="/"target=" _blank " ></a></DIV>
<script language= "JavaScript" >
var xPos = 300;
var yPos = 200;
var step = 1;
var delay = 5;
var height = 0;
var hoffset = 0;
var woffset = 0;
var yon = 0;
var xon = 0;
var pause = true;
var interval;
Img1.style.top = YPos;
function Changepos ()
{
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); }
}
function Start ()
{
img1.visibility = "visible";
Interval = setinterval (' Changepos () ', delay);
}
function Pause_resume ()
{
if (pause)
{
Clearinterval (interval);
Pause = false;}
Else
{
Interval = setinterval (' Changepos () ', delay);
Pause = true;
}
}
Start ();
</SCRIPT>
</body>
JS Elastic Floating AD Code