마우스 따라다니는 나비


<script language="JavaScript"> function Move(e) { document.layers['Menu'].left=e.pageX document.layers['Menu'].top=e.pageY } function Move2(){ document.all["Menu"].style.left=event.clientX document.all["Menu"].style.top=event.clientY } function Follow() { if (document.all) Move2() } function Loaded() { if (document.layers) { window.captureEvents(Event.MOUSEMOVE) window.onmousemove=Move } } </script> <body onMouseMove="Follow()" onLoad="Loaded()"> <DIV ID="Menu" NAME="Menu"STYLE="position:absolute;top:0;left:0"> <img src="http://aaha.pe.kr/Photo/fly2.gif" border=0></DIV> </body>