membuat menu jQuery Fancy Apple style

Membuat menu jQuery Fancy Apple style


contoh menu jQuery Fancy Apple style disini


* Login ke blogger
* Pilih Rancangn masuk ke Edit Html
* Cari kode <head>
* Pastekan kode dibawah ini diatas atau sebelum kode <head>


<link charset='utf-8' href='https://sites.google.com/site/jayanaktkj/fancyapple/style.css' rel='stylesheet' type='text/css'/>
<script type='text/javascript'>
var _gaq = _gaq || [];
_gaq.push([&#39;_setAccount&#39;, &#39;UA-7243260-2&#39;]);
_gaq.push([&#39;_trackPageview&#39;]);
(function() {
var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;
ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;
var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);
})();

</script>

<script src='http://www.tympanus.net/Tutorials/FancyAppleStyleNavigation/jquery-1.3.2.js' type='text/javascript'/>
<script type='text/javascript'>
$(function() {
var d=1000;
$(&#39;#menu span&#39;).each(function(){
$(this).stop().animate({
&#39;top&#39;:&#39;-17px&#39;
},d+=250);
});


$(&#39;#menu &gt; li&#39;).hover(
function () {
var $this = $(this);
$(&#39;a&#39;,$this).addClass(&#39;hover&#39;);
$(&#39;span&#39;,$this).stop().animate({&#39;top&#39;:&#39;40px&#39;},300).css({&#39;zIndex&#39;:&#39;10&#39;});
},
function () {
var $this = $(this);
$(&#39;a&#39;,$this).removeClass(&#39;hover&#39;);
$(&#39;span&#39;,$this).stop().animate({&#39;top&#39;:&#39;-17px&#39;},800).css({&#39;zIndex&#39;:&#39;-1&#39;});
}
);
});
</script>


* Terakhir cari kode <body> dan pastekan kode dibawah ini diatas atau sebelum kode <body>

<div class='title'/>
<div class='navigation'>
<ul class='menu' id='menu'>
<li><span class='ipod'/><a class='first' href='alamat url'>Beranda</a></li>
<li><span class='video_camera'/><a href='alamat url'>Tentang</a></li>


<li><span class='television'/><a href='alamat url'>Cari</a></li>
<li><span class='monitor'/><a href='alamat url'>Foto</a></li>
<li><span class='toolbox'/><a href='alamat url'>Rss Feed</a></li>
<li><span class='telephone'/><a href='alamat url'>Podcasts</a></li>
<li><span class='print'/><a class='last' href='alamat url'>Kontak</a></li>
</ul>


</div>


* Ganti alamat url dengan alamat url kalian masing masing dan terakhir simpan dan lihat hasilnya

Sumber dan Contoh http://tympanus.net/

0 komentar:

Posting Komentar

 
Copyright © danisatya-st