Membuat menu navigasi | Garagedoor with jQuery

Cara membuat menu navigasi Garagedoor with jQuery ini sangat simple,n keren klo menurut saya...sobat bisa lihat demo menu navigasi yang saya dapat diSINI

langsung aja,cekidot :

1. Login blogger
2. Rancangan, Edit Html, Cari kode ]]></b:skin>
3. Dan Simpan kode berikut diatasnya :
/* ---------------
Menu navigasi Garagedor with jQuery
---------------------------------- */
.garagedoor a:active, .under_header a:active, .header a:focus, .under_header a:focus {
    outline: none; -moz-outline-style: none;
}

.garagedoor img {
    border: 0px; display: block;  
}

.item .mouse {
    height: 80px;
    width: 100px;
  
    margin:0;padding:0;border:0;display:block;left:0;position:absolute;cursor:pointer;top:0;
}

.item .mouse img {
    height: 80px;
    width: 100px;
  
    margin:0;padding:0;
}

.item {
    height: 80px;
    width: 100px;
    color: black;
  
    overflow:hidden;display:block;overflow:hidden;position:relative;margin:0;padding:0;float:left;background-repeat:no-repeat;text-decoration: none;
}

.item .underlay {
    padding: 10px;
    padding-top: 30px;
    color: #000;
    background: #fff;
        height: 80px;
    position:absolute;left:0px;top:0px;
}

.item .overlay {
    height: 80px;
    width: 100px;
  
    margin:0;padding:0;border:0;left:0;position:absolute;top:0;
}

Selanjutnya simpan script berikut diatas kode </head>:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script src="http://kangdadang.googlecode.com/files/garagedoorjQuery.js" type="text/javascript"></script>

dan simpan juga script ini diatas kode </body> :
<script type='text/javascript'>
GarageDoor.scrollY = -55;
GarageDoor.setBindings(&#39;garagedoor&#39;);
</script>

Cara pemanggilannya pada HTML:
<div class="garagedoor" id="garagedoor">
<div style="text-align: center;">

</div>
<div class="item" style="text-align: center;" title="#">
<div class="underlay">
Read my blog entries</div>
<img alt="" class="overlay" src="https://lh6.googleusercontent.com/-m6EuedOOcJM/TYlSeIJomGI/AAAAAAAAAbQ/ZymFTJcSQa4/s1600/garage5.jpg" />
<div class="mouse">
<img alt="" src="https://lh4.googleusercontent.com/-YoN-FUopgio/TYlSfp_s--I/AAAAAAAAAbU/nPVdBabh8vc/s1600/nothing.gif" /></div>
</div>
<div class="item" style="text-align: center;" title="#">

<div class="underlay">
information about me</div>
<img alt="" class="overlay" src="https://lh5.googleusercontent.com/-o9X6RHQq9Ks/TYlSZAtHXsI/AAAAAAAAAbE/j5Zen-U_rxw/s1600/garage2.jpg" />
<div class="mouse">
<img alt="" src="https://lh4.googleusercontent.com/-YoN-FUopgio/TYlSfp_s--I/AAAAAAAAAbU/nPVdBabh8vc/s1600/nothing.gif" /></div>
</div>
<div class="item" style="text-align: center;" title="#">
<div class="underlay">
People that rock</div>
<img alt="" class="overlay" src="https://lh3.googleusercontent.com/-CuKaMes0mcc/TYlSbAepSMI/AAAAAAAAAbI/KQ--16DD5_s/s1600/garage3.jpg" />
<div class="mouse">
<img alt="" src="https://lh4.googleusercontent.com/-YoN-FUopgio/TYlSfp_s--I/AAAAAAAAAbU/nPVdBabh8vc/s1600/nothing.gif" /></div>
</div>
<div class="item" title="#">
<div class="underlay" style="text-align: center;">
Send me a message.</div>
<div style="text-align: center;">
<img alt="" class="overlay" src="https://lh4.googleusercontent.com/-cRX-Z0N_11s/TYlScsK4X-I/AAAAAAAAAbM/N4lXBH3DPiY/s1600/garage4.jpg" /></div>
<div class="mouse" style="text-align: center;">
<img alt="" src="https://lh4.googleusercontent.com/-YoN-FUopgio/TYlSfp_s--I/AAAAAAAAAbU/nPVdBabh8vc/s1600/nothing.gif" /></div>

</div>
</div>

No comments:

Post a Comment