Àüü¼Ò°³ Ã¥°¥ÇÇ ¹æ½Ä ÅǸŴº Çü½ÄÀÇ ¸Þ´º ÀÔ´Ï´Ù. ½ºÅ©¸³Æ®°¡ ÀߵǾîÀÖ±º¿ä ¸Þ´ºÃß°¡¿Í ¼öÁ¤ÀÌ ¾ÆÁÖ °£ÆíÇÕ´Ï´Ù.
ÆÄÀÏ ¼³¸í
highlight-path.js : ÀÚ¹Ù ½ºÅ©¸³Æ® °æ·Î ÁöÁ¤ÆÄÀÏ menuG5.css : ½ºÅ¸ÀÏ ½ÃÆ® ÆÄÀÏ content.js : ¸Þ´º¼³Á¤ºÎºÐ
±â´É ¸ÕÀúº¸±â
±ò²ûÇÑ ·¹À̾ƿôÀ¸·Î ¼Óµµ°¡ ½º¹«¾²ÇÏ´Ù ^^
¼Ò½º ¼³¸í
<head>
<link rel=stylesheet href="menuG5.css" type="text/css">
<style type="text/css"> .pad { padding:0px 30px; border-width:1px; border-style:solid; border-color:#ffffff #ffffff #666666 #ffffff; } .padSub { padding:1px; border-width:1px; border-style:solid; border-color:#666666; background-color:#cccccc; } .padSub2 { padding:1px; border-width:1px; border-style:solid; border-color:#666666; background-color:#cccccc; }
.itemTopOff { width:90px; padding:1px 12px; background-color:#999999; border-width:1px 1px 0px 1px; border-style:solid; border-color:#666666; text-align:center; } .itemTopOn { cursor:default; width:110px; padding:4px 12px; background-color:#f0f0f0; border-width:1px 1px 0px 1px; border-style:solid; border-color:#666666; text-align:center; }
.itemOff { width:115px; padding:1px 6px 1px 11px; text-align:left; background-color:#cccccc; } .itemOn { cursor:default; width:115px; padding:1px 6px 1px 11px; text-align:left; background-color:#333333; }
.fontTopOff { font-family:verdana; font-size:10pt; color:#000000; } .fontTopOn { font-family:verdana; font-size:10pt; color:#000000; font-weight:bold; }
.fontOff { font-family:verdana; font-size:10pt; color:#000000; } .fontOn { font-family:verdana; font-size:10pt; color:#ffffff; }
.tagOff { width:8px; height:13px; float:right; background:url("images/tagRN.gif") no-repeat bottom; } .tagOn { width:8px; height:13px; float:right; background:url("images/tagRH.gif") no-repeat bottom; } </style>
<script language="javascript" src="highlight-path.js"></script> <script language="javascript" src="script/menuG5LoaderX.js"></script>
</head> <body onload="showMenu('Demo')">
HtmlÆÄÀÏ¿¡ ÀÖ´Â ¼Ò½ºÀÎ À̺κÐÀ» ³Ö¾î ÁÖ¼Å¾ß ÇÕ´Ï´Ù.
content.js ÆÄÀÏ
addMenu("Demo", "demo-top"); //¸ÞÀκκÐÀÇ ¸Þ´º ID¸¦ Á¤ÇÕ´Ï´Ù.
addLink("demo-top", "Home", "", "", "l1"); //ù¹ø° ¸Þ´º addSubMenu("demo-top", "Tool Scripts", "", "", "tool-sub", "s1"); //2¹ø° ¸Þ´º addSubMenu("demo-top", "Game Scripts", "", "", "game-sub", "s2"); //3¹ø° ¸Þ´º addSubMenu("demo-top", "User Forum", "", "", "forum-sub", "s3"); //4¹ø° ¸Þ´º addLink("demo-top", "Contact", "", "", "l2"); //5¹ø° ¸Þ´º
addSubMenu("tool-sub", "Menu Scripts", "", "", "menu-sub", ""); //tool-sub·Î ÁöÁ¤µÈºÎºÐÀÇ ¼ºê¸Þ´º ¸ÞÀÎ addLink("tool-sub", "Xin Calendar", "", "", ""); //tool-sub·Î ÁöÁ¤µÈºÎºÐÀÇ ¼ºê¸Þ´º1 addLink("tool-sub", "Select Menu 2", "", "", ""); //tool-sub·Î ÁöÁ¤µÈºÎºÐÀÇ ¼ºê¸Þ´º2 addLink("tool-sub", "Form Guard", "", "", ""); //tool-sub·Î ÁöÁ¤µÈºÎºÐÀÇ ¼ºê¸Þ´º3
addLink("game-sub", "Soul Of Fighters", "", "", ""); //game-sub·Î ÁöÁ¤µÈºÎºÐÀÇ ¼ºê¸Þ´º1 addLink("game-sub", "Simple Tetris 2", "", "", ""); //game-sub·Î ÁöÁ¤µÈºÎºÐÀÇ ¼ºê¸Þ´º2 addLink("game-sub", "Bubble Puzzle", "", "", ""); //game-sub·Î ÁöÁ¤µÈºÎºÐÀÇ ¼ºê¸Þ´º3 addLink("game-sub", "Puzzle OnSite", "", "", ""); //game-sub·Î ÁöÁ¤µÈºÎºÐÀÇ ¼ºê¸Þ´º4
addLink("forum-sub", "Menu G5", "", "", ""); //forum-sub·Î ÁöÁ¤µÈ ¼ºê¸Þ´º1 addLink("forum-sub", "Xin Calendar", "", "", ""); //forum-sub·Î ÁöÁ¤µÈ ¼ºê¸Þ´º2 addLink("forum-sub", "Form Utilities", "", "", ""); //forum-sub·Î ÁöÁ¤µÈ ¼ºê¸Þ´º3
addLink("menu-sub", "Menu G5", "", "", ""); //menu-sub·Î ÁöÁ¤µÈ ¼ºê¸Þ´º1 addLink("menu-sub", "Menu G4", "", "", ""); //menu-sub·Î ÁöÁ¤µÈ ¼ºê¸Þ´º2 addLink("menu-sub", "Menu G3", "", "", ""); //menu-sub·Î ÁöÁ¤µÈ ¼ºê¸Þ´º3
endMenu();
¿ì¼± °¡Àå ¾ÕºÎºÐÀÇ addLink ´Â ÇØ´ç ¸Þ´ºÀÇ ¼³Á¤ÀÔ´Ï´Ù. ±×¸®°í addSubMenu ºÎºÐÀº ¼ºê¸Þ´º¸¦ ¼³Á¤ÇÏ´Â ºÎºÐÀÔ´Ï´Ù.
addLink ·Î ½ÃÀÛÇÏ´Â ºÎºÐ¿¡´Â ¼ºê¸Þ´º°¡ ¾ø´Â ºÎºÐÀ̸ç addSubMenu ´Â ¼ºê¸Þ´º¸¦ ¼³Á¤ÇÏ´Â ºÎºÐÀÔ´Ï´Ù. addLink("demo-top", "Home", "", "http://www.happycgi.com" , "l1"); addLink("Àû¿ëµÇ´ÂºÎºÐÀÇ ID¸¦ ÁöÁ¤ÇÕ´Ï´Ù","¸Þ´ºÀÇ À̸§À» Á¤ÇÕ´Ï´Ù","","¸µÅ©ÁÖ¼Ò¸¦ Á¤ÇÕ´Ï´Ù", "l1");
addSubMenu("tool-sub", "Menu Scripts", "", "http://www.happycgi.com" , "menu-sub", ""); addSubMenu("Àû¿ëµÇ´ÂºÎºÐÀÇ ID¸¦ ÁöÁ¤ÇÕ´Ï´Ù" , "¸Þ´ºÀÇ À̸§À» Á¤ÇÕ´Ï´Ù" , "" , "¸µÅ©ÁÖ¼Ò¸¦ ÁöÁ¤ÇÕ´Ï´Ù" , "¼ºê¸Þ´º·Î ³ª¿Ã ºÎºÐÀÇ ID¸¦ ÁöÁ¤ÇÕ´Ï´Ù" , "");
HtmlÆÄÀÏ¿¡ ÀÖ´Â À̺κÐÀÌ ¸Þ´º°¡ Ç¥½ÃµÇ´Â ºÎºÐÀÔ´Ï´Ù. <table cellpadding="0" cellspacing="0" border="0" align="center"><tr><td id="holder"> </td></tr></table><br clear="all">
id="holder" ºÎºÐÀÌ Ç¥½ÃµÇ´Â °Í ÀÔ´Ï´Ù.
|