ÇÊ¿äÇÑ ½ºÅ©¸³Æ®
*½ºÅ¸ÀϽÃÆ®
<style> #dolphincontainer{position:relative;border-bottom: 2px solid navy; color:#E0E0E0;background:#143D55; width:100%;font-family:Helvetica,Arial,Verdana,sans-serif;} #dolphinnav{position:relative;height:33px;font-size:12px;text-transform:uppercase;font-weight:bold;background:#fff url(images/dolphin_bg.gif) repeat-x bottom left;padding:0 0 0 20px;} #dolphinnav ul{margin:0;padding:0;list-style-type:none;width:auto;float:left;} #dolphinnav ul li{display:block;float:left;margin:0 1px;} #dolphinnav ul li a{display:block;float:left;color:#EAF3F8;text-decoration:none;padding:0 0 0 20px;height:33px;} #dolphinnav ul li a span{padding:12px 20px 0 0;height:21px;float:left;} #dolphinnav ul li a:hover{color:#fff;background:transparent url(images/dolphin_bg-OVER.gif) repeat-x bottom left;} #dolphinnav ul li a:hover span{display:block;width:auto;cursor:pointer;} #dolphinnav ul li a.current,#dolphinnav ul li a.current:hover{color:#fff;background:#1D6893 url(images/dolphin_left-ON.gif) no-repeat top left;line-height:275%;} #dolphinnav ul li a.current span{display:block;padding:0 20px 0 0;width:auto;background:#1D6893 url(images/dolphin_right-ON.gif) no-repeat top right;height:33px;}
#dolphin_inner{color: white; padding: 5px; font-size: 80%; height: 1em}
#dolphin_inner a:link, #dolphin_inner a:visited, #dolphin_inner a:active{color: white} #dolphin_inner a:hover{color: yellow}
.innercontent{display: none;margin:10}
</style>
* ½ºÅ©¸³Æ®
<script type="text/javascript"> var dolphintabs={ subcontainers:[], last_accessed_tab:null,
revealsubmenu:function(curtabref){ this.hideallsubs() if (this.last_accessed_tab!=null) this.last_accessed_tab.className="" if (curtabref.getAttribute("rel")) //If there's a sub menu defined for this tab item, show it document.getElementById(curtabref.getAttribute("rel")).style.display="block" curtabref.className="current" this.last_accessed_tab=curtabref },
hideallsubs:function(){ for (var i=0; i<this.subcontainers.length; i++) document.getElementById(this.subcontainers[i]).style.display="none" }, init:function(menuId, selectedIndex){ var tabItems=document.getElementById(menuId).getElementsByTagName("a") for (var i=0; i<tabItems.length; i++){ if (tabItems[i].getAttribute("rel")) this.subcontainers[this.subcontainers.length]=tabItems[i].getAttribute("rel") //store id of submenu div of tab menu item if (i==selectedIndex){ //if this tab item should be selected by default tabItems[i].className="current" this.revealsubmenu(tabItems[i]) } tabItems[i].onmouseover=function(){ dolphintabs.revealsubmenu(this) } } //END FOR LOOP }
} </script>
»ç¿ë¹æ¹ý
ÀÌ ÅǸ޴º¸¦ »ç¿ëÇϱâ À§Çؼ´Â »ó´Ü¿¡ ÀûÇôÀÖ´Â ½ºÅ¸ÀϽÃÆ®¿Í ½ºÅ©¸³Æ®°¡ Æ÷ÇԵǾîÀÖ¾î¾ß Çϸç, ÇÏ´Ü¿¡ ÀûÇôÀÖ´Â ½ºÅ©¸³Æ®¿Í Ãâ·Â¹æ½ÄÀÌ ¸Â¾Æ¾ß ÇÕ´Ï´Ù.
*º»¹®ºÎºÐ
<div id="dolphincontainer"> <div id="dolphinnav"> <ul> <li><a href="http://happycgi.com/" rel="home"><span>ȨÀ¸·Î</span></a></li> <li><a href="http://happycgi.com/" rel="tab1"><span>¸Þ´º1</span></a></li> <li><a href="http://happycgi.com/" rel="tab2"><span>¸Þ´º2</span></a></li> <li><a href="http://happycgi.com/" rel="tab3"><span>¸Þ´º3</span></a></li> <li><a href="http://happycgi.com/" rel="tab4"><span>¸Þ´º4</span></a></li> </ul> </div> <div id="dolphin_inner"> <div id="home" class="innercontent"> ȨÀ¸·Î È¸é ³»¿ë<br> </div>
<div id="tab1" class="innercontent"> ÅÇ ¸Þ´º ³»¿ë 1<br> </div>
<div id="tab2" class="innercontent"> ÅÇ ¸Þ´º ³»¿ë 2<br> </div>
<div id="tab3" class="innercontent"> ÅÇ ¸Þ´º ³»¿ë 3<br> </div>
<div id="tab4" class="innercontent"> ÅÇ ¸Þ´º ³»¿ë 4<br> </div> </div> </div>
À§ÀÇ Å±×ó·³ divűװ¡ Á¸ÀçÇØ¾ß ÇÕ´Ï´Ù.
<script type="text/javascript"> dolphintabs.init("dolphinnav", 1) //ÃÖÃÊ È°¼ºÈ½Ãų ÅÇ ¸Þ´º ¼±Åà ¼ýÀÚ 1Àº ù¹ø° ÅÇ </script>
°¡ÀåÇÏ´Ü¿¡ À§ÀÇ ½ºÅ©¸³Æ®°¡ Á¸ÀçÇÏ¿©¾ß ÇÕ´Ï´Ù. À§ÀÇ ºÎºÐÀº óÀ½À¸·Î ¿À¹öµÇ¾îÀÖ´Â ÅǸ޴ºÀÇ ¹øÈ£À̸ç, 0 ÀÌ °¡Àå ù¹ø°ÀÇ ¸Þ´ºÀÔ´Ï´Ù.
|