MENU

Saturday, June 23, 2012

membuat menu pada blog + dropdown

berikut ini saya akan men share cara membuat menu pada blog dan bisa drop down seperti pada blog profesioanal, caranya sangatlah mudah samak caranya berikut ini;

-log in
-design>>>pilih layout
-tambah gadget di bawah header>>>pilih java script html
-masukkan script berikut ini:



<style type="text/css">
#menu{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiwT9cNzVP55tt7HsHGTjiCpWOMj82qoOdePyVV7cZDvK3x2KSGgceya2uME3pbmB_LykdLL4iRH3S8-MVqxRgWe8KtLW3EXiy8j_fNKRq8CY8XVVLG2GmEJ3mnIMOZ95x3pMpFoq7Bwc/s1600/green-tab_02.gif); width:auto; height:32px; color:#5A6C8C; margin:0 auto; padding:0 3px; font:bold 8px Arial, Tahoma, Verdana; border-top:1px solid #666; border-bottom:1px solid #666;-moz-border-radius: 10px;
-webkit-border-radius: 10px;
-khtml-border-radius: 10px;
border-radius: 10px;}
#down{width:850px; float:left; margin:0; padding:0;}
#drop{margin:0; padding:0;}
#drop ul{float:left; list-style:none; margin:0; padding:0;}
#drop li{list-style:none; margin:0; padding:0; text-shadow:1px 1px 1px #000;}
#drop li a, #nav li a:link, #nav li a:visited{color:#fff; display:block; text-transform:uppercase; margin:0; padding:8px 10px 8px; font:bold 11px Arial, Times New Roman;}
#drop li a:hover, #drop li a:active{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTLLM97FLMxDUZRHmYzL36GTXdBfxWHR8cY-kupb-BGDd7OrL3D4NkbITaNjU6Hy-emSXmaLvGG570HxLDI0gId3TuaPVImxU91AP09ADO427ZH9svHcW_vbj4NL6wGCfVy2U4VnTguIQ/s1600/tab_right_black.png);color:#fff; padding:9px 15px 9px; text-decoration:none;-moz-border-radius: 12px;
-webkit-border-radius: 12px;
-khtml-border-radius: 12px;
border-radius: 12px;}
#drop li li a, #drop li li a:link, #drop li li a:visited{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigViRd8g-AsGPO64DwuIuVAUt36k69BeIX6oUR9hC5IaG5_MRX-VISHSpiShVFFzmLrLb3OSItir2rNyLbHAj1SG7fldyiPz2lGKWWkB1Iq3xCj2U4HYCGjjCTL6Hvwyx5S8JfR3dE9S0/s1600/680992255dcce09b1654cc28f86eacf35c4.jpg); width:150px; color:#e5e3e3; text-transform:capitalize;position:left; float:none; margin:0; padding:2px 5px; border-bottom:1px solid #151f23; border-left:px solid #151f23;border-right:2px solid #151f23; font:normal 14px Georgia, Times New Roman;-moz-box-shadow: 1px 1px 10px #888;
-webkit-box-shadow:1px 1px 10px #888;
-webkit-border-radius: 6px;-moz-border-radius: 10px;
-webkit-border-radius: 10px;
-khtml-border-radius: 10px;
border-radius: 10px;}
#drop li li a:hover, #drop li li a:active{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTLLM97FLMxDUZRHmYzL36GTXdBfxWHR8cY-kupb-BGDd7OrL3D4NkbITaNjU6Hy-emSXmaLvGG570HxLDI0gId3TuaPVImxU91AP09ADO427ZH9svHcW_vbj4NL6wGCfVy2U4VnTguIQ/s1600/tab_right_black.png); color:#fff; padding:3px 10px;-moz-border-radius: 12px;
-webkit-border-radius: 12px;
-khtml-border-radius: 12px;
border-radius: 12px;}
#drop li{float:left; padding:0;}
#drop li ul{z-index:9999; position:absolute; left:-999em; height:auto; width:100px; margin:0; padding:0;}
#drop li ul a{width:140px;}
#drop li ul ul{margin:-24px 0 0 170px;}
#drop li:hover ul ul, #nav li:hover ul ul ul, #nav li.sfhover ul ul, #nav li.sfhover ul ul ul{left:-999em;}
#drop li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul, #nav li li li.sfhover ul{left:auto;}
#drop li:hover, #nav li.sfhover{position:static;}
#top{background:#f6f6f6; margin:10px auto 0; padding:10px; width:918px; border:1px solid #ccc; word-wrap: break-word; overflow: hidden; font-size:13px;}
#top a, #top a:visited{font-weight: normal; color: #00338F; text-decoration: none;}
#top a:hover{color:#cc0000; text-decoration: underline;}
#top p {font-size: 14px; font-weight: bold; padding: 0; margin: 0;}
.topleft {width: 304px; float: left; margin: 0; padding:0;}
.topleft img a, .topleft img {border:1px solid #ccc; margin: 0; padding: 1px;}
.topright {width: 600px; float: right; margin:0; padding:0; text-transform: normal;}
</style>
<div id='outer'>
<div id='menu'>
<div id='down'>
<ul id='drop'>
<li><a href="http://pakmantrideso.blogspot.com/">HOME</a></li>
<li><a href"#">KOMPUTER</a>
<ul>
<li><a href="URL">SOFTWARE</a></li>
<li><a href="URL">TIPS&TRIK</a></li>
</ul></li>
<li><a href="URL">APLIKASI HP</a>
<ul>
<li><a href="URL">Blackberry</a></li>
<li><a href="URL">ANDROID</a></li>
<li><a href="URL">W-MOBILE</a></li>
</ul></li>
<li><a href"#">ARTIKEL</a>
<li><a href="URL">FACEBOOK</a></li>
<li><a href="URL">TWITTER</a></li>
<li><a href="URL">ABOUT us</a></li>
</ul>
</div>
</div>
</div>



-lalu save

contoh setelah jadi:


No comments:

Post a Comment