Featured Post Today
print this page
Latest Post
Tampilkan postingan dengan label menu. Tampilkan semua postingan
Tampilkan postingan dengan label menu. Tampilkan semua postingan

CSS3 Pillow Dropdown Menu



Hmm, dari judulnya tampak aneh pake acara menambahkan kata "pillow".

Hehehe, saya sendiri pun bingung mau memberi judul apa postingan kali ini, karena kalau hanya CSS3 dropdown menu dan sebagainya terlalu sederhana, sehingga untuk menarik pembaca mungkin lebih diperlukan sebuah judul yang agak "aneh".

Setelah selesai berbasa-basi pendek sempit seperti diatas mari kita mulai dengan hal yang substansial dengan postingan ini. Oiya, bila tertarik dengan menu yang floating maka bisa di lihat disini lho...

Pertama, mengapa saya beri judul dengan embel-embel "pillow"??? hehehe karena itu hanya sebatas singkatan dari Pink & Yellow yang akan menjadi kombinasi warna utama dari menu yang akan kita buat.

Kedua, bagaimana implementasinya??? Tentu dibutuhkan kode-kode untuk membangun menu seperti diatas bukan ???

Lets see...

/* Main */
#aiizahh-menu{
    width: 100%;
    margin: 0;
    padding: 10px 0 0 0;
    list-style: none; 
    background: #FE80DF;
    background: -moz-linear-gradient(#FFFF00, #FE80DF);
    background: -webkit-gradient(linear,left bottom,left top,

color-stop(0, #FE80DF),color-stop(1, #FFFF00));   
    background: -webkit-linear-gradient(#FFFF00, #FE80DF);   
    background: -o-linear-gradient(#FFFF00, #FE80DF);
    background: -ms-linear-gradient(#FFFF00, #FE80DF);
    background: linear-gradient(#FFFF00, #FE80DF);
    -moz-border-radius: 50px;
    border-radius: 50px;
    -moz-box-shadow: 0 2px 1px #9c9c9c;
    -webkit-box-shadow: 0 2px 1px #9c9c9c;
    box-shadow: 0 2px 1px #9c9c9c;
}

#aiizahh-menu li{
    float: left;
    padding: 0 0 10px 0;
    position: relative;
}

#aiizahh-menu a{
    float: left;
    height: 25px;
    padding: 0 25px;
    color: #000000;
    text-transform: uppercase;
    font: bold 12px/25px Arial, Helvetica;
    text-decoration: none;
}

#aiizahh-menu li:hover > a{
    color: #FE80DF;
}

*html #aiizahh-menu li a:hover{ /* IE6 */
    color: #FE80DF;
}

#aiizahh-menu li:hover > ul{
    display: block;
}

/* Sub-aiizahh-menu */

#aiizahh-menu ul{
    list-style: none;
    margin: 0;
    padding: 0;   
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    z-index: 99999;   
    background: #FFFF00;
    background: -moz-linear-gradient(#FFFF00, #FE80DF);
    background: -webkit-gradient(linear,left bottom,left top,

color-stop(0, #FE80DF),color-stop(1, #FFFF00));
    background: -webkit-linear-gradient(#FFFF00, #FE80DF);   
    background: -o-linear-gradient(#FFFF00, #FE80DF);   
    background: -ms-linear-gradient(#FFFF00, #FE80DF);   
    background: linear-gradient(#FFFF00, #FE80DF);   
    -moz-border-radius: 5px;
    border-radius: 5px;
}

#aiizahh-menu ul li{
    float: none;
    margin: 0;
    padding: 0;
    display: block; 
    -moz-box-shadow: 0 1px 0 #FE80DF111, 0 2px 0 #777777;
    -webkit-box-shadow: 0 1px 0 #FE80DF111, 0 2px 0 #777777;
    box-shadow: 0 1px 0 #FE80DF111, 0 2px 0 #777777;
}

#aiizahh-menu ul li:last-child{  
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;   
}

#aiizahh-menu ul a{   
    padding: 10px;
    height: auto;
    line-height: 1;
    display: block;
    white-space: nowrap;
    float: none;
    text-transform: none;
}

*html #aiizahh-menu ul a{ /* IE6 */  
    height: 10px;
    width: 150px;
}

*:first-child+html #aiizahh-menu ul a{ /* IE7 */   
    height: 10px;
    width: 150px;
}

#aiizahh-menu ul a:hover{
        background: #0186ba;
    background: -moz-linear-gradient(#04acec,  #0186ba);   
    background: -webkit-gradient(linear, left top, left bottom, 

from(#04acec), to(#0186ba));
    background: -webkit-linear-gradient(#04acec,  #0186ba);
    background: -o-linear-gradient(#04acec,  #0186ba);
    background: -ms-linear-gradient(#04acec,  #0186ba);
    background: linear-gradient(#04acec,  #0186ba);
}

#aiizahh-menu ul li:first-child a{
    -moz-border-radius: 5px 5px 0 0;
    -webkit-border-radius: 5px 5px 0 0;
    border-radius: 5px 5px 0 0;
}

#aiizahh-menu ul li:first-child a:after{
    content: ;
    position: absolute;
    left: 30px;
    top: -8px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid #FFFF00;
}

#aiizahh-menu ul li:first-child a:hover:after{
    border-bottom-color: #04acec;
}

#aiizahh-menu ul li:last-child a{
    -moz-border-radius: 0 0 5px 5px;
    -webkit-border-radius: 0 0 5px 5px;
    border-radius: 0 0 5px 5px;
}

/* Clear floated elements */
#aiizahh-menu:after{
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}


<script type="text/javascript">
    $(function() {
      if ($.browser.msie && $.browser.version.substr(0,1)<7)
      {
        $(li).has(ul).mouseover(function(){
            $(this).children(ul).show();
            }).mouseout(function(){
            $(this).children(ul).hide();
            })
      }
    });       
</script>



Dan... ini finishing nya :

<ul id="aiizahh-menu">
    <li><a href="#">Home</a></li>
    <li>
        <a href="#">Tutorial</a>
        <ul>
            <li><a href="#">CSS</a></li>
            <li><a href="#">Blog</a></li>
            <li><a href="#">Other</a></li>
        </ul>
    </li>
    <li>
        <a href="#">Tool</a>
            <ul>
            <li><a href="#">HTML Parse</a></li>
            <li><a href="#">Speed Test</a></li>
            <li><a href="#">Backlink Generator</a></li>
            <li><a href="#">Widget Twitter</a></li>
        </ul>
    </li>
    <li><a href="#">About</a></li>
    <li><a href="#">Contact</a></li>
</ul>



DEMO :



Terima kasih, semoga bermanfaat...


Referensi : red-team-design.com
0 komentar

Membuat Menu Seperti Windows Explorer diBlog

Membuat menu Dtree / Windows Explorer

membuat menu Blog menyerupai menu yang ada pada Windows explorer

Langkag-langkahya :
1. Sign in di blogger
2. Klik menu Layout
3. Klik menu Edit HTML
4. Copy paste kode berikut di atas kode </head>

<link rel="StyleSheet" href="http://amen24.googlepages.com/dtree.css" type="text/css" />
<script type="text/javascript" src="http://amen24.googlepages.com/dtree.js"></script> 


5. Klik tombol Simpan Template
6. Klik menu Elemen Halaman
7. Klik tulisan Tambahkan sebuah Elemen Halaman
8. Klik tombol TAMBAHKAN KE BLOG di bawah tulisan HTML/JavaScript
Copy paste kode berikut pada kotak yang muncul (jangan lipa menggati linknya)

<div class="dtree">



<p><a href="javascript: d.openAll();"><img src="http://amen24.googlepages.com/plus.gif" /><b>Open all</b></a> | <a href="javascript: d.closeAll();"><img src="http://amen24.googlepages.com/minus.gif" /><b>Close all</b></a></p>



<script type="text/javascript">


<!--


d = new dTree(d);


d.add(0,-1,Home,http://aura5758club.blogspot.com);

d.add(1,0,Tutorial membuat blog)

d.add(3,1,tutorial blog,);

d.add(10,3,Belajar membuat blog,http://aura5758club.blogspot.com/2010/12/belajar-membuat-blog.html);

d.add(20,3,Cara setting blog di blogspot,http://aura5758club.blogspot.com/2010/12/cara-setting-blog-di-blogspot.html);

d.add(30,3,Cara Membuat kata sambutan diblog pembuka,http://aura5758club.blogspot.com/2010/12/membuat-kata-sambutan-atau-pembuka-blog.html);

d.add(40,3,Membuat Kata Penutup di Blog,http://aura5758club.blogspot.com/2010/12/membuat-kata-penutup-blog.html);

d.add(50,3,Membuat login widget,http://aura5758club.blogspot.com/2010/12/membuat-login-widget.html);

d.add(60,3,Membuat kolom tex area/tulisan,http://aura5758club.blogspot.com/2010/12/membuat-kolom-teks-area-untuk-kode.html);

d.add(70,3,Membuat link berubah warna dan membesar ketika di sorot,http://aura5758club.blogspot.com/2010/12/membuat-link-berubah-warna-dan-membesar.html);

d.add(80,3,Mengganti template baru ke template clasic,http://aura5758club.blogspot.com/2010/12/mengganti-template-baru-ke-template.html);

d.add(90,3,Mengganti template clasic ke template baru,http://aura5758club.blogspot.com/2010/12/mengganti-dari-template-klasik-ke.html);

d.add(100,3,Membuat search,http://aura5758club.blogspot.com/2010/12/cara-membuat-search.html);

d.add(110,3,Membuat kotak dialog blog setelah di matikan,http://aura5758club.blogspot.com/2010/12/membuat-kotak-dialog-setelah-blog.html);

d.add(120,3,menghilangkan navbar,http://aura5758club.blogspot.com/2011/01/cara-menghilangkan-navbar.html);

d.add(130,3,Membuat cursor bertabur bintang,http://aura5758club.blogspot.com/2010/12/membuat-cursor-bertabur-bintang-di-blog.html);

d.add(140,3,Cara membuat banner foto gratis bintang,http://aura5758club.blogspot.com/2010/12/cara-membuat-banner-foto-gratis.html);

d.add(150,3,Membuat link kerlap kerlip bintang,http://aura5758club.blogspot.com/2010/12/membuat-link-menjadi-kerlap-kerlip.html);

d.add(160,3,Membuat iklan melayang,http://aura5758club.blogspot.com/2010/12/membuat-iklan-melayang.html);

d.add(170,3,Memperkegil ukuran gambar iklan admob,http://aura5758club.blogspot.com/2010/12/memperkecil-ukuran-gambar-iklan-admob.html);

d.add(180,3,Membuat banner gratis,http://aura5758club.blogspot.com/2010/12/membuat-banner-gratis.html);

d.add(190,3,Membuat Read more,http://aura5758club.blogspot.com/2010/12/cara-membuat-read-more-template-baru.html);

d.add(200,3,Cara Membuat Teks Berjalan atau EfekMarguee,http://aura5758club.blogspot.com/2010/12/cara-membuat-teks-berjalan-atau.html);

d.add(210,3,Cara Memberi Bacground Warna pada Posting,http://aura5758club.blogspot.com/2010/12/cara-memberi-bacground-warna-pada.html);

d.add(220,3,Cara mengetahui pengunjung yang online ,http://aura5758club.blogspot.com/2010/12/cara-mengetahui-pengunjung-yang-online.html);

d.add(230,3,Cara Mengetahui Harga Blog  ,http://aura5758club.blogspot.com/2010/12/mengetahui-harga-blog.html);




d.add(5,1,Affiliasi dan meningkatkan traffic);

d.add(10,5,sms traffic menu,http://aura5758club.blogspot.com/2011/01/cara-meningkatkan-trafic.html);

d.add(20,5,Strategi pemasaran afiliasi ,http://aura5758club.blogspot.com/2010/12/strategi-pemasaran-afiliasi.html);

d.add(30,5,8 Langkah Sukses Memasarkan Program Afiliasi atau Bisnis Online,http://aura5758club.blogspot.com/2010/12/8-langkah-sukses-memasarkan-program.html);

d.add(40,5,Taktik affiliate marketing ,http://aura5758club.blogspot.com/2010/12/taktik-affiliate-marketing.html);


d.add(2,0,bisnis online seputar aura5758);
d.add(10,2,Kebebasan finansial,http://aura5758club.blogspot.com/2010/12/financial-freedom-atau-kebebasan.html);

d.add(20,2,aura5758-belajar network marketing,http://aura5758club.blogspot.com/2010/12/belajar-network-marketing-dengan-mlm.html);

d.add(30,2,Potensi perkembangan mobile payment Indonesia ,http://aura5758club.blogspot.com/2010/12/potensi-perkembangan-mobil-payment.html);

d.add(40,2,web replika,http://aura5758club.blogspot.com/2010/12/web-replika.html/);



d.add(90,2,Video=t-cash indomart  ,http://aura5758club.blogspot.com/2010/12/t-cash-indomart.html);
d.add(100,2,Video=mATM   ,http://aura5758club.blogspot.com/2010/12/matm.html);
d.add(110,2,Video=mobile payment indonesia   ,http://aura5758club.blogspot.com/2010/12/matm.html);

d.add(4,0,cerita inspirasi,);

d.add(10,4,Impian seorang lumpuh,http://aura5758club.blogspot.com/2010/12/impian-seorang-lumpuh.html);

d.add(20,4,KISAH SI PENEBANG POHON,http://aura5758club.blogspot.com/2010/12/kisah-si-penebang-pohon.html);

d.add(7,0,My friendster!,http://www.aura5758support.com/?id=fery,my friendster,,http://amen24.googlepages.com/friendsterku.gif);

d.add(8,0,Recycle Bin,http://kolom-tutorial.blogspot.com/index.html,Recycle bin,,http://amen24.googlepages.com/trash.gif);



document.write(d);


//-->

</script>


</div>
0 komentar
 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Ibnu khm - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger