Jika anda tertarik untuk membuatnya , silahkan ikuti langkah berikut ini :
1. Login ke akun Blogger anda
2. Pilih Tata Letak >> Tambah Gadget >> HTML/JavaScript
3. Masukkan script dibawah ini
4. Klik simpan
<style>
/*------ CSS3 Drop Down Menu By RL (dhecun.blogspot.com)---------*/
#rl-menu, #rl-menu ul {
margin: 5;
padding: 5;
list-style: none;
}
#rl-menu {
width: 533px;
margin: 5px auto;
border: 1px solid #3b5998;
background-color: #4b67a1;
background-image: -moz-linear-gradient(#3b5998, #3b5998);
background-image: -webkit-gradient(linear, left top, left bottom, from(#3b5998), to(#3b5998));
background-image: -webkit-linear-gradient(#3b5998, #3b5998);
background-image: -o-linear-gradient(#3b5998, #3b5998);
background-image: -ms-linear-gradient(#3b5998, #3b5998);
background-image: linear-gradient(#3b5998, #3b5998);
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow: 0 1px 1px #777;
-webkit-box-shadow: 0 1px 1px #777;
box-shadow: 0 1px 1px #777;
}
#rl-menu:before,
#rl-menu:after {
content: "";
display: table;
}
#rl-menu:after {
clear: both;
}
#rl-menu {
zoom:1;
}
#rl-menu li {
float: left;
border-right: 1px solid #3b5998;
-moz-box-shadow: 1px 0 0 #444;
-webkit-box-shadow: 1px 0 0 #444;
box-shadow: 1px 0 0 #444;
position: relative;
}
#rl-menu a {
float: left;
padding: 5px 5px;
color: white;
text-transform: uppercase;
font: normal 11px Verdana, Helvetica;
text-decoration: none;
text-shadow: 0 1px 0 #000;
}
#rl-menu li:hover > a {
color: white;
}
*html #rl-menu li a:hover { /* IE6 only */
color: #3b5998;
}
#rl-menu ul {
margin: 5px 0 0 0;
_margin: 0; /*IE6 only*/
opacity: 0;
visibility: hidden;
position: absolute;
top: 38px;
left: 0;
z-index: 9999;
background: #444;
background: -moz-linear-gradient(#444, #111);
background: -webkit-gradient(linear,left bottom,left top,color-stop(0, #111),color-stop(1, #444));
background: -webkit-linear-gradient(#444, #111);
background: -o-linear-gradient(#444, #111);
background: -ms-linear-gradient(#444, #111);
background: linear-gradient(#444, #111);
-moz-box-shadow: 0 -1px rgba(255,255,255,.3);
-webkit-box-shadow: 0 -1px 0 rgba(255,255,255,.3);
box-shadow: 0 -1px 0 rgba(255,255,255,.3);
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-webkit-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
-ms-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
}
#rl-menu li:hover > ul {
opacity: 1;
visibility: visible;
margin: 0;
}
#rl-menu ul ul {
top: 0;
left: 150px;
margin: 0 0 0 5px;
_margin: 0; /*IE6 only*/
-moz-box-shadow: -1px 0 0 rgba(255,255,255,.3);
-webkit-box-shadow: -1px 0 0 rgba(255,255,255,.3);
box-shadow: -1px 0 0 rgba(255,255,255,.3);
}
#rl-menu ul li {
float: none;
display: block;
border: 0;
_line-height: 0; /*IE6 only*/
-moz-box-shadow: 0 1px 0 #111, 0 2px 0 #666;
-webkit-box-shadow: 0 1px 0 #111, 0 2px 0 #666;
box-shadow: 0 1px 0 #111, 0 2px 0 #666;
}
#rl-menu ul li:last-child {
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}
#rl-menu ul a {
padding: 5px;
width: 400px;
_height: 10px; /*IE6 only*/
display: block;
white-space: nowrap;
float: none;
text-transform: none;
}
#rl-menu ul a:hover {
background-color: #0186ba;
background-image: -moz-linear-gradient(#3b5998, #0186ba);
background-image: -webkit-gradient(linear, left top, left bottom, from(#3b5998), to(#0186ba));
background-image: -webkit-linear-gradient(#3b5998, #0186ba);
background-image: -o-linear-gradient(#3b5998, #0186ba);
background-image: -ms-linear-gradient(#3b5998, #0186ba);
background-image: linear-gradient(#3b5998, #0186ba);
}
#rl-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;
}
#rl-menu ul li:first-child > a:after {
content: '';
position: absolute;
left: 40px;
top: -5px;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid #444;
}
#rl-menu ul ul li:first-child a:after {
left: -5px;
top: 0%;
margin-top: -5px;
border-left: 0;
border-bottom: 5px solid transparent;
border-top: 5px solid transparent;
border-right: 5px solid #3b3b3b;
}
#rl-menu ul li:first-child a:hover:after {
border-bottom-color: #3b5998;
}
#rl-menu ul ul li:first-child a:hover:after {
border-right-color: #0299d3;
border-bottom-color: transparent;
}
#rl-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;
}
</style>
<br />
<ul id="rl-menu">
<li><a href="#">Menu 1 ▼</a>
<ul>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
</ul></li>
<li><a href="#">Menu 2 ▼</a>
<ul>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
</ul>
</li>
<li><a href="#">Menu 3 ▼</a>
<ul>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
</ul></li>
<li><a href="#">Menu 4 ▼</a>
<ul>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
</ul></li></ul>
<div style="text-align: right;">
<a href="http://dhecun.blogspot.com/2012/12/membuat-menu-dropdown-jquery.html" target="_blank"><span style="font-size: xx-small;">[ Widget by Dhecun Blog ]</span></a></div>
Keterangan :/*------ CSS3 Drop Down Menu By RL (dhecun.blogspot.com)---------*/
#rl-menu, #rl-menu ul {
margin: 5;
padding: 5;
list-style: none;
}
#rl-menu {
width: 533px;
margin: 5px auto;
border: 1px solid #3b5998;
background-color: #4b67a1;
background-image: -moz-linear-gradient(#3b5998, #3b5998);
background-image: -webkit-gradient(linear, left top, left bottom, from(#3b5998), to(#3b5998));
background-image: -webkit-linear-gradient(#3b5998, #3b5998);
background-image: -o-linear-gradient(#3b5998, #3b5998);
background-image: -ms-linear-gradient(#3b5998, #3b5998);
background-image: linear-gradient(#3b5998, #3b5998);
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow: 0 1px 1px #777;
-webkit-box-shadow: 0 1px 1px #777;
box-shadow: 0 1px 1px #777;
}
#rl-menu:before,
#rl-menu:after {
content: "";
display: table;
}
#rl-menu:after {
clear: both;
}
#rl-menu {
zoom:1;
}
#rl-menu li {
float: left;
border-right: 1px solid #3b5998;
-moz-box-shadow: 1px 0 0 #444;
-webkit-box-shadow: 1px 0 0 #444;
box-shadow: 1px 0 0 #444;
position: relative;
}
#rl-menu a {
float: left;
padding: 5px 5px;
color: white;
text-transform: uppercase;
font: normal 11px Verdana, Helvetica;
text-decoration: none;
text-shadow: 0 1px 0 #000;
}
#rl-menu li:hover > a {
color: white;
}
*html #rl-menu li a:hover { /* IE6 only */
color: #3b5998;
}
#rl-menu ul {
margin: 5px 0 0 0;
_margin: 0; /*IE6 only*/
opacity: 0;
visibility: hidden;
position: absolute;
top: 38px;
left: 0;
z-index: 9999;
background: #444;
background: -moz-linear-gradient(#444, #111);
background: -webkit-gradient(linear,left bottom,left top,color-stop(0, #111),color-stop(1, #444));
background: -webkit-linear-gradient(#444, #111);
background: -o-linear-gradient(#444, #111);
background: -ms-linear-gradient(#444, #111);
background: linear-gradient(#444, #111);
-moz-box-shadow: 0 -1px rgba(255,255,255,.3);
-webkit-box-shadow: 0 -1px 0 rgba(255,255,255,.3);
box-shadow: 0 -1px 0 rgba(255,255,255,.3);
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-webkit-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
-ms-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
}
#rl-menu li:hover > ul {
opacity: 1;
visibility: visible;
margin: 0;
}
#rl-menu ul ul {
top: 0;
left: 150px;
margin: 0 0 0 5px;
_margin: 0; /*IE6 only*/
-moz-box-shadow: -1px 0 0 rgba(255,255,255,.3);
-webkit-box-shadow: -1px 0 0 rgba(255,255,255,.3);
box-shadow: -1px 0 0 rgba(255,255,255,.3);
}
#rl-menu ul li {
float: none;
display: block;
border: 0;
_line-height: 0; /*IE6 only*/
-moz-box-shadow: 0 1px 0 #111, 0 2px 0 #666;
-webkit-box-shadow: 0 1px 0 #111, 0 2px 0 #666;
box-shadow: 0 1px 0 #111, 0 2px 0 #666;
}
#rl-menu ul li:last-child {
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}
#rl-menu ul a {
padding: 5px;
width: 400px;
_height: 10px; /*IE6 only*/
display: block;
white-space: nowrap;
float: none;
text-transform: none;
}
#rl-menu ul a:hover {
background-color: #0186ba;
background-image: -moz-linear-gradient(#3b5998, #0186ba);
background-image: -webkit-gradient(linear, left top, left bottom, from(#3b5998), to(#0186ba));
background-image: -webkit-linear-gradient(#3b5998, #0186ba);
background-image: -o-linear-gradient(#3b5998, #0186ba);
background-image: -ms-linear-gradient(#3b5998, #0186ba);
background-image: linear-gradient(#3b5998, #0186ba);
}
#rl-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;
}
#rl-menu ul li:first-child > a:after {
content: '';
position: absolute;
left: 40px;
top: -5px;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid #444;
}
#rl-menu ul ul li:first-child a:after {
left: -5px;
top: 0%;
margin-top: -5px;
border-left: 0;
border-bottom: 5px solid transparent;
border-top: 5px solid transparent;
border-right: 5px solid #3b3b3b;
}
#rl-menu ul li:first-child a:hover:after {
border-bottom-color: #3b5998;
}
#rl-menu ul ul li:first-child a:hover:after {
border-right-color: #0299d3;
border-bottom-color: transparent;
}
#rl-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;
}
</style>
<br />
<ul id="rl-menu">
<li><a href="#">Menu 1 ▼</a>
<ul>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
</ul></li>
<li><a href="#">Menu 2 ▼</a>
<ul>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
</ul>
</li>
<li><a href="#">Menu 3 ▼</a>
<ul>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
</ul></li>
<li><a href="#">Menu 4 ▼</a>
<ul>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
<li><a href="http://alamatlinkanda">► Teks anda</a></li>
</ul></li></ul>
<div style="text-align: right;">
<a href="http://dhecun.blogspot.com/2012/12/membuat-menu-dropdown-jquery.html" target="_blank"><span style="font-size: xx-small;">[ Widget by Dhecun Blog ]</span></a></div>
Ganti tulisan warna merah , biru , pink dengan teks sesuai keinginan anda.
Semoga bermanfaat...!!!
|
Ditulis oleh : Dhecun Blog
Judul : Membuat Menu Dropdown JQuery Berlangganan artikel Komentari artikel ini...!!! |
Silahkan Copy Paste artikel ini tapi jangan lupa untuk mencantumkan link sumber aslinya. Terima kasih.