Warung Bebas

Thursday, June 21, 2012

cara memasang floating chat box pada blog

Dengan cara memasang floating chat box pada blog tentu saja cukup berguna bagi pemilik blog. Sebab dapat dijadikan sebagai buku tamu untuk para pengunjung blog kita. Tanpa basa-basi lagi. akan saya jelaskan bagaimana cara memasang floating chat box pada blog.

1. Masuk ke Tata Letak Blogger anda.
2. Pilih Add Gadget.
3. Pilih Html/JavaScript.
4. Copy dan pastekan kode di bawah ini:

<style type="text/css">
#at{
position:fixed;
right:450px;
z-index:+1000;
}
* html #at{position:relative;}
.attab{
height:100px;
width:30px;
float:left;
cursor:pointer;
background:url();
}
.atcontent{
float:left;
border:2px solid #999;
background: #000;
-moz-border-radius-topleft:15px;
-moz-border-radius-topright:15px;
-moz-border-radius-bottomleft:15px;
-moz-border-radius-bottomright:15px;
padding:10px;
-moz-box-shadow: 0px 2px 5px 0px #f8f9b9;
}
</style>
<script type="text/javascript">
function showHideAT(){
var at = document.getElementById("at");
var w = at.offsetWidth;
at.opened ? moveAT(0, -200-w) : moveAT(20-w, 0);
at.opened = !at.opened;
}
function moveAT(x0, xf){
var at = document.getElementById("at");
var dx = Math.abs(x0-xf) > 25 ? 35 : 1;
var dir = xf>x0 ? 1 : -1;
var x = x0 + dx * dir;
at.style.top = x.toString() + "px";
if(x0!=xf){setTimeout("moveAT("+x+", "+xf+")", 10);}
}
</script>
<div id="at">
<div class="attab" onclick="showHideAT()"> </div>
<div class="atcontent">
<div align="center">
<div style="background:#000;">


<!-- Ganti dengan Kode cbox, shoutcamp atau shoutmix disini -->
 


</div>
 
</div>

<br />
<div align="right"><a href="javascript:void(0);" onclick="showHideAT()"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPs3qLesPm2ZSca-_3D1dpMGQ2kESu9mP6ZD8x7WKYcKQK2Y6y2PA8tbmDbhPQZv2uQKViziaSkjDlf3whctu8qBjm6PE-FLbW-jcYC8wRzbwg_pn5t0EuqdLyG635sxeufDxMugdZ6Iw/s1600/CLOSE.png" alt="close" title="Click here to Close Cbox" /></a></div>

</div></div>


<script type="text/javascript">
var at = document.getElementById("at");
at.style.top = (-200-at.offsetWidth).toString() + "px";
</script>

<center><a href="javascript:void(0);"onclick="showHideAT()"/><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYMXkT94KAis-OyXCATZZSbDNIrMiBt65vRmPAmqSULSyPHzgnItfeceXbFPklUKjV_aSGki1EUObeLEmC0QzpZzSvKa8afVQ_GiHk8ivsHl7arJ4a4rirCqp4GJFyF_dTqCKVpf3uR0w/s1600/guestbook.png" alt="cbox" title="Click here to open Guest Book" /></a></center>



Demikianlah cara memasang floating chat box pada blog

0 comments em “cara memasang floating chat box pada blog”

Post a Comment

 

Indahnya Berbagi Copyright © 2012 Fast Loading -- Powered by Blogger