+++ ȨÁ¦ÀÛ ¹ÙÀ̺í +++
ȨÁ¦ÀÛ ¹ÙÀ̺í ÀÌ »çÀÌÆ®´Â ÀÌ¿µÂù´ÔÀÇ »çÀÌÆ®¸¦ º¹¿øÇÑ °ÍÀÔ´Ï´Ù.
Untitled Document
Html
Dhtml
Css
Php
Asp
Cgi
Java Script
Java Applet
Multimedia
Win Tip
[Æûű×] ±ÛÀÚ¹ÝÀü
ÀÔ·ÂÆû¾È¿¡ ¿øÇÏ´Â ±ÛÀÚ¸¦ °è¼Ó ¹ÝÀü ½ÃÅ°¸ç µð½ºÇ÷¹ÀÌÇÕ´Ï´Ù.



Script Example

<html>
<head><title>Æû¾È ±ÛÀÚ ¹ÝÀü</title>

<script language="JavaScript">
<!---
   var CurrentMsg = 'hello ';
    function update(msg) {
       var pad_str="";
       n = msg.length;
       if(n<72) {
          pad = (73-n)/2;
            for(var i=0; i<pad; i++) {
               pad_str+=" ";
            }
       }
       CurrentMsg = pad_str + msg;
       document.messages.field.value = CurrentMsg;
       clearTimeout(timer);
       timer = setTimeout("idleMsg()",2000);
    }

    function MakeArray(n) {
       this.length=n;
       for(var i = 1; i<= n; i++) {
         this[i] = "";
       }
       return(this);
    }
    var index = 1;
    var notice_num = 4;
    var notices = new MakeArray(notice_num);
    notices[1] = "¾È³çÇϼ¼¿ä.";                
    notices[2] = "ȨÆäÀÌÁö ¹ÙÀ̺íÀÔ´Ï´Ù.";                
    notices[3] = "¸¹Àº µµ¿òÀÌ µÇ±â¸¦ ¹Ù¶ø´Ï´Ù.";
    notices[4] = "°¨»çÇÕ´Ï´Ù";

    var timer = setTimeout('idleMsg()',0);

    function nochange() {
       document.messages.field.value = CurrentMsg;
    }

    function idleMsg() {
       update(notices[index++]);
       if(index>notice_num) {
         index=1;
       }
    }
// -->
</script>
</head>

<body>

<center>
<form name="messages" method="get" onsubmit="return false">
<input type="text" name="field" size="55" onchange="nochange()"
onfocus="self.status='this is a javascript info. field'; return true">
</form>
</center>

</body>
</html>


¼³¸í
ÆĶõ»ö ºÎºÐ¿¡¼­ ¿øÇÏ´Â ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä. ¸ä¼¼Áö¸¦ ´õ ´Ã¸®°í ½ÍÀ¸½Ã¸é »¡°£»öºÎºÐ¿¡ ÃÑ ¸ä¼¼Áö¸¦ ÁöÁ¤ÇÏ°í ÆĶõ»ö ºÎºÐ¿¡¼­ Ãß°¡µÇ´Â ³»¿ëÀ» ´õ ÀûÀ¸½Ã¸é µË´Ï´Ù.
Update : 2001/05/31 [µ¹¾Æ°¡±â]