+++ ȨÁ¦ÀÛ ¹ÙÀ̺í +++
ȨÁ¦ÀÛ ¹ÙÀ̺í ÀÌ »çÀÌÆ®´Â ÀÌ¿µÂù´ÔÀÇ »çÀÌÆ®¸¦ º¹¿øÇÑ °ÍÀÔ´Ï´Ù.
Untitled Document
Html
Dhtml
Css
Php
Asp
Cgi
Java Script
Java Applet
Multimedia
Win Tip
[¸¶¿ì½º] Æ÷ÀÎÅ͸¦ µû¶ó´Ù´Ï´Â ±ÛÀÚ(1)
¸¶¿ì½º¿·¿¡ ¿øÇÏ´Â ±ÛÀÚ¸¦ ³Ö½À´Ï´Ù. ¸¶¿ì½º°¡ ¿òÁ÷À϶§ ±ÛÀÚµµ °°ÀÌ µû¶ó ¿òÁ÷À̵µ·Ï ÇÏ´Â ½ºÅ©¸³Æ® ÀÔ´Ï´Ù.



script example

<html>
<head>
<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>
</head>
<body onload="Loaded()" onmousemove="Follow()">

<div id="Menu" style="position:absolute; left:200px; top:200px; width:200px; height:200px; z-index:1;"
name="Menu">&nbsp;&nbsp;&nbsp;&nbsp;<font size="2" color=red>¾È³çÇϼ¼¿ä?</font></div>

</body>
</html>


¼³¸í
body ÅÂ±× ¾È¿¡ Div ÅÂ±× ¾ÈÀÇ ³»¿ëÀÌ ¸¶¿ì½º¸¦ µû¶ó´Ù´Ï°Ô µË´Ï´Ù. ¿©±â¼­´Â ±×³É ±ÛÀÚ¸¸ ½è´Âµ¥ À̹ÌÁö¸¦ ÁöÁ¤Çϴ ű׸¦ »ç¿ëÇÏ½Ã¸é ¿ª½Ã °°Àº È¿°ú°¡ ³ªÅ¸³³´Ï´Ù.
Update : 2000/12/19 [µ¹¾Æ°¡±â]