탭 메뉴 구성 10 (깔삼한 디자인) > script

본문 바로가기
사이트 내 전체검색

script

탭 메뉴 구성 10 (깔삼한 디자인)

페이지 정보

작성자 서방님 댓글 0건 조회 110회 작성일 07-08-11 15:37

본문

<html>
<head>
    <title>http://www.blueb.co.kr</title>
    <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(http://www.blueb.co.kr/SRC/javascript/image5/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(http://www.blueb.co.kr/SRC/javascript/image5/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(http://www.blueb.co.kr/SRC/javascript/image5/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(http://www.blueb.co.kr/SRC/javascript/image5/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>
</head>

<body>

 

    <div id="dolphincontainer">
        <div id="dolphinnav">
        <ul>
        <li><a href="http://www.blueb.co.kr"><span>Home</span></a></li>
        <li><a href="http://www.blueb.co.kr" rel="tab1"><span>Tab 1</span></a></li>
        <li><a href="http://www.blueb.co.kr" rel="tab2"><span>Tab 2</span></a></li>
        <li><a href="http://www.blueb.co.kr" rel="tab3"><span >Tab 3</span></a></li>
        <li><a href="http://www.blueb.co.kr"><span>Tab 4</span></a></li>
        </ul>
        </div>
   
        <div id="dolphin_inner">
            <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>
    </div>

<script type="text/javascript">
dolphintabs.init("dolphinnav", 1) //최초 활성화시킬 탭 메뉴 선택 숫자 1은 첫번째 탭
</script>

</body>
</html>

댓글목록

등록된 댓글이 없습니다.

Total 846건 31 페이지
게시물 검색

회원로그인

접속자집계

오늘
61
어제
302
최대
1,347
전체
155,122
Latest Crypto Fear & Greed Index

그누보드5
Copyright © 서방님.kr All rights reserved.