¸µÅ©µÈ °÷¿¡ ´ëÇÑ ¼³¸íÀ» ÆûÅÂ±× ¾È¿¡¼
º¸¿©ÁÖ´Â ½ºÅ©¸³Æ®ÀÔ´Ï´Ù.
Script Example |
<html>
<head><title>Demo33</title>
<script language="JavaScript">
<!--
rcrd = new Array(3);
rcrd[1] = "¸Þ´º1À» ¼±ÅÃÇϼ̽À´Ï´Ù.";
rcrd[2] = "¸Þ´º2¸¦ ¼±ÅÃÇϼ̽À´Ï´Ù.";
rcrd[3] = "¸Þ´º3¸¦ ¼±ÅÃÇϼ̽À´Ï´Ù.";
rcrd[4] = "¸¶¿ì½º¸¦ ¿ÀÇÁ ½ÃÄ×À»¶§ÀÇ ¸ä¼¼ÁöÀÔ´Ï´Ù.";
function displayMsg(i)
{
document.forms[0].display.value=rcrd[i];
}
//-->
</script>
</head>
<body>
<center>
<a href="¸Þ´º1.html" onmouseover="displayMsg(1)" onmouseout="displayMsg(4)">¸Þ´º1</a>
<a href="¸Þ´º2.html" onmouseover="displayMsg(2)" onmouseout="displayMsg(4)">¸Þ´º2</a>
<a href="¸Þ´º3.html" onmouseover="displayMsg(3)" onmouseout="displayMsg(4)">¸Þ´º3</a>
<P>
<form method="get">
<input type="text" name="display" size="50">
</form>
</center>
</body>
</html> |
|
|
¼³¸í |
ÆÄ¶õ»öÀ¸·Î µÈ ºÎºÐ¿¡¼ °¢°¢ÀÇ ¸µÅ©¿¡ ´ëÇÑ ¼³¸í°ú ¸¶¿ì½º ¿ÀÇÁµÇ¾úÀ»¶§ÀÇ ¼³¸íÀ» ÀûÀ¸½Ã¸é µË´Ï´Ù.
body ű׾ȿ¡ ¸Þ´º°¡ ¸µÅ©µÉ¶§ ¸¶¿ì½º ¿Â/¿ÀÇÁ À̺¥Æ® ó¸® ÇÔ¼ö°¡ µð½ºÇ÷¹ÀÌ ¸ä¼¼Áö¶ó´Â ÇÔ¼ö¸¦
´Ù·ç°í ÀÖ½À´Ï´Ù. ¸Þ´º¿¡ ´ëÇÑ ¼³¸íÀ» Ãß°¡ÇÏ·Á¸é ¸Ç À§¿¡ rcrd = new
Array(3); ¿¡¼ ¿øÇÏ´Â ¼³¸í °¹¼ö¸¦ ÁöÁ¤ÇѼö Ãß°¡ÇÏ½Ã¸é µË´Ï´Ù. |
|
|
|