Apabila sobat penasaran, modifikasi chatbox show hide.
Mending praktekin deh..
Caranya berikut ini:
1. Login blog
2. Rancangan
3. Add gadget "html/javascript"
4. Copast kode berikut
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script><script type="text/javascript">$(document).ready(function(){$(".btn-slide").click(function(){$("#panel").slideToggle("slow");$(this).toggleClass("active"); return false;});});</script><style>/* ---------------Simple Slide panel with jQuery---------------------------------- */#panel {height: auto;background:#000;width: auto;display: none;padding: 7px;border: #0C0;-moz-border-radius-topright:10px;-webkit-border-top-right-radius:10px;-moz-border-radius-bottomright:10px;-webkit-border-bottom-right-radius:10px;-moz-border-radius-topleft:10px;-webkit-border-top-left-radius:10px;-moz-border-radius-bottomleft:10px;-webkit-border-bottom-left-radius:10px;}.slide {margin: 0;padding: 0;border-top: solid 4px #f90;background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaL7WhL2Lm5raYVCfo_bBCrOBRdv5xPFhUGCRfxFxlbsX6V-n4IQ0N4_l47nqq-JTxc_ncRQEHAuC2fYB-FYDddAOCnq-iwwVdoB1xoLkKp17TJSTSl0CzHT0aMchh9_gz6P61CDuH4FE/s1600/btn-slide.png) no-repeat center top;}.btn-slide {background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4r_5TOBSlbwmJWMb765Vw740BVYDvPq8lfdkEAz5FB3IA1Cm7XrczeVHJJVvzmofSpksVu0f0EkVBvFci_1kas2cZ1m3C3z_yh7F0fkdYuClgTA5VTknlbL4mwy-pAk34ag6mLbBC-KA/s1600/white-arrow.gif) no-repeat right -50px;text-align: center;width: 144px;height: 31px;padding: 10px 10px 0 0;margin: 0 auto;display: block;font: bold 120%/100% Arial, Helvetica, sans-serif;color: #fff;text-decoration: none;}.active {background-position: right 12px;}</style><div id="panel">Kode Cbox Disini</div><p class="slide"><a href="#" class="btn-slide">Buku Tamu</a></p>
5. Save
Selamat mencoba.
Semoga tutorial tentang cara membuat slide chatboxnya bermanfaat.
0 comments