Wednesday, March 30, 2011

~ ♥ hiDe aNd sEek shOutbOx ♥ ~


nampak x shoutbox kat atas 2..camane nak apply kat blog korang??meh ikot step ni meh...

1) Pegi kt Design / Page elements / Add a Gadget. Pastu klik HTML/Javascript.

2) Salin kod kt bawah nie ea...

<style type="text/css">
#gb{
position:fixed;
top:120px;
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/AVvXsEgPW2BZF_RYWAWb1W9J3nInTWd1jzYBSj81jMgvFInzqSDCEM4OEHaHpKHK6RGAlY1-JypGrgvN0_eUzJR7OzqR6m7i265N94ctSO_HjqsXYgTbW7RZhmUfuxsWgXxElugcZCsgM_YoUTK7/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, 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">Masukkan Kod Shout Box Anda Disini
<div style="text-align:right">
<a href="javascript:showHideGB()">
[close]


</a>
</div>
</div>
</div>
<script type="text/javascript">
var gb = document.getElementById("gb");
gb.style.right = (30-gb.offsetWidth).toString() + "px";
</script>

3) Paste kan code kt atas y dah di copy tadi kat dalam content HTML/Javascript.

note: bile siap button shoutbox y akan kuar kat tepi blog korg 2 macam ni 

 

tapi korang boley tuka button nie dgn ape je picture y korg nak y macam jue wat kt blog jue..just tuka https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPW2BZF_RYWAWb1W9J3nInTWd1jzYBSj81jMgvFInzqSDCEM4OEHaHpKHK6RGAlY1-JypGrgvN0_eUzJR7OzqR6m7i265N94ctSO_HjqsXYgTbW7RZhmUfuxsWgXxElugcZCsgM_YoUTK7/s320/tabs.png  yang dalam coding 2 dengan URL picture yang korang mau...

adjust yang: 
biru: position picture 2 dari atas blog..makin tinggi nilai makin kebawah
orange: tinggi n lebar picture 
turquoise: jarak antara shoutmix dengan box
merah: jarak picture dari terlindung oleh srollbar bile dihide

4) Then save la...ade paham??xpham..mcm biase la..tanye jgn xtanye ea.. =)


special from:


 
 
 

2 comments:

  1. tq for this tutorial..
    kalau tak jadi buleh meroyan jadinya ..
    btw congratz tau u won the contest of cik aish :)

    ReplyDelete
  2. haha..welcome..jgn la sampai meroyan..insyaAllah..jadi..ehe...
    thanx...br msuk top 10 jek...lom menang lagi..depan on vote la leyza.. =)

    ReplyDelete

Thanks for ur cute comment!! love u lorh!! =)