/*lavalamp fancy menu start*/ .lavalamp { position: relative; border: 1px solid #d6d6d6; background: #fff; padding: 15px; -webkit-box-shadow: 0 3px 6px rgba(0,0,0,.25); -moz-box-shadow: 0 3px 6px rgba(0,0,0,.25); border-radius : 10px; -moz-border-radius : 10px; -webkit-border-radius : 10px; background : -webkit-gradient(linear, left top, left bottom,
from(rgb(240,240,240)), to(rgb(204,204,204))); background : -moz-gradient(linear, left top, left bottom,
from(rgb(240,240,240)), to(rgb(204,204,204))); height: 18px; font-family: calibri; } .magenta { background : rgb(190,64,120); background : -webkit-gradient(linear, left top, left bottom,
from(rgb(190,64,120)), to(rgb(177,24,91))); background : -moz-gradient(linear, left top, left bottom,
from(rgb(190,64,120)), to(rgb(177,24,91))); border: 1px solid #841144; } .cyan { background : rgb(64,181,197); background : -webkit-gradient(linear, left top, left bottom,
from(rgb(64,181,197)), to(rgb(7,165,187))); background : -moz-gradient(linear, left top, left bottom,
from(rgb(64,181,197)), to(rgb(7,165,187))); border: 1px solid #2f8893; } .yellow { background : rgb(255,199,79); background : -webkit-gradient(linear, left top, left bottom,
from(rgb(255,199,79)), to(rgb(255,188,43))); background : -moz-gradient(linear, left top, left bottom,
from(rgb(255,199,79)), to(rgb(255,188,43))); border: 1px solid #c08c1f; } .orange { background : rgb(255,133,64); background : -webkit-gradient(linear, left top, left bottom,
from(rgb(255,133,64)), to(rgb(255,107,24))); background : -moz-gradient(linear, left top, left bottom,
from(rgb(255,133,64)), to(rgb(255,107,24))); border: 1px solid #c04f11; } .dark { background : rgb(89,89,89); background : -webkit-gradient(linear, left top, left bottom,
from(rgb(89,89,89)), to(rgb(54,54,54))); background : -moz-gradient(linear, left top, left bottom,
from(rgb(89,89,89)), to(rgb(54,54,54))); border: 1px solid #272727; } .magenta li a , .cyan li a, .yellow li a , .orange li a, .dark li a{ color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.40); } .lavalamp a { text-decoration: none; color: #262626; line-height: 20px; } .lavalamp ul { margin: 0; padding: 0; z-index: 300; position: absolute; } .lavalamp ul li { list-style: none; float:left; text-align: center; } .lavalamp ul li a { padding: 0 20px; text-align: center; } .floatr { position: absolute; top: 10px; z-index: 50; width: 70px; height: 30px; border-radius : 8px; -moz-border-radius : 8px; -webkit-border-radius : 8px; background : rgba(0,0,0,.20); -webkit-transition: all .4s ease-in-out; -moz-transition: all .4s ease-in-out; } /*lavalamp fancy menu End*/
Masukkan kode di bawah ini dan taruh di atas kode ini </ head> <script src=
'http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'
type=
'text/javascript'
/>
<div class=“lavalamp cyan”> | |
<div class=“lavalamp dark”> |
<div class=“lavalamp magenta”> | |
<div class=“lavalamp orange”> | |
<div class=“lavalamp yellow”> |
<
ul
id
=
"nav"
>
| < li >< a href = "http://tandatangangusde.blogspot.com/" >Home</ a ></ li > |
| < li >< a class = "hsubs" href = "#" >Menu 1</ a > |
| < ul class = "subs" > |
| < li >< a href = "#" >Submenu 1</ a ></ li > |
| < li >< a href = "#" >Submenu 2</ a ></ li > |
| < li >< a href = "#" >Submenu 3</ a ></ li > |
| < li >< a href = "#" >Submenu 4</ a ></ li > |
| < li >< a href = "#" >Submenu 5</ a ></ li > |
| </ ul > |
| </ li > |
| < li >< a class = "hsubs" href = "#" >Menu 2</ a > |
| < ul class = "subs" > |
| < li >< a href = "#" >Submenu 2-1</ a ></ li > |
| < li >< a href = "#" >Submenu 2-2</ a ></ li > |
| < li >< a href = "#" >Submenu 2-3</ a ></ li > |
| < li >< a href = "#" >Submenu 2-4</ a ></ li > |
| < li >< a href = "#" >Submenu 2-5</ a ></ li > |
| < li >< a href = "#" >Submenu 2-6</ a ></ li > |
| < li >< a href = "#" >Submenu 2-7</ a ></ li > |
| < li >< a href = "#" >Submenu 2-8</ a ></ li > |
| </ ul > |
| </ li > |
| < li >< a class = "hsubs" href = "#" >Menu 3</ a > |
| < ul class = "subs" > |
| < li >< a href = "#" >Submenu 3-1</ a ></ li > |
| < li >< a href = "#" >Submenu 3-2</ a ></ li > |
| < li >< a href = "#" >Submenu 3-3</ a ></ li > |
| < li >< a href = "#" >Submenu 3-4</ a ></ li > |
| < li >< a href = "#" >Submenu 3-5</ a ></ li > |
| </ ul > |
| </ li > |
| < li >< a href = "#" >Menu 4</ a ></ li > |
| < li >< a href = "#" >Menu 5</ a ></ li > |
| < li >< a href = "#" >Menu 6</ a ></ li > |
|
< li >< a href = "#" >Back</ a ></ li > |
| < div id = "lavalamp" ></ div > |
| </ ul > |
#nav,#nav ul {
| list-style : none outside none ; |
| margin : 0 ; |
| padding : 0 ; |
| } |
| #nav { |
| background : url ( 'menu_bg.png' ) no-repeat scroll 0 0 transparent ; |
| clear : both ; |
| font-size : 12px ; |
| height : 58px ; |
| padding : 0 0 0 9px ; |
| position : relative ; |
| width : 957px ; |
| } |
| #nav ul { |
| background-color : #222 ; |
| border : 1px solid #222 ; |
| border-radius: 0 5px 5px 5px ; |
| border-width : 0 1px 1px ; |
| box-shadow: 0 5px 5px rgba( 0 , 0 , 0 , 0.5 ); |
| left : -9999px ; |
| overflow : hidden ; |
| position : absolute ; |
| top : -9999px ; |
| z-index : 2 ; |
|
| -moz-transform: scaleY( 0 ); |
| -ms-transform: scaleY( 0 ); |
| -o-transform: scaleY( 0 ); |
| -webkit-transform: scaleY( 0 ); |
| transform: scaleY( 0 ); |
|
| -moz-transform-origin: 0 0 ; |
| -ms-transform-origin: 0 0 ; |
| -o-transform-origin: 0 0 ; |
| -webkit-transform-origin: 0 0 ; |
| transform-origin: 0 0 ; |
|
| -moz-transition: -moz-transform 0.1 s linear; |
| -ms-transition: -ms-transform 0.1 s linear; |
| -o-transition: -o-transform 0.1 s linear; |
| -webkit-transition: -webkit-transform 0.1 s linear; |
| transition: transform 0.1 s linear; |
| } |
| #nav li { |
| background : url ( 'menu_line.png' ) no-repeat scroll right 5px transparent ; |
| float : left ; |
| position : relative ; |
| } |
| #nav li a { |
| color : #FFFFFF ; |
| display : block ; |
| float : left ; |
| font-weight : normal ; |
| height : 30px ; |
| padding : 23px 20px 0 ; |
| position : relative ; |
| text-decoration : none ; |
| text-shadow : 1px 1px 1px #000000 ; |
| } |
| #nav li:hover > a { |
| color : #00B4FF ; |
| } |
| #nav li:hover, #nav a:focus, #nav a:hover, #nav a:active { |
| background : none repeat scroll 0 0 #121212 ; |
| outline : 0 none ; |
| } |
| #nav li:hover ul.subs { |
| left : 0 ; |
| top : 53px ; |
| width : 180px ; |
|
| -moz-transform: scaleY( 1 ); |
| -ms-transform: scaleY( 1 ); |
| -o-transform: scaleY( 1 ); |
| -webkit-transform: scaleY( 1 ); |
| transform: scaleY( 1 ); |
| } |
| #nav ul li { |
| background : none ; |
| width : 100% ; |
| } |
| #nav ul li a { |
| float : none ; |
| } |
| #nav ul li:hover > a { |
| background-color : #121212 ; |
| color : #00B4FF ; |
| } |
| #lavalamp { |
background : url ( 'lavalamp.png' ) no-repeat scroll 0 0 transparent ; |
| height : 16px ; |
| left : 13px ; |
| position : absolute ; |
| top : 0px ; |
| width : 64px ; |
|
| -moz-transition: all 300 ms ease; |
| -ms-transition: all 300 ms ease; |
| -o-transition: all 300 ms ease; |
| -webkit-transition: all 300 ms ease; |
| transition: all 300 ms ease; |
| } |
| #lavalamp:hover { |
| -moz-transition-duration: 3000 s; |
| -ms-transition-duration: 3000 s; |
| -o-transition-duration: 3000 s; |
| -webkit-transition-duration: 3000 s; |
| transition-duration: 3000 s; |
| } |
| #nav li:nth-of-type( 1 ):hover ~ #lavalamp { |
| left : 13px ; |
| } |
| #nav li:nth-of-type( 2 ):hover ~ #lavalamp { |
| left : 90px ; |
| } |
| #nav li:nth-of-type( 3 ):hover ~ #lavalamp { |
| left : 170px ; |
| } |
| #nav li:nth-of-type( 4 ):hover ~ #lavalamp { |
| left : 250px ; |
| } |
| #nav li:nth-of-type( 5 ):hover ~ #lavalamp { |
| left : 330px ; |
| } |
| #nav li:nth-of-type( 6 ):hover ~ #lavalamp { |
| left : 410px ; |
| } |
| #nav li:nth-of-type( 7 ):hover ~ #lavalamp { |
| left : 490px ; |
| } |
| #nav li:nth-of-type( 8 ):hover ~ #lavalamp { |
| left : 565px ; |
| } |