document.write('
'); document.write('
'); document.write('
'); document.write('
'); var xPos2 = 1000; var yPos2 = 15;//document.body.clientHeight; var step2 = 1; var delay2 = 30; var height2 = 0; var Hoffset2 = 0; var Woffset2 = 0; var yon2 = 0; var xon2 = 0; var pause2 = true; var interval2; var img2 = document.getElementById("img2"); var IsIE2 = navigator.userAgent.toLowerCase().indexOf("msie")>=0; //var IsFF = navigator.userAgent.toLowerCase().indexOf("firefox")>=0; img2.style.top = yPos2; function changePos2() { Hoffset2 = img2.offsetHeight; Woffset2 = img2.offsetWidth; if(IsIE2){ width2 = document.documentElement.clientWidth; height2 = document.documentElement.clientHeight; img2.style.left = xPos2 + document.documentElement.scrollLeft; img2.style.top = yPos2 + document.documentElement.scrollTop; }else{ width2 = document.body.clientWidth; height2 = document.body.clientHeight; img2.style.left = (xPos2 + document.body.scrollLeft)+"px"; img2.style.top = (yPos2 + document.body.scrollTop)+"px"; } if (yon2) { yPos2 = yPos2 + step2; } else { yPos2 = yPos2 - step2; } if (yPos2 < 0) { yon2 = 1; yPos2 = 0; } if (yPos2 >= (height2 - Hoffset2)) { yon2 = 0; yPos2 = (height2 - Hoffset2); } if (xon2) { xPos2 = xPos2 + step2; } else { xPos2 = xPos2 - step2; } if (xPos2 < 0) { xon2 = 1; xPos2 = 0; } if (xPos2 >= (width2 - Woffset2)) { xon2 = 0; xPos2 = (width2 - Woffset2); } } function start2() { img2.visibility = "visible"; interval2 = setInterval('changePos2()', delay2); } function closeDiv2(obj){ clearInterval(interval2); obj.parentNode.parentNode.removeChild(obj.parentNode); } start2();