12.10.10

sorok chatbox/ shoutbox

design > add a gadget > HTML javascript

paste kod nie :




<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/AVvXsEh4SbJFMb3icFEOzOL9_Zw1PMFWfZnWPCUfen9LBLedvbApwtHiOTlNrciRIspMYXoAPmJNx8U4OEAtGDe0iJqD1LVTlh02lrFt-HCnIdI8M6RdVMuq1VL3k4Rzt9KSrSU6ELRamwQfGhqK/s320/tabs.png') no-repeat;

}
.gbcontent{
float:left;
border:2px solid #666666;
background:#F5F5F5;
padding:10px;
}
</style>

<script type="text/javascript">
function showHideGB(){
var gb = document.getElementById("gb");
var w = gb.offsetWidth;
gb.opened ? moveGB(0, 150-w) : moveGB(170-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">

KOD CBOX KORANG

<div style="text-align:right">
<a href="javascript:showHideGB()">
[close]
</a>
</div>
</iframe></div>
</div>
<script type="text/javascript">
var gb = document.getElementById("gb");
gb.style.right = (140-gb.offsetWidth).toString() + "px";
</script>


pesanan : yg highlight wrne kuning tu boleh gnti ngn icon2 shout yg comel lah ekk. letak URL pic tu je :D


yg wrne merah 2, buleh ubah  mengikut kesesuaian jarak @ lebar utk icon shout korg ok :P

8 comments:

  1. @amalina baharuddin part mne yg xbleh?? ltak kod shoutbox awk tuu k??

    ReplyDelete
  2. @ayieLefthanded

    dear, dh ade cbox kn?? amek kod cbox/ shoutbox awak tuuu, gnti kan kat "KOD CBOX KORANG". okaay

    ReplyDelete
  3. aisyah..
    mane nk dapat gmbar comey ye nk ltk kt shoutbox tu?

    ReplyDelete
  4. @MiMie AddNin

    yg tuu sy wt sndiri gune photoshop. lau awk nk pon, amekla 1 pic, pastu dptkn URL dye & letak pd kod yg saye highlight tuu k

    ReplyDelete
  5. kenape xsorok? terkeluar sikit lah

    ReplyDelete

 
This Blog Is Designed By MySelf@Aisyah