1. Login blogger>>Dashboard>>Page element>>Add gadget>>HTML/Java
2.Copy code bawah ni dan paste dalam box HTML/Java
3.Edit code[letak URL shoutbox icon/URL background,Shoutbox code korang dan adjust size]
<style type="text/css">
#gb{
position:fixed;
top:10px;
z-index:+1000;
}
* html #gb{position:relative;}
.gbtab{
height:200px;
width:50px;
float:left;
cursor:pointer;
background:url('URL shoutbox icon') no-repeat;}
.gbcontent{
float:left;
border:2px solid #666666;
padding:1px;
}
</style>
<script type="text/javascript">
function showHideGB(){
var gb = document.getElementById("gb");
var w = gb.offsetWidth;
gb.opened ? moveGB(0, 50-w) : moveGB(10-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">
<center>
<div id="custombg" style="width:260px; height:380px; background:url(URL background Shoutbox) repeat; padding-top:0px; padding-left:0px; position:relative" align="center">
SHOUTBOX CODE
<div style="text-align:right">10-jarak icon/shoutbox dari atas[boleh adjust ikut suke]
<a href="javascript:showHideGB()">
[close]
</a>
</div>
</div>
</center></div></div>
<script type="text/javascript">
var gb = document.getElementById("gb");
gb.style.right = (50-gb.offsetWidth).toString() + "px";
</script>
50 - lebar gambar icon korang
200 - tinggi gambr icon korang
URL shoutbox icon-URL shoutbox icon yang korang pilih
260-lebar background shoutbox
380-panjang background shoutbox
URL background Shoutbox-URL background untuk shoutbox
SHOUTBOX CODE-shoutbox code korang
4.Selepas edit click save
DONE!
p/s : korang highlight kan dari <style sampailah ke </script>
No comments:
Post a Comment