Nah posting sebelumnya saya telah membahas cara membuat ID shoutmix. Sekarang saya akan memberitahukan cara membuat buku shoutmix melayang disamping. Ni caranya :
1. Copy kode dibawah ini
<style type="text/css">
#gb{
position:fixed;
top:50px;
z-index:+1000;
}
* html #gb{position:relative;}
.gbtab{
height:100px;
width:30px;
float:left;
cursor:pointer;
background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOCsIYta5Tvv5uNmZ8N_05FLxoLV9dfUM73YchAPL33ZueFi2mHnn6FaeQoWOtoMY3fPi6I7VAT8gHRQ38KcAlOHOgb63WgnwLX2crlKAWySqLEXwjGuhRLTMMadehr6F3AcNm_sNvT88h/') no-repeat;
}
.gbcontent{float:left;
border:2px solid #A5BD51;
background:#F5F5F5;
padding:10px;
}
</style>
<script type="text/javascript">
function showHideGB(){
var gb = document.getElementById("gb");
var w = gb.offsetWidth;
gb.opened ? moveGB(0, 30-w) : moveGB(20-w, 0);
gb.opened = !gb.opened;
}
function moveGB(x0, xf){
var gb = document.getElementById("gb");
var dx = Math.abs(x0-xf) > 10 ? 5 : 1;
var dir = xf>x0 ? 1 : -1;
var x = x0 + dx * dir;
gb.style.right = x.toString() + "px";
if(x0!=xf){setTimeout("moveGB("+x+", "+xf+")", 10);}
}
</script>
<div id="gb">
<div class="gbtab" onclick="showHideGB()"> </div>
<div class="gbcontent">
<!-- Begin ShoutMix -->
<iframe id="shoutmix_7389ea" src="http://sht.mx/7389ea" width="240" height="480" frameborder="0" scrolling="auto">
<a href="http://sht.mx/7389ea">Join the conversation at ShoutMix</a>
</iframe>
<!-- End ShoutMix -->
2. Paste di HTML/Javascript
3. nah ganti "Ganti ini dengan kode shoutbox kita" yang ada di kode atas dengan code shoutbox kita yg dulu
4. Simpan
Selesai...
Semoda bermanfaat yaa....
0 komentar:
Posting Komentar