Hallo sobat sobat blogger , sebelumnya Dhecun Blog telah membuat trik blogger yang berjudul Cara Membuat Gambar Bergetar Otomatis Di Blog , nah pada trik blogger kali ini saya ingin berbagi trik Cara Membuat Menu Sidebar Melayang dengan Efek Jquery yang Keren.
Untuk contoh Menu Sidebar Melayang Jquery silahkan klik disini.
Bagaimana keren kan sob...?
Ayo pasang di blog anda sekarang juga jangan sampai ketinggalan hehehe :)
Jika anda tertarik untuk memasangnya , silahkan ikuti langkah berikut ini :
1. Login ke akun Blogger anda
2. Pilih Template
3. Pilih Edit HTML
4. Centang Expand Template Widget
5. Tekan tombol Ctrl+F
6. Cari kode ]]></b:skin>
7. Masukkan script dibawah ini tepat diatas kode ]]></b:skin>
/* Starts Menu Sideabr Jquery melayang by dhecun.blogspot.com Starts*/
ul#navigation {
position:fixed;
margin: 0px;
padding: 0px;
top: 55px;
left: 0px;
list-style: none;
z-index:9999;
}
ul#navigation li {
width: 100px;
}
ul#navigation li a {
display: block;
margin-left: -2px;
width: 100px;
height: 50px;
background-color: #ffffff;
background-repeat:no-repeat;
background-position:center center;
border:1px solid #fff;
-moz-border-radius:0px 10px 10px 0px;
-webkit-border-bottom-right-radius: 10px;
-webkit-border-top-right-radius: 10px;
-khtml-border-bottom-right-radius: 10px;
-khtml-border-top-right-radius: 10px;
-moz-box-shadow: 0px 4px 3px #000;
-webkit-box-shadow: 0px 4px 3px #000;
opacity: 0.9;
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=90);
}
ul#navigation .home a{
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUMQkF9ueC2PuwxdfBb1h4x0pEDlRQd3orlOPzJbuARJc2lo9Qvye09Xj2V5NiBb3_387TRkk3lbMC54-PHjMg8houGe7Z_O5pGHHBv5NedAgX4bAuWglU5sZ3djrGthBEGlZN2UWmQ9w/s1600/home.png);
}
ul#navigation .about a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdvhfWtH6VU9h70S4vjgH94lDsmmGKPWQqnevqqHrzjypZZgf1F97_KW9TMJiTpAC0-O8-5UXM2oP6PdkxL589KjrZgKrq8JbWdvV12RI8fTBRVmgu8m3TNYdWLNhqbNpEymMGC0p6kAQ/s1600/konco.png);
}
ul#navigation .rss a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPCoMmRqcdE4KCB0XEP9zdJNItiJuH5UCNoNIH1RRaTx47XKWOuNB5Seyw-C5-E0B9eaXqN2vSPgo-bY7u3hluvdBNgkg2d8ck3qgG789NOxc8poFb8qJIu5FcPMXhX8yIlbmrCRTfTvk/s1600/rss.png);
}
ul#navigation .mail a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFdWGcGyFsi9KUiDAmMSutnBaANyeV1NicIWo6NhDbVBOSumGaTzCz8PszMdZ-IyDe58K0YmLanCyY3xZJqP9-hWIrBOxclXb7zYob_rXL92J8W0w6ctudQ9Qu2DXWNBscGF1KGqcIuD8/s1600/mail_receive.png);
}
ul#navigation .facebook a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioZT5M1TvxAcj3vWewzwbNr0QWFplZ2hO5CucHHWNasmT16RpcoEZoIr0RnWckdeAckpKIvcpjExfWHFgtP47bHGY80pN2NauxfYJY7zAduPMNGanh1MnfYxvylAjaGZEKNOcp_X4SiCI/s1600/about.png);
}
ul#navigation .twitter a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIVgFTBWEckaxf4cdt_Jpm_4eMOREgg7YliacVDUM85BaCIDyH84AA1WaLrim54dNHzkXx2XFOMNOhSTqkOL6NfD13HM4z5Z8KtN50jZv05Ke3P7mYzcM4lGp6JYBu2Qx4VG4oGAb9L5k/s1600/twitter.jpg);
}
ul#navigation .youtube a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvdcG5Ep91NlHfDhUX7mualqCEzJKKctc5B8ilva7IxG6fEKt1lWgSncZ7kGvqsCrnr1B3_l7Zx4ztkc04y7qU6jWG8xahoEXTb4U_VQoTu3D5CSNq5sJVCC8aLYg_zl-d0ULiL90aRoA/s1600/You+Tube.png);
}
ul#navigation .googleplus a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXuagE8NckhkCqQxIfaC82F6f_IZcW4cjBzuy_QHctQ_pgqLNVLDhhaES7JHZjGxTmWc3LQoZN-IwNTdcjuuCSuC8t6FDhCAQOU6fFMl-0_ytZRqQsMO04ig14lIp1a2_TJs5fk7hCmSU/s1600/google+plus+circle.jpeg);
}
ul#navigation .yahoo a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhevT8LiFbnp5VU9KThkuzsZsy4Hp6ztf4ZMKumLr0HxfEPxwpHsWhROwQk9PF2foZS54llgkopVdaWaNKwQFWum7PfLb5D8bgLtsnfXa2IQ-p7weO0h5Ov5-g1FlP3vDzUcNf6uMJG3xc/s1600/yahoo+icon.jpg);
}
/* End Menu Sideabr Jquery melayang by dhecun.blogspot.com End*/
8. Kemudian cari kode </body>ul#navigation {
position:fixed;
margin: 0px;
padding: 0px;
top: 55px;
left: 0px;
list-style: none;
z-index:9999;
}
ul#navigation li {
width: 100px;
}
ul#navigation li a {
display: block;
margin-left: -2px;
width: 100px;
height: 50px;
background-color: #ffffff;
background-repeat:no-repeat;
background-position:center center;
border:1px solid #fff;
-moz-border-radius:0px 10px 10px 0px;
-webkit-border-bottom-right-radius: 10px;
-webkit-border-top-right-radius: 10px;
-khtml-border-bottom-right-radius: 10px;
-khtml-border-top-right-radius: 10px;
-moz-box-shadow: 0px 4px 3px #000;
-webkit-box-shadow: 0px 4px 3px #000;
opacity: 0.9;
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=90);
}
ul#navigation .home a{
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUMQkF9ueC2PuwxdfBb1h4x0pEDlRQd3orlOPzJbuARJc2lo9Qvye09Xj2V5NiBb3_387TRkk3lbMC54-PHjMg8houGe7Z_O5pGHHBv5NedAgX4bAuWglU5sZ3djrGthBEGlZN2UWmQ9w/s1600/home.png);
}
ul#navigation .about a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdvhfWtH6VU9h70S4vjgH94lDsmmGKPWQqnevqqHrzjypZZgf1F97_KW9TMJiTpAC0-O8-5UXM2oP6PdkxL589KjrZgKrq8JbWdvV12RI8fTBRVmgu8m3TNYdWLNhqbNpEymMGC0p6kAQ/s1600/konco.png);
}
ul#navigation .rss a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPCoMmRqcdE4KCB0XEP9zdJNItiJuH5UCNoNIH1RRaTx47XKWOuNB5Seyw-C5-E0B9eaXqN2vSPgo-bY7u3hluvdBNgkg2d8ck3qgG789NOxc8poFb8qJIu5FcPMXhX8yIlbmrCRTfTvk/s1600/rss.png);
}
ul#navigation .mail a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFdWGcGyFsi9KUiDAmMSutnBaANyeV1NicIWo6NhDbVBOSumGaTzCz8PszMdZ-IyDe58K0YmLanCyY3xZJqP9-hWIrBOxclXb7zYob_rXL92J8W0w6ctudQ9Qu2DXWNBscGF1KGqcIuD8/s1600/mail_receive.png);
}
ul#navigation .facebook a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioZT5M1TvxAcj3vWewzwbNr0QWFplZ2hO5CucHHWNasmT16RpcoEZoIr0RnWckdeAckpKIvcpjExfWHFgtP47bHGY80pN2NauxfYJY7zAduPMNGanh1MnfYxvylAjaGZEKNOcp_X4SiCI/s1600/about.png);
}
ul#navigation .twitter a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIVgFTBWEckaxf4cdt_Jpm_4eMOREgg7YliacVDUM85BaCIDyH84AA1WaLrim54dNHzkXx2XFOMNOhSTqkOL6NfD13HM4z5Z8KtN50jZv05Ke3P7mYzcM4lGp6JYBu2Qx4VG4oGAb9L5k/s1600/twitter.jpg);
}
ul#navigation .youtube a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvdcG5Ep91NlHfDhUX7mualqCEzJKKctc5B8ilva7IxG6fEKt1lWgSncZ7kGvqsCrnr1B3_l7Zx4ztkc04y7qU6jWG8xahoEXTb4U_VQoTu3D5CSNq5sJVCC8aLYg_zl-d0ULiL90aRoA/s1600/You+Tube.png);
}
ul#navigation .googleplus a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXuagE8NckhkCqQxIfaC82F6f_IZcW4cjBzuy_QHctQ_pgqLNVLDhhaES7JHZjGxTmWc3LQoZN-IwNTdcjuuCSuC8t6FDhCAQOU6fFMl-0_ytZRqQsMO04ig14lIp1a2_TJs5fk7hCmSU/s1600/google+plus+circle.jpeg);
}
ul#navigation .yahoo a {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhevT8LiFbnp5VU9KThkuzsZsy4Hp6ztf4ZMKumLr0HxfEPxwpHsWhROwQk9PF2foZS54llgkopVdaWaNKwQFWum7PfLb5D8bgLtsnfXa2IQ-p7weO0h5Ov5-g1FlP3vDzUcNf6uMJG3xc/s1600/yahoo+icon.jpg);
}
/* End Menu Sideabr Jquery melayang by dhecun.blogspot.com End*/
9. Masukkan script dibawah ini tepat diatas kode </body>
<script src='http://x-gen.googlecode.com/files/x-gen-jquery.js' type='text/javascript'/> <script type='text/javascript'> $(function() { $('#navigation a').stop().animate({'marginLeft':'-85px'},1000); $('#navigation > li').hover( function () { $('a',$(this)).stop().animate({'marginLeft':'-2px'},200); }, function () { $('a',$(this)).stop().animate({'marginLeft':'-85px'},200); } ); }); </script>10. Klik simpan template
11. Selanjutnya pilih Tata Letak >> Tambah Gadget >> HTML/JavaScript
12. Masukkan script dibawah ini
13. Klik simpan
<div class='header'></div>
<div class='scroll'></div>
<ul id='navigation'>
<li class='home'><a href='http://dhecun.blogspot.com/' title='Home'></a></li>
<li class='about'><a href='http://dhecun.blogspot.com/' target='_blank' title='About us'></a></li>
<li class='rss'><a href='http://feeds.feedburner.com/' target='_blank' title='Rss feed'></a></li>
<li class='mail'><a href='http://mail.google.com/' target='_blank' title='Contact Me'></a></li>
<li class='facebook'><a href='http://www.facebook.com/dhecun.blog/' target='_blank' title='Add Me on facebook'></a></li>
<li class='twitter'><a href='http://twitter.com/' target='_blank' title='Follow us on twitter'></a></li>
<li class='youtube '><a href='http://youtube.com/' target='_blank' title='Follow Me on Youtube'></a></li>
<li class='googleplus '><a href='https://gplus.to/' target='_blank' title='Follow Me on google plus'></a></li>
<li class='yahoo'><a href='http://yahoo.com/' target='_blank' title='YM With Me'></a></li>
</ul>
<div style="text-align: center;">
<a href="http://dhecun.blogspot.com/2012/11/membuat-menu-sidebar-melayang-dengan.html" target="_blank"><span style="font-size: xx-small;">[ Get Widget ]</span></a></div>
Catatan :Ganti tulisan yang berwarna merah dengan URL anda , tulisan yang berwarna biru ganti dengan teks sesuai keinginan anda.
Semoga bermanfaat...!!!
|
|
Silahkan Copy Paste artikel ini tapi jangan lupa untuk mencantumkan link sumber aslinya. Terima kasih.