ASSALAMMUALAIKUM & SELAMAT MEMBACA
cikgu trex akan mengajar cara buat shoutbox tersorok macam blog ni.. nampak tak gambar tulis chit chat ni? heheheh... bila picit kat situ..
nanti dia jadi macam ni... nampak tak dia keluar tu... cantik tak? heheheheh... jimat sikit ruang widget kat blog tu bila sorok shoutbox camni.. kemas sikit kan?? heheheheh...
cara-cara
1) DASHBOARD > PAGE ELEMENT > ADD GADGET > HTML
2) Copy CODE kat bawah ni
NOTA <style type="text/css">
#gb{
position:fixed;
top:100px;
z-index:+1000;
}
* html #gb{position:relative;}
.gbtab{
height:172px;
width:120px;
float:left;
cursor:pointer;
background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheNtHo41XKfmmtoC0OAYFHqmxCkyxfY4ZzGEVEs4dg6HaP4vxnz7QS3LwI-9xZKGo4JVu1VtC8kBdg3MZ9LmCzGt5IgQ0bxNBzSBhe0V52cAzUOtenG_olN5Ezi0WYvg5OtIry8r7nHSo/s1600/shout.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, 120-w) : moveGB(120-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">
LETAK CODE SHOUTBOX KORANG
<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 = (120-gb.offsetWidth).toString() + "px";
</script>
warna merah :: kedudukan shoutbox korang... adjust ikut suka la nak kat atas ke bawah ke... try and error okay?
warna oren :: saiz shoutbox... adjust sesuka rasa korang ye... =)
warna hijau :: code gambar yang korang nak letak dekat shoutbox... macam trex letak gambar sendiri dengan tulisan chitchat tu.. nampak x? ni ikut suka hati korang la nak letak gambar apa pun..
warna biru :: tu code shoutbox korang lah... kalau pengguna shoutmix.. pergi amik code dekat shoutmix pastu tempek kat situ.. ada faham?? heheheh...
kalau tak jadi.... hurmmm tak tahu la den... sebab kalau ikut code ni betul2.. insyaALLAH jadi.. hihih =)
SELAMAT MENCUBA~
thanx for da info
ReplyDeleteneway...xphm mana nk dpt code tuk ltak gmba sdri kt shoutbox..can i know???
oh... gambar tu kta design sendiri lepas tu upload dekat photobucket.com... pastu amik code dekat direct link after kita upload tu...
ReplyDeletetp bkn dekat photobucket je leh... kat imageshack pun boleh... flickr... tp trex guna photobucket.. heheh..
kl still x sure cena.. insyaALLAH trex bt tutorial nya... tp kena update sini selalu laa ea..
thanx =)
oh ye....ok cikbintang try by myself first
ReplyDeletetgk jd ke x..hehehee
mmg jenguk...but silence readers..hehehe...
thanx ye cik trex comel^_^
hhheee.. thanx for coming =)
ReplyDeletenak try!!!
ReplyDeletetapi takut blog jd slow..nguu..
sape ado shoutbox mesti cuba!;)
ReplyDeletealong :: ehhh... rs ny x slow kot...
ReplyDeletedni :: =)
ReplyDeleteseuju dgn athirah.. tak slow kot,, sebab dia dah float kat tepi.. :))
ReplyDeletesazali :: mekasih =)
ReplyDeleteWah, hebat ek..
ReplyDeleteTutorial..
Dah buat dah dulu..
Huhuhu..
Latest entry : Lagi Sambungan 5 Masalah Cinta Terhangat
bgs la =)
ReplyDeletemungkin slow bile bukak byk2 tab kot.. heheh.. =P
ReplyDeletealong :: mungkin la kot.. xpun sbb tenet slow
ReplyDeleteawak bile nk buat tutorial tab shoutbox muke kite tu. kite nk buat jugak. ;)
ReplyDeletehurmm?? xfahammm
ReplyDeletekalo nak buat yg same kat facebook profile cmne ye?bole x buat tutor utk tu...nak sorok facebook badge kat tepi cm shoutbox
ReplyDeleteyg ad twitter, youtube, sume tu ke?? kena buka buku balik.. insyaALLAH ada masa trex bt tutorial :)
ReplyDeleteAs salam
ReplyDeleteAthirah, akak buat dah jd..cuma gambar tu kan athirah set berapa besar ekk sblm upload kat photobucket tu...
salam.
ReplyDeletei have tried. but, bile preview kuar pic cik trex. da tukar tapi tak kuar pic lak. kena png ke pic tue ? jpg takleh ?
yeay ! dah jadi. bape jam ngadap laptop nak buat. ahaks ! :D tapi tak reti nak bajet saiz pic tepi tue.. hoho btw, thanks for the tutorial. :) sng nak paham..
ReplyDeletenpe x jd2 gx shoutbox ni. .sobs :'(
ReplyDeleteThanks Cik Trex... dah jadi dah :P TerBAIKKKK !!! huhuhu Selamat Puasa :)
ReplyDelete