Home » » Fixed Guestbook Slide Effect With jQuery

Fixed Guestbook Slide Effect With jQuery










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.

<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(){

    $(".gbbtn").click(function(){
        $("#gbcontent").slideToggle("slow");
        $(this).toggleClass("active"); return false;
    });

  
});
</script>
<style>
/* ---------------
Fixed Guestbook Slide effect with jQuery
by  : Dadang Herdiana
Url : http://dadhang.blogspot.com
---------------------------------- */
.gb {
position:fixed;
top:0px; left:0px;
z-index:+10;
}
#gbcontent {
        height: auto;
        background: #898787;
        width: auto;
        display: none;
    padding: 10px;
    border: #000;
    -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;
   
    -webkit-border-bottom-left-radius:10px;
}
.gbslide {
    float:left;
    margin: 0;
    padding: 0;
    background: url(http://2.bp.blogspot.com/-lcYh19fWDJo/TfXzJ3M4cQI/AAAAAAAAAqg/XebLjCvnnI8/s1600/gbslide.png) no-repeat center top;


}
.gbbtn {
    background: url(http://2.bp.blogspot.com/-tTC2wE9rv6M/TfX7qrnRaeI/AAAAAAAAAq0/W_h9PffOah8/s1600/button-Close-open2.png) no-repeat right -45px;
    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: #CCC;
    text-decoration: none;
}
.active {
    background-position: right 12px;
}
</style>
<div class="gb">
<div id="gbcontent">

<!-- Simpan Kode buku tamunya disini -->

</div>
<p class="gbslide"><a href="#" class="gbbtn">Guestbook</a></p></div>
4. Save . . . Hasilnya seperti Guesbook disudut kiri atas blog ini.
Share
Related Post

0 comments:


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