<html> <head> <title>HAPPYCGI</title> <SCRIPT LANGUAGE="JavaScript"> if (window != top) top.location.href = location.href; var Xpos = 0; var Ypos = 0; var Ygravity = 0.9; var scrollPos = 0; var oldScrollPos = 0;
function FloatMenu() { docWidth = document.body.clientWidth; // Update document width docHeight = document.body.clientHeight; // Update document height oldScrollPos = scrollPos; scrollPos = document.body.scrollTop; // Update scrollbar position
Xpos = (docWidth - floater.offsetWidth) - 10; Yboundary = ((scrollPos + docHeight) - floater.offsetHeight) - 10;
if (floater.offsetTop < Yboundary - 10) // Object is behind boundary Ypos += 3; if (floater.offsetTop > Yboundary + 10) // Object is past boundary Ypos -= 3; Ypos *= Ygravity; // Slow object down floater.style.pixelLeft = Xpos; floater.style.pixelTop += Ypos; // Make object bounce } window.setInterval("FloatMenu()", 40); </SCRIPT> </head> <body>
ºê¶ó¿ìÀú ¿À¸¥ÂÊÀ» º¸¼¼¿ä.. <div ID="floater" style="position: absolute;"> <a href=http://www.happycgi.com><img src="http://demo.happycgi.com/jini/banner01.gif" border="0"></a> </div>
|