Jumat, 11 Januari 2013

Membuat Menu Vertical Blogger

Ini adalah Gambarannya: 

Hy sahabat ib (imam blog), kali ini ib akan memberikan tips cara membuat Menu Vertical di blog..langsung sajaaa..jangan lama-lama.heee

Begini carannya:

  1. Pergi ke Blogger Dashboard > Layout
  2. Click Add a Gadget
  3. Pilih HTML/JavaScript
  4. Pastekan Kode dibawah ini di HTML/JavaScript 

<style>
/*======= Vertical Drop Down Menu By Helper Blogger ========= */
.ddsmoothmenu-v ul {
    margin: 0;
    padding: 0;
    width: 250px;
 /* Main Menu Item widths */
    list-style-type: none;
    font: bold 12px Verdana;
    border-bottom: 0px solid #ccc;
}

.ddsmoothmenu-v ul li {
    position: relative;
}

.downarrowclass {
    position: absolute;
    top: 12px;
    right: 7px;
}

.rightarrowclass {
    position: absolute;
    top: 10px;
    right: 5px;
}
    /* Top level menu links style */
.ddsmoothmenu-v ul li a {
    display: block;
    overflow: auto;
        /*force hasLayout in IE7 */
    height: 32px;
    color: white;
    text-decoration: none;
    padding: 5px 5px 5px 25px;
    border-bottom: 0px solid #778;
    border-right: 0px solid #778;
}

.ddsmoothmenu-v ul li a:link, .ddsmoothmenu-v ul li a:visited, .ddsmoothmenu-v ul li a:active {
    color: white;
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD8yWetvFFUmz4-2zfq95fC71NbqyVQQVBG51v5iARGEZKh_baVdj85GZfrWIgpaoz2zO6rMn9_JsoPp6HpUMhrBpjml8gIsB-gdAccUS1o4un9qs17RN4kdKODdcATz3eqOiB41SeqyM/s1600/tab_bg.gif);
    height: 22px;
    background-repeat: repeat-x;
    background-position: left center;
    margin-bottom: 1px;
}

.ddsmoothmenu-v ul li a.selected {
        /*CSS class that's dynamically added to the currently active menu items' LI A element*/
    color: white;
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtGbRMzwiIVapz5iljL9EQxYy5KW3IRoKnZzaqG6acswXIJSEmCu2cDjR4oa63pPGvN7gWXVTcbITcB2KOSV2mVkynRQdyDwMlH7GN0MOtLSJ1EkpUljYXXX0FcUL4hMMu_G54b7YAo-o/s1600/tabhover_bg.gif);
    height: 22px;
    background-repeat: repeat-x;
    background-position: left center;
}

.ddsmoothmenu-v ul li a:hover {
    color: white;
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtGbRMzwiIVapz5iljL9EQxYy5KW3IRoKnZzaqG6acswXIJSEmCu2cDjR4oa63pPGvN7gWXVTcbITcB2KOSV2mVkynRQdyDwMlH7GN0MOtLSJ1EkpUljYXXX0FcUL4hMMu_G54b7YAo-o/s1600/tabhover_bg.gif);
    height: 22px;
    background-repeat: repeat-x;
    background-position: left center;
}
    /*Sub level menu items */
.ddsmoothmenu-v ul li ul {
    position: absolute;
    width: 170px;
        /*Sub Menu Items width */
    height: 22px;
    top: 0;
    font-weight: normal;
    visibility: hidden;
}
    /* Holly Hack for IE \*/
* html .ddsmoothmenu-v ul li {
    float: left;
    height: 1%;
}

* html .ddsmoothmenu-v ul li a {
    height: 1%;
}
/*======= Vertical Drop Down Menu By Helper Blogger ========= */
</style>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript" src="http://code.helperblogger.com/hb-smooth-menu.js"></script>
<script type="text/javascript">
    })
</script>
<script type="text/javascript">
    ddsmoothmenu.init({

        mainmenuid: "smoothmenu2",
        //Menu DIV id
        orientation: 'v',
        //Horizontal or vertical menu: Set to "h" or "v"
        classname: 'ddsmoothmenu-v',
        //class added to menu's outer DIV

        //customtheme: ["#804000", "#482400"],
        contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
    })
</script>
<div id="smoothmenu2" class="ddsmoothmenu-v">
     <ul>
        <li>
            <a href="http://www.helperblogger.com/">Home</a>
        </li>
        <li>
            <a href="#">Folder 0</a>
           </li>
            <li>
            <a href="#">Folder 1</a>
        </li>
        <li>
            <a href="#">Item 3</a>
        </li>
        <li>
            <a href="#">Folder 2</a>
        </li>
        <li>
            <a href="#">folder 6</a>
        </li>
    </ul>
    <br style="clear: left" />
</div>

Catatan : isilah href="#" dengan link yang mau di masukan, kemudian folder 6</a> di isi dengan judulnnya.

selesai...semoga berhasil.(by: ib)



Baca selengkapnya »

0 komentar:

Posting Komentar

Copyright © Ib ( Imam Blog ) Karya Putra Melayu + Banjar!! 2010

Template By Nano Yulianto