pages

Tuesday, 15 May 2012

Membuat Menu Horizontal

Di atas adalah gambar menu horiontal yang akaan kita buat

Berikut adalah langkah 2 nya :
  1. Login pada Blogger
  2. Pilih Template >> Edit HTML >> Lanjutkan
  3. Cari ]]></b:skin>
  4. Letakkan kode berikut diatas ]]></b:skin>
    /* Menu Horizontal Dropdown ----------------------------------------------- */ #menuwrapperpic{background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifdPW0cscTnMsnjE7wOAOvVgcqCKY74tGKIZ5D_myH8tnXziau_CC0x6sqa4HyEjSgUDqv-f2w7Jfv3zacBYznKv24oLWFhsKvBDEEYQNcllD4xvJp1ZesLwXEXp9U_VAR44nfgxO6g_s/s1600/menubar.png) repeat-x;width:960px;margin:0 auto;padding:0 auto} #menuwrapper{width:960px;height:35px;margin:0 auto} .menusearch{width:300px;float:right;margin:0 auto;padding:0 auto} .clearit{clear:both;height:0;line-height:0.0;font-size:0} #menubar{width:100%} #menubar,#menubar ul{list-style:none;font-family:Arial, serif;margin:0;padding:0} #menubar a{display:block;text-decoration:none;font-size:12px;font-weight:700;text-transform:uppercase;color:#CECECF;border-right:1px solid #191919;padding:12px 10px 8px} #menubar a.trigger{background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXuBVkalFt2W8TGKc-qmoZ0G5Ciy0GgBbCiG8tpj_yDGso2v6t9n9QEErID6qa7elIkM9hF1zS2SNRRs_L8q8GcZd6tnpc_5fEAtNtDAgUVW_zkYUimlKz_uzZeZeoaU6KmQSi7Yx3NXw/s1600/arrow_white.gif);background-repeat:no-repeat;background-position:right center;padding:12px 24px 8px 10px} #menubar li{float:left;position:static;width:auto} #menubar li ul,#menubar ul li{width:170px} #menubar ul li a{text-align:left;color:#fff;font-size:12px;font-weight:400;text-transform:none;font-family:Arial;border:none;padding:5px 10px} #menubar li ul{z-index:100;position:absolute;display:none;background:#222;padding-bottom:5px;-moz-box-shadow:0 2px 2px rgba(0,0,0,0.6);-webkit-box-shadow:0 2px 2px rgba(0,0,0,0.6)} #menubar li:hover a,#menubar a:active,#menubar a:focus,#menubar li.hvr a{background-color:#222;color:#E98C0A} #menubar li:hover ul,#menubar li.hvr ul{display:block} #menubar li:hover ul a,#menubar li.hvr ul a{color:#edfdfd;background-color:transparent;text-decoration:none} #menubar li ul li.hr{border-bottom:1px solid #444;border-top:1px solid #000;display:block;font-size:1px;height:0;line-height:0;margin:4px 0} #menubar ul a:hover{background-color:#555!important;color:#fff!important;text-decoration:none}
  5. Selanjutnya cari kode <header> atau </header>
  6. Letakkan kode berikut diatas di atas kode <header> atau di bawah kode</header> 
    <div id='menuwrapperpic'>
    <div id='menuwrapper'>
    <ul id='menubar'>
    <li><a href='/'><img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxRDg1wPWHK-3BE0TfYw8QIXGMPd4-weahdXVz1R2AqyWwlTmz8IKIYCsujFBsBhhqVJMpqqzUE_Ia0dU1rDcpJ6cZa-vNAKKhANvTJpiP2AcRcsQTBcEGMh8CXyoWk6QgLWQpIGbpBxY/s1600/home_white.png' style='padding:0px;'/>Home</a></li>
    <li><a href='http://www.blogger.com/profile/06961337061354681028' target='new'>Tentang Admin</a></li>
    <li><a class='trigger'>Menu1</a>
    <ul>
    <li><a href='#' target='new'>Dropdown</a></li>
    <li class='hr'/>
    <li><a href='#' target='new'>Dropdown</a></li>
    <li><a href='#' target='new'>Dropdown</a></li>
    <li><a href='#' target='new'>Dropdown</a></li>
    </ul>
    </li>
    <li><a href=http://www.katakan-hey.com/' target='new'>Katakan Hey</a></li>
    <li><a class='trigger'>Menu2</a>
    <ul>
    <li><a href='#' >Dropdown</a></li>
    <li class='hr'/>
    <li><a href='#' >Dropdown</a></li>
    <li class='hr'/>
    <li><a href='#' >Dropdown</a></li>
    <li class='hr'/>
    </ul>
    </li>
    <li><a class='trigger'>Menu3</a>
    <ul>
    <li><a href='#' >Dropdown</a></li>
    <li class='hr'/>
    <li><a href='#' >Dropdown</a></li>
    <li class='hr'/>
    </ul>
    </li>
    </ul><div class='menusearch'>
    <div style='float:right;padding:8px 8px 0 0;'>
    <form action='http:// www.slinder9.blogspot.com/search' method='get' target=''>
    <input name='sitesearch' style='display:none;' value='http:// www.slinder9.blogspot.com'/>
    <input id='search-box' name='q' onblur='if(this.value==&apos;&apos;)this.value=this.defaultValue;' onfocus='if(this.value==this.defaultValue)this.value=&apos;&apos;;' style='width:170px;border:none;padding:4px 10px; font:italic 12px Georgia;color:#666; background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhMh4V4-dF36piBr-fajhuHaA5oPbAVvEgLmgfn-n0UeLrYdgn_ah_9kFHVCJ3axkrYky2G3IUi5zySanTmEhvIhan3k5YCwcy0IO-gFNsup_gUVQsQyuu9oeSF0SiKZRTD0qGAsk-AXQ/s1600/field-bg.gif) no-repeat;' type='text' value='Searc ...'/><input align='top' id='search-btn' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEih9Z4Fel6ZxryZj7yJBZyOqw-ll0B6viZqzDvgSJ1bEY-SA5Tx1so5tWMgLr2ndmXTz7r90ni4cz6RfEg1iroUD65uLNV1qYn0wxjZnJNisNzWhuErfsdL8jBBfcx5wACZdm1UxIpdi8M/s1600/bg_search.gif' type='image' value='Search'/>
    </form></div></div></div></div>
    *Keterangan :
    • Menu Ganti dengan nama menu Anda
    • Dropdown Ganti dengan nama menu dropdown Anda
    • www.slinder9.blogspot.com Ganti dengan alamat URL blog / web Anda
SELAMAT MENCOBA......

6 comments: