Tutorial Auto Navbar
Posted on Wednesday, May 11, 2011| ✎ 0 Awesome
anis x mau byk tulis and ckp!! so ikut je tuto ni k!! sape2 nk cube :))



1. go to design > page elements > add a gadget > html/javascript .

2 . then copy code ni .

<!-- DROPDOWN NAVBAR -->
<!-- stylesheet for FF2, Op9, IE7 (strict mode) -->
<style type="text/css">
#navbar {
display:inline;
width:100%;
position:absolute;
background-color:transparent;
top:-30px;
left:0px;
height:60px;
z-index:999999;
}
#navbar:hover{
top:0px;
height:30px;
}
</style>
<!-- stylesheet for IE6 and lower -->
<!-- (not supporting element:hover) -->
<!-- first, unhide the navbar through css -->
<!-- second, hide the navbar and mimic -->
<!-- the effect with javascript, if available -->
<!--[if lt IE 7]>
<style type="text/css">
#navbar {
height:30px;
top:0px;
}
</style>
<script type="text/javascript">
var navbar = document.getElementById('navbar');
if(navbar){
navbar.onmouseover = function(){
navbar.style.top = '0px';
navbar.style.height = '30px';
}
navbar.onmouseout = function(){
navbar.style.top = '-30px';
navbar.style.height = '60px';
}
if (navbar.captureEvents){
navbar.captureEvents(Event.MOUSEOVER);
navbar.captureEvents(Event.MOUSEOUT);
}
navbar.onmouseout();
}
</script>
<![endif]-->
<!-- end dropdown navbar -->

. pastu , paste kan code yang di-copy tadi kat html/javascript . then , siap !








« Newer Posts | Older Post »
I'm Girl
Assalamualaikum:)
My name Anis for short :) My age is 12 years old! UPSR IS COMING @_@ just follow me if you like this blog and i will follow back :D
|
Facebook


My Heart♥
Creadit
Please notice me! if i not credit your stuff :)
Designer : Anis Maisarah
Background : Una
Header : Iyra
Doodle : Apple
Best View : Google Chrome