4.25.2013

Membuat buku tamu Panel Slide Vertikal jquery

Membuat buku tamu Panel Slide Vertikal jquery, dengan ini akan memudahkan kita untuk saling sapa dengan para bloger lainya. Memang kita di susahkan dengan berbagai macam cara yang unik untuk menampilkan buku tamu itu sendiri. Nah, sekarang ini gue akan buat artikel tentang cara membuat Buku Tamu Slide Vertikal Dengan Jquery yang akan tampil jika  diKlik.

Contoh hasil bisa Anda lihat seperti disamping ini :

Caranya membuatnya sebagai berikut :
Login di blogger Anda
    * Masuk ke Dasbor
    * Pilih Tata Letak / Rancangan Dan Edit HTML
    * Klik "Expand Template Widget"
    * Jangan lupa untuk memback-up template anda terlebih dahulu :

1. Cari code : ]]></skin>
Sisipkan code berikut di Atas-nya :
   
.panel2{
position:fixed;
top:20px;right:0;
background:#000;
-moz-border-radius-topleft:10px;
-webkit-border-top-left-radius:10px;
-moz-border-radius-bottomleft:10px;
-webkit-border-bottom-left-radius:10px;
border:1px solid #940000;
width:350px;height:350;
filter:alpha(opacity=85);
-moz-opacity:0.85;
opacity:0.85;display:none;
padding:10px 60px 10px 30px}

.panel2 p{
color:#ffffff;
margin:0 15px 0 0;
padding:0}

.panel2 a,.panel2  a:visited{
color:#940000;
text-decoration:none;
border-bottom:1px solid  #9FC54E;
margin:0;padding:0}

.panel2 a:hover,.panel2  a:visited:hover{
color:#fff;
text-decoration:none;
border-bottom:1px solid #fff;
margin:0;padding:0}
     
a.trigger2{
position:fixed;
text-decoration:none;
top:50px;right:0;
font-size:16px;
letter-spacing:-1px;
font-family:verdana,helvetica, arial,sans-serif;color:#fff;
font-weight:700;
background:#333 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbq04v-t4UR6nHR9beVgZxZJ2NUR0j0RsZIzb5BmythZh24V7KDLOJmYDLK_sF2AbdfDt1YyRRCZ0B-30ZD0ukR4jYAA_z6GR7zcu_StMdLbEc7jAIA3hIOjQkhh1bJ4fR9_IRRCqJUD4/)85% 55% no-repeat;
border:2px solid #940000;
-moz-border-radius-topleft:10px;
-webkit-border-top-left-radius:10px;
-moz-border-radius-bottomleft:10px;
-webkit-border-bottom-left-radius:10px;
-moz-border-radius-bottomright:0;
-webkit-border-bottom-right-radius:0;
display:block;padding:10px 35px 10px 10px}
     
a.trigger2:hover{
position:fixed;
text-decoration:none;
top:50px;right:0;
font-size:16px;
letter-spacing:-1px;
font-family:verdana,helvetica, arial,sans-serif;color:#fff;
font-weight:700;background:#222 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-F4mxbbkeJsz6XhO1OQo07i8aL0a4jkeQJfyDirOdcunJX5IK6cxabnLhEo1Vg7Smdo7qeGHtLjWpASPgC93kJOCPkiZR47EOjVupredvv4ZKesRI77DWUgd0MT59SaBY6CkP0BawAz0/) 85% 55% no-repeat;
border2px solid #940000;
-moz-border-radius-topleft:10px;
-webkit-border-top-left-radius:10px;
-moz-border-radius-bottomleft:10px;
-webkit-border-bottom-left-radius:10px;
-moz-border-radius-bottomright:0;
-webkit-border-bottom-right-radius:0;
display:block;padding:10px 40px 10px 10px}

a.active.trigger2{
background:#222 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-F4mxbbkeJsz6XhO1OQo07i8aL0a4jkeQJfyDirOdcunJX5IK6cxabnLhEo1Vg7Smdo7qeGHtLjWpASPgC93kJOCPkiZR47EOjVupredvv4ZKesRI77DWUgd0MT59SaBY6CkP0BawAz0/)85% 55% no-repeat}
.columns2{clear:both;width:330px;line-height:22px;padding:0 0 0 20px}

a:focus{outline:none}
.panel2  img{
background-color:#262626;
border:1px solid #333;
float:left;margin:3px 3px 6px 8px;
padding:5px}

.panel2 h3{
border-bottom:1px solid silver;
margin-bottom:5px;
padding-bottom:3px;
text-align:left;
clear:both;color:#FFF;
font-size:12px;
font-weight:700}
2. Cari code : </head>
Sisipkan code berikut di Atas nya :
<script  src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js' type='text/javascript'/>
<script  type='text/javascript'>
$(document).ready(function(){
$(&quot;.triger2&quot;).click(function(){
$(&quot;.panel2&quot;).toggle(&quot;fast&quot;);
$(this).toggleClass(&quot;active&quot;);
return  false;
});
});
</script>

3.  Selanjutnya cari code :  </body>
 Dan masukan code berikut di Atas-nya juga :
<div  class='panel2'>
<h3>Buku  Tamu</h3>
<=  Isikan dengan Buku Tamu Anda =>
</div>
<a  class='triger' href='#'>SHOUT</a>
. Warna yang di block hijau, bisa anda ganti Alamat Buku Tamu ( shout box ) milik anda.
. Selamat mencoba, dan semoga berhasil . . .

0 komentar:

Menu Sidebar Melayang

Trik Cara Membuat Menu Sidebar Melayang dengan Efek Jquery, untuk Conoth bisa di lihat tampilan scrensot blog Postingan ini.

Membuat Menu Sidebar Melayang dengan Efek Jquery Keren
1. Masuk ke dashboard blogger > Klik Rancangan Template > Klik Edit HTML
2. Cari Kode ]]></b:skin> agar lebih mudah gunakan CTRL+F, lalu letakkan atau pastekan kode berikut tepat diatas kode ]]></b:skin>



/* Starts Menu Sideabr Jquery melayang by mazzpuji.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/AVvXsEjNvRCDmW7V6PEP5a7bWxStK7zMkMnFNJv0SmdOYbZDKmjRv8m1IeqS60zDviC5WOJdGqiktisaxM9_M1Tysrde-6ozfCMOWjF7KuCLknXVcFoxRDdi5RfLrUfcbyjrpYQG7BoyX3mszoY/s1600/home.png);
}
ul#navigation .about a      {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_i4f1gS8Zm8klyCkV6RvgzQ7J7xan-21bYSHLWUeN9_NFVUbME125POp8hUOSbeaQRck-g_lQNakO5DE2WzmbWGR6jeiULwqz5b9WaxZL7qDMRPIWIa1sJ4k3b9R94vwJw-EDdrgKkqE/s1600/konco.png);
}
ul#navigation .rss a      {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtcd3iGEbI7l0TwiYMK4h8jSWnLqLiwAavjnz2Y0uhIXLR5ITMOkYDT7_bAtmmdztlDSTb_2CKorOT6R9jkfpVDR1jwU7NHD4hEOD5uSPes-KDxSo6aDrO5tYPs1QCI6wvZr4btrUyckc/s1600/rss.png);
}
ul#navigation .mail a      {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-hSDwdwX2lvRhqv8UU_VNLbwRN1heTghKlMp29dmnk_UgHt1PC43d-zIqb-1gHpNNxlR1VZNWpWv16mFJmE2cNaQgcy9SIeZP2Vv1FHk1P72Hb-9WTZsTdT27NvAzriSVdiP48OwH_Uw/s1600/mail_receive.png);
}
ul#navigation .facebook a   {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-FGSXuHMWJVc0dbdPAxR6oDnKKISV3VAHYmWTU0FVoNbE9MwSWlR5KnRi59wG1JD9LH78A4K8ETj-CmO0jqxDCIj1xTFpWgdKa4HWJbP8UA-sPdnvK6yTQUaB0893x7gLO9wW_vjiU2I/s1600/about.png);
}
ul#navigation .twitter a     {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtDISwv6qgc1ir8SqOGJds01c0j0E0H6klaGowZ4wsbqXjI38LB9Hoe_p2ts0yMinYl_ImE4lO6oJg2UXO_VNXqbp4Eqef-pSVlvUFYYTJ4TDLIhbwihV8A8x3qY5Zx2dovdU5oo_Dm6I/s1600/twitter.jpg);
}
ul#navigation .youtube a    {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU7xtX4jCtecmYEr0pIZMCtERhvF2wX7cCu-_KTt69FbxB_isyDoRfyUSAdKI2n_CN6MEZ1e_KNCxtUTx7C5tM5lzq2UNZrvu9C7FrxqA5FfWenlUISQVt8t4Ol3-JbubJQ5BPLRUi4CA/s1600/You+Tube.png);
}
ul#navigation .googleplus a    {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYK9myjRt1eZnj3xEtjlKJeY4KT3gdbI8A8Fqx2ylCQX3TZQ_2_z38xZJEdEDRNKvsUm-Xc4Nf9Gj5Pb9VjC9-UgalX_UkJIwKeBeaJAK3vJjeI5fT-yTMCjepRDLSqQfnpNr-bXA8fig/s1600/google+plus+circle.jpeg);
}
ul#navigation .yahoo a    {
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnaEXP4MiAnRP1yZgvoy-zmB8An6v2AUpmlTxEs4jRQiDTAImYJhG9ArCGpv4nxyfRMIoPOlpE6I5fR-LEjmH6HwUvLvpqzp1MOWymtOhAKuNtOpJ3z89NATdjAAfvPGOpkvrvhc4RxR0/s1600/yahoo+icon.jpg);
}
/* End Menu Sideabr Jquery melayang by tutorialbelajarblogger.blogspot.com End*/

3. Cari kode </body> agar lebih mudah gunakan CTRL+F, lalu letakkan atau pastekan kode berikut tepat diatas kode </body> tadi

<script src='http://x-gen.googlecode.com/files/x-gen-jquery.js' type='text/javascript'/>
<script type='text/javascript'>
$(function() {
$(&#39;#navigation a&#39;).stop().animate({&#39;marginLeft&#39;:&#39;-85px&#39;},1000);
$(&#39;#navigation &gt; li&#39;).hover(
function () {
$(&#39;a&#39;,$(this)).stop().animate({&#39;marginLeft&#39;:&#39;-2px&#39;},200);
},
function () {
$(&#39;a&#39;,$(this)).stop().animate({&#39;marginLeft&#39;:&#39;-85px&#39;},200);
}
);
});
</script>

4. Klik Simpan Template

5. Selanjutnya klik Rancangan lagi, tepatnya pada Elemen Laman, Tambah Widget / Gadget Baru, pilih HTML / JavaScript, lalu masukkan kode berikut:

<div class='header'></div>
<div class='scroll'></div>
<ul id='navigation'>
<li class='home'><a href='mazzpuji.blogspot.com' title='Home'></a></li>
<li class='about'><a href='mazzpuji.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://fb.com/oktri.darmadi' target='_blank' title='Add Me on facebook'></a></li>
<li class='twitter'><a href='http://twitter.com/oktri.darmadi' 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/xgen' 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>
#Ganti link yang saya beri warna kuning dengan link kamu, Lalu klik simpan

Selesai, sekarang buka blog kamu dan lihat hasilnya, Menu Sidebar dengan Efek Jquery Keren sudah ada diblogmu :)

0 komentar:

Menu Social Button Melayang


Sekedar Berbagi Informasi karena ada teman yang bertanya bagaimana membuat social Button di sebelah kanan pada blog! 
Langsung masuk aja ke tutorial cara membuat social button Melayang, 
  • Buka Template > Edit HTML > Expan Template Widget
  • Cari kode ]]></:bskin>
  • Lalu Paste kan kode di bawah tepat di atas kode ]]></b:skin>
/* social button http://tutorialbelajarblogger.blogspot.com*/
.staticbar {position: fixed;right: 0;top: 35%;width: 25px;animation:static-bar .8s;-moz-animation:static-bar .8s; -webkit-animation:static-bar .8s;}
.staticbar:hover {z-index: 1000;}
.rt-social-buttons a, .loginbtn {background: none repeat scroll 0 0 rgb(34, 34, 34);background-repeat: no-repeat;display: block;height: 20px;margin-bottom: 3px;padding: 4px 0 4px 4px;right: 0px;width: 140px;position: relative;-moz-border-radius: 3px 0px 0px 3px;-webkit-border-radius: 3px 0px 0px 3px;-khtml-border-radius: 3px 0px 0px 3px;border-radius: 3px 0px 0px 3px;background-position: 4px 4px;-webkit-transition: all 0.3s ease;-moz-transition: all 0.3s ease;-o-transition: all 0.3s ease;transition: all 0.3s ease;border:1px solid rgb(51, 51, 51)}
.rt-social-buttons span, .loginbtn span {background-repeat: no-repeat;color: #FFFFFF;display: block;font-size: 10px;height: 18px;letter-spacing: -1px;line-height: 1.9em;padding-left: 10px;text-transform: uppercase;text-shadow:0px 1px 1px rgba(0, 0, 0, 0.2);}
.rt-social-buttons a:hover, .loginbtn:hover {background: none repeat scroll 0 0 rgb(150, 0, 0);border:1px solid rgb(70, 0, 0);
right: 119px;}
.rt-social-buttons a#rt-buzz-btn span {background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTzLBktM_aO3t9A2iJqspL1rFumLEA6MuJchkn6Nt_IwhotX7zK496XtIx2Y4JnLFfanoRZ3w6dtXLfU8Yoml79NhaqQBDn7OILWBk9wW3oFNcin_0kVORd0oBoS1eFC2cUoW2gD9xNz0/s1600/socialsprite.png);background-position:-2px -68px;}
.rt-social-buttons a#rt-twitter-btn span {background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTzLBktM_aO3t9A2iJqspL1rFumLEA6MuJchkn6Nt_IwhotX7zK496XtIx2Y4JnLFfanoRZ3w6dtXLfU8Yoml79NhaqQBDn7OILWBk9wW3oFNcin_0kVORd0oBoS1eFC2cUoW2gD9xNz0/s1600/socialsprite.png);background-position:-2px -24px;}
.rt-social-buttons a#rt-facebook-btn span {background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTzLBktM_aO3t9A2iJqspL1rFumLEA6MuJchkn6Nt_IwhotX7zK496XtIx2Y4JnLFfanoRZ3w6dtXLfU8Yoml79NhaqQBDn7OILWBk9wW3oFNcin_0kVORd0oBoS1eFC2cUoW2gD9xNz0/s1600/socialsprite.png);background-position:-2px -46px;}
.rt-social-buttons a#rt-rss-btn span {background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTzLBktM_aO3t9A2iJqspL1rFumLEA6MuJchkn6Nt_IwhotX7zK496XtIx2Y4JnLFfanoRZ3w6dtXLfU8Yoml79NhaqQBDn7OILWBk9wW3oFNcin_0kVORd0oBoS1eFC2cUoW2gD9xNz0/s1600/socialsprite.png);background-position:-2px -89px;}
a.loginbtn span {background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTzLBktM_aO3t9A2iJqspL1rFumLEA6MuJchkn6Nt_IwhotX7zK496XtIx2Y4JnLFfanoRZ3w6dtXLfU8Yoml79NhaqQBDn7OILWBk9wW3oFNcin_0kVORd0oBoS1eFC2cUoW2gD9xNz0/s1600/socialsprite.png);background-position:-2px 0px;}
@keyframes static-bar{0%   {right:-25px;} 100%   {right:0px;}}
@-moz-keyframes static-bar{0%   {right:-25px;} 100%   {right:0px;}}
@-webkit-keyframes static-bar{0%   {right:-25px;} 100%   {right:0px;}}
Langkah terakhir, pasang Script dibawah ini diatas tag </body>
<div class='staticbar'>
<div class='login'>
<div id='rt-login-button'>
<a class='loginbtn buttontext' href='http://blogger.com' rel='nofollow' target='_blank' title='Login Blogger'>
<span class='desc'>Blogger Login</span></a>
</div>
<div class='rt-social-buttons'>
<a class='lightbox' data-options='{&quot;width&quot;:420, &quot;height&quot;:405, &quot;iframe&quot;: true}' href='http://tutorialbelajarblogger.blogspot.com' id='rt-twitter-btn' rel='nofollow' title='Twitter Belajar Blog'>
<span>Follow Me On Twitter</span></a>
<a class='lightbox' data-options='{&quot;width&quot;:300, &quot;height&quot;:430, &quot;iframe&quot;: true}' href='http://tutorialbelajarblogger.blogspot.com' id='rt-facebook-btn' rel='nofollow' title='FacebookTutorial Blog'>
<span> Facebook Fanspage</span></a>
<a href='http://tutorialbelajarblogger.blogspot.com' id='rt-buzz-btn' rel='nofollow' target='_blank' title='Google Plus Tutorial Blog'>
<span>Circle Me On Google Plus</span></a>
<a href='http://tutorialbelajarblogger.blogspot.com' id='rt-rss-btn' rel='nofollow' target='_blank' title='RSS Belajar Blog'>
<span>Subscribe to RSS Feed</span></a>
</div></div></div>
Selamat Mencoba .. . Happy Blogger

0 komentar: