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 -->

<script>
$(document).ready(function() {
//select all the a tag with name equal to chatbox
$('a[name=chatbox]').click(function(e) {
//Cancel the link behavior
e.preventDefault();
//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
$('#tamuchatbox').css({'width':tamuchatboxWidth,'height':tamuchatboxHeight});
//transition effect
$('#tamuchatbox').fadeIn(1000);
$('#tamuchatbox').fadeTo("slow",0.8);
//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
$(id).fadeIn(2000);
});
//if close button is clicked
$('.window .close').click(function (e) {
//Cancel the link behavior
e.preventDefault();
$('#tamuchatbox').hide();
$('.window').hide();
});
//if tamuchatbox is clicked
$('#tamuchatbox').click(function () {
$(this).hide();
$('.window').hide();
});
});
</script>

<style>
a {
    color:#ffffff;
    text-decoration:none
}
img {
    border: none;
}
#tamuchatbox {
    position:absolute;
    left:0;
    top:0;
    z-index:9000;
    background-color:#000;
    display:none;
}
#boxarea .window {
    position:fixed;
    left:0;
    top:0;
    width:440px;
    height:200px;
    display:none;
    z-index:9999;
}
#boxarea #showhide {
    background: #000;
    width:300px;
    height:400px;
    padding:50px 5px 50px 5px;
    border: 1px solid #999;
    -moz-border-radius:15px;
    -khtml-border-radius:15px;
    -webkit-border-radius:15px;
    -moz-box-shadow: 0px 2px 5px 0px #f8f9b9;
}
#tutup {
    padding:10px 0 10px 0;
}
.close {
    background:#999;
    background-position:center;
    padding: 5px 3px 5px 3px;
    color: #FFF;
    border: 0px solid #fff;
    -moz-border-radius:5px;
    -khtml-border-radius:5px;
    -webkit-border-radius:5px;
    -moz-box-shadow: 0px 2px 5px 0px #FF6;
}
</style>

<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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkCbZlbDVf9Hykg_uSnxwMj-59e4snToec3uJ9w2ktjHb85dQGlo1faTzT_JnS7hVwDCNjmPu21O551ctvrFkrf89CPAJ3iCp5efUgyZ2_1IhvvEfIqJUld1nfc1uzB6JZz6-37WwsGps/s1600/guestbook.png"></a>
Share
Related Post

0 comments:

Archives

Label


ShoutMix chat widget
Guest Book
 

Subscribe Via Email

Enter your email address:

Delivered by FeedBurner

My Blog

Show

Exploration


Show

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

Powered by FeedBurner

SEO Stats powered by MyPagerank.Net

Show

Show

Exploration

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 . .