À¥µðÀÚÀÎ °øºÎ¹æ

      HTML,PHP °øºÎ¹æ

      ÆÁ & Å×Å© °Ô½ÃÆÇ


     





  ¹øÈ£ : 20 À̹ÌÁö¸¦ ¹®¼­¾È¿¡¼­ ÅëÅë Æ¢°Ô ÇÏ±â      
  ÀÛ¼ºÀÚ : À̰ÇÈ£ ÀÛ¼ºÀÏ : 2005-11-19 19:15:23  


1. <head>¿Í </head> »çÀÌ¿¡ ¾Æ·¡ ¼Ò½º¸¦ ³Ö¾îÁÖ¼¼¿ä.

<script language="JavaScript">

<!--

var x = 0;

var y = 0;

var offsetx = 4;

var offsety = 4;

function bounceIt() {

var el = document.all.bounce;

x += offsetx;

y += offsety;

if ((x + el.offsetWidth >= document.body.clientWidth +

document.body.scrollLeft) ||

(x <= document.body.scrollLeft)) {

offsetx = -offsetx;

if (x <= document.body.scrollLeft)

x = document.body.scrollLeft;

else

x = document.body.clientWidth - el.offsetWidth +

document.body.scrollLeft;}

if ((y + el.offsetWidth >= document.body.clientHeight +

document.body.scrollTop) ||

(y <= document.body.scrollTop)) {

offsety = -offsety;

if (y <= document.body.scrollTop)

y = document.body.scrollTop;

else

y = document.body.clientHeight - el.offsetHeight +

document.body.scrollTop;}

el.style.posLeft = x;

el.style.posTop = y;}

//-->

</script>

2. <body ¿·¿¡ ¾Æ·¡¼Ò½º¸¦ ³Ö¾îÁÖ¼¼¿ä.

onload="window.tm = setInterval('bounceIt()', 10);" onunload="clearInterval(window.tm);"

3. <body>¾È ¶ç¿ï À̹ÌÁö ¾È¿¡ ¾Æ·¡ÀÇ ¼Ò½º¸¦ ³Ö¾îÁÖ¼¼¿ä.

<img src="À̹ÌÁö°æ·Î" ID="bounce" style="position:absolute; top:0; left:0; z-index:1">



ÀÛ¼ºÀÚ   ºñ¹Ð¹øÈ£       »èÁ¦½Ã ÇÊ¿äÇÕ´Ï´Ù.
¸Þ¼¼Áö
 
         
¹øÈ£ Á¦ ¸ñ±Û¾´ÀÌ÷ºÎ ÀÛ¼ºÀÏ Á¶È¸
21 ºÒ²É³îÀÌ (¾îµÎ¿î ¹è°æ¿¡ Àß ¾î¿ï¸±µí...) À̰ÇÈ£   2005-11-19 41489
20 À̹ÌÁö¸¦ ¹®¼­¾È¿¡¼­ ÅëÅë Æ¢°Ô Çϱâ À̰ÇÈ£   2005-11-19 39347
19 ³ë·¡¹æ °¡»ç °°Àº ŸÀÌÇÎÅØ½ºÆ® À̰ÇÈ£   2005-11-19 39343