
Malam-malam ni nak wat tutorial sikit lah . pasal shoutbox . mesti ramai dah tahu kan pasal Sorokkan shoutbox ni . tapi takpa, saya ajarkan jugak k? bagi yang taktau tu TRY lah buat yeah . Ini request dari Bestie
saya . senang je nak buat benda ni . tak pening kepala lah . HAHA .
<style type="text/css">
#gb{
position:fixed;
top:70px;
z-index:+1000;
}
* html #gb{position:relative;}
.gbtab{
height:170px;
width:50px;
float:left;
cursor:pointer;
background:url('URL KOTAK JERIT DISINI') 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, 200-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 CODE SHOUT BOX DI SINI
<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 = (150-gb.offsetWidth).toString() + "px";
</script>
http://i1132.photobucket.com/albums/m574/MimiRuslan/shout3.png
http://i1132.photobucket.com/albums/m574/MimiRuslan/shout2.png
http://i1132.photobucket.com/albums/m574/MimiRuslan/shout1.png
P/S: korang boleh design sendiri benda ni =)
Dah ambil tu jangan lupa tinggalkan komen :)
kalo nk tukar word 'kotak jerit' tuhh jd warne hitam bley taa ?
ReplyDeletemcm mne na ! cri code toh ! xtw lha ! tolong ! :)
ReplyDeletedipo bru bt blog ! xrety lha na letk !
@Miera Zukey u Edit word tu di mana2. then tuka la . he .
ReplyDelete@dipo code ape dear?
ReplyDeleteSalam perkenalan babychoco @ sya..huhu..
ReplyDeletesaya nk tnya la..mngenai shoutbox..mcm mane kita nk tuka design mcm yang ada disebelah kanan awk skrg nie?..mksd saya ada x design lain yg kita boleh dptkn kat mane2 site?..Then kalo xde pun mcm mner kte boleh tuka warna tulisan kotak jerit tue?..saya dah pun tuka kod warna tapi still merah jgak//tq
@JUNKO-EL-HIDA i edit sendiri kotak jerit tu. if u nak tuka, u kena edit gmba pape.. n gantikan kod tu :)
ReplyDeletecode tu nak ambik yang mana?
ReplyDeletei xphm la u,i dah wt tp still not work out.
ReplyDeleteact,mcm page i memg dah ade cbox,so juz copy code then gantikn code merah 2 ngn cbox code kite ker??ke kena wt lain?
@thefunky code mana?
ReplyDelete@Farah Eyda @ Rara Emiliockii just copy and gantikan ngan tulisan merah tu :)
ReplyDeletehello...nice blog yawl..btw adeq nk tnyer nim cmner nk ltk pict laen selain dr pict ~kotak jerit~ tu...
ReplyDeletecode yang mana?
ReplyDeletemksd code 2 url ke?
npe wt xjd pn?
thx 4 diz tuto....
ReplyDeletenape tak jadi ? =='
ReplyDelete