Home » » Shoutbox Light Effect

Shoutbox Light Effect

Caranya adalah sebagai berikut :

1. Login ke akun Blog anda.
2. Pilih Rancangan, Add Gadget kemudian klik HTML/Java Script.
3. Copy Paste script di bawah ini ke dalam gadget HTML/Java Script anda.
<!-- Start Shoutbox light effect -->

$(document).ready(function() {
//select all the a tag with name equal to chatbox
$('a[name=chatbox]').click(function(e) {
//Cancel the link behavior
//Get the A tag
var id = $(this).attr('href');
//Get the screen height and width
var tamuchatboxHeight = $(document).height();
var tamuchatboxWidth = $(window).width();
//Set heigth and width to tamuchatbox to fill up the whole screen
//transition effect
//Get the window height and width
var winH = $(window).height();
var winW = $(window).width();
//Set the popup window to center
$(id).css('top', winH/5-$(id).height()/5);
$(id).css('left', winW/2-$(id).width()/2);
//transition effect
//if close button is clicked
$('.window .close').click(function (e) {
//Cancel the link behavior
//if tamuchatbox is clicked
$('#tamuchatbox').click(function () {

a {
img {
    border: none;
#tamuchatbox {
#boxarea .window {
#boxarea #showhide {
    background: #000;
    padding:50px 5px 50px 5px;
    border: 1px solid #999;
    -moz-box-shadow: 0px 2px 5px 0px #f8f9b9;
#tutup {
    padding:10px 0 10px 0;
.close {
    padding: 5px 3px 5px 3px;
    color: #FFF;
    border: 0px solid #fff;
    -moz-box-shadow: 0px 2px 5px 0px #FF6;

<div id="boxarea">
<!-- Start Shoutbox -->
<div id="showhide" class="window">

<!-- masukkan script buku tamunya disini -->

<div id="tutup"><input type="button" value="Tutup CBox" class="close" />
</div></div><!-- End Shoutbox -->
<div id="tamuchatbox"></div></div>
<!-- End of Shoutbox light effect -->

4. Save

5. Penempatan :
<a href='#showhide' name='chatbox' title='Tulis pesan'>Buku Tamu</a>
6. Atau anda ingin penempatannya dengan gambar, caranya seperti ini :

<a href='#showhide' name='chatbox' title='Tulis pesan'><img src="https://lh6.googleusercontent.com/-19uO6YoM54U/TX6lPCoD1pI/AAAAAAAAAV4/oXYF6O8rw38/s1600/guestbook.png"></a>
Related Post




ShoutMix chat widget
Guest Book

Subscribe Via Email

Enter your email address:

Delivered by FeedBurner

My Blog




[Valid Atom 1.0]
Google PageRank Checker Powered by  MyPagerank.Net

Powered by FeedBurner

SEO Stats powered by MyPagerank.Net




Welcome To My Blog

I hope you find what you're looking for here . . Thank you for visit to my simple blog . .

Rizky Maulana

This life is a sacrifice and struggle . . and I am just a man who wants to be better than ever . .