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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjEZTleB42NEujMCWZep2kOwKuImtbOTCQ6nfQGFHTYvMn0-ysjZuDzTjGfsRc-aXABc7Xy2GYmaxPMlEQeS8EMJqC9VDXz_4z9tSafpI6eqjQjOv4m3OLJ5PqccwOEbJnwvJ6fhkxzq8/s1600/garage5.jpg" />
<div class="mouse">
<img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzrZOeirWxQHP486Vqhd1ezc130mHkPcJPzJevVzLFvVJjRC0s_RlNUzOG-s2y7qaTKBpR4OWUmTgxzYJQGzBUq0boNHwwSsLRIr-GTpq5WkKoy8iVD8mWv_CucRvwqWMG1WTzfVAn4Pw/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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDphQibEP0QfN2hSve0pYoRdIiHz9dwplj12XL85025JXscBbacaRJ3KwGzTOX9LaVzw9ywZfn9jhOgcjB81GGoAvVFd2M4lfZaw851FKs4qWAKmEDAra2dx_0DP75ct4wiAFce-eNoxc/s1600/garage2.jpg" />
<div class="mouse">
<img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzrZOeirWxQHP486Vqhd1ezc130mHkPcJPzJevVzLFvVJjRC0s_RlNUzOG-s2y7qaTKBpR4OWUmTgxzYJQGzBUq0boNHwwSsLRIr-GTpq5WkKoy8iVD8mWv_CucRvwqWMG1WTzfVAn4Pw/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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRJbRGbk5BWlglP4mLJ_G12pM7bKdykZVToh050NecjJ74YwRR3yXjuCCenaXxqAzQiab3PxczhCkOe25JoFkposdJBrx7FiaCVjPfnV4Adirwd6ciGpWm7pgvFQ1M2dFo-p1N-WQePFQ/s1600/garage3.jpg" />
<div class="mouse">
<img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzrZOeirWxQHP486Vqhd1ezc130mHkPcJPzJevVzLFvVJjRC0s_RlNUzOG-s2y7qaTKBpR4OWUmTgxzYJQGzBUq0boNHwwSsLRIr-GTpq5WkKoy8iVD8mWv_CucRvwqWMG1WTzfVAn4Pw/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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd0tor3LsPQNNIeaM9Wz6K57OvaBIr4YeTfqsQxfeBnStyMIHq4OxZ4YBysrv1AZhkcx2CeTYqTO3p3TPTeOZLJlT7wT7oF0kFRja48JXncfwo5xjvVG-qdUcD6gje-HCPlpLn_jH1Q-I/s1600/garage4.jpg" /></div>
<div class="mouse" style="text-align: center;">
<img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzrZOeirWxQHP486Vqhd1ezc130mHkPcJPzJevVzLFvVJjRC0s_RlNUzOG-s2y7qaTKBpR4OWUmTgxzYJQGzBUq0boNHwwSsLRIr-GTpq5WkKoy8iVD8mWv_CucRvwqWMG1WTzfVAn4Pw/s1600/nothing.gif" /></div>

</div>
</div>

No comments:

Post a Comment