Monday, August 19

Tutorial : Shoutbox terapung kat tepi belog

Harini nak buat tutorial sikitlah..
Saudari Ummie yang minta tutorial ni..
Memandangkan Lin belum pernah lagi buat tutorial ni..
Maka dengan resminye Lin akan tunjukkan yerr..

First skali korang masuk dalam dashboard korang..
Pastu add widget pilih HTML..
Pastu pastekan yang kat bawah ni..
<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/AVvXsEh0p8JUFSEtZuHQ5agGHoQ_ci2AV64AL3rNsNPa8xZCVjQc3kzs_R5QpbLbeTSUga1QW3ttGrHfbibLrB8wbzKgPo9GhllX50-yXq7TQF4rtM7C_FtpkN9q0df4piQZBZJLv2GgmZTlN_7O/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">

<Ganti Dengan Code Chatbox 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 = (30-gb.offsetWidth).toString() + "px";
</script>
Tadaaa~..


Dah siap..
Semoga berjaya..!!

P/S : Kalau ade sebarang error bagitawu yer..Jangan lupe kelik nuff Lin yerr..^_^

21 comments:

  1. tq dear. da cube. chntek. boleh tlg ajar cmne nak tukar gambar VVIP tu lak. kalau nk tulis ayat lain cmne ea. da try edit kat phtoshop. then bile upload x keluar. huhu.

    ReplyDelete
  2. @Pinky Pixie

    owryte..my pleasure pinky..nnt pinky upload gambar tu dalam phoyobucket dan ganti pada URL tempat Lin highlight kan tu jer..^_^

    ReplyDelete
  3. @myra ♥ zul _ 4eva

    lin dah edit sikit supaya jadi lebih mudah..myra cuba lagi sekali yerr..^_^

    ReplyDelete
  4. huhuhu,bnyak kali try..akhirnya brjaya.tp mcm mna nk tkar jd gmbar?

    ReplyDelete
  5. @ﻋﻮﻧﻲ

    kalau nk tukar jd gmbr,tukar kat background url tu..upload dlu gmbr tu dlm photobucket then amik direct link paste pd background url..

    ReplyDelete
  6. xpham la lynn... wat tp x tukar2 pun..:(

    ReplyDelete
  7. thanx for sharingg!

    ReplyDelete
  8. syukran... best tutor ni... please follow my blog ook...
    http://cikrena.blogspot.com/

    ReplyDelete
  9. thanks,,follow gak sy kat
    princess1405.blogspot.com,,=)

    ReplyDelete
  10. waah, hebat, da jadi. tp 1 questi0n. cm ner na tukar gmbr die ye?

    ReplyDelete
  11. @nady

    kalau nak tukar gambar kena edit dulu gambarnya pastu upload kat photobucket dan gantikan url background kepada url gambar yg dah upload tadi..^_^

    ReplyDelete
  12. salam.. cemane nak tukar tulisan SHOUTBOX tu eh?

    ReplyDelete
  13. @Eyda Syahida

    kalau nak tukar gambar kena edit dulu gambarnya pastu upload kat photobucket dan gantikan url background kepada url gambar yg dah upload tadi..^_^

    ReplyDelete
  14. dh jadi tp xpaham nk tukar vvip tu,dia ade perkatan shoutbox je.:(
    pape pun tq ye..:)

    http://ernajifa.blogspot.com

    ReplyDelete
  15. tq dear... mudah.. n senang nak faham.. :)

    ReplyDelete
  16. wow! menjadi la... hehe... sbb dh menjadi, akak follow blog Lynn ya ^_^ thanks

    ReplyDelete
  17. wah! menjadi! tq2.. hehe.. follow sy balik.. hehe.. coretanmisanna.blogspot.com

    ReplyDelete
  18. Assalamualaikum kak . Kalau nak tukar warna and background tu macam mana ? Nak letak perkataan lain dekat perkataan shoutbox macam mana ?

    ReplyDelete