Tutorial Hidden ShoutBox
Salam pagi !
Bella na jogging pagi ni

..tapi tade sape2 mau teman...
Sedey...
Pertama kali ni Bella buat tuto

.... huhu....
Ok...sbnarnya kwn cute Bella , Syaqiela tanya tentang shoutbox nie..
So... Here it is...
But..Sebelum buat Hidden ShoutBox ni, wajib sign in kat
Shoutmix.com
Free jea

Dashboard

Design

Page Element

Add Gadget

HTML/JAVASCRIPT .

Copy code yg didalam box tu..
* jangan lupa letak code shoutbox korang .
<style type="text/css">
<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('http://i777.photobucket.com/albums/yy60/bella_kimorra/panda.gif') no-repeat;
}
.gbcontent{
float:left;
border:2px solid #000000;
background: #FFFFFF;
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">
YOUR SHOUTMIX CODE HERE
<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>
Contoh yg Bella punye:
<style type="text/css">
#gb{
position:fixed;
top:50px;
z-index:+1000;
}
* html #gb{position:relative;}
.gbtab{
height:400px;
width:160px;
float:left;
cursor:pointer;
background:url('http://i777.photobucket.com/albums/yy60/bella_kimorra/shinee_cartoon-Minho-1.gif') no-repeat;
}
.gbcontent{
float:left;
border:2px dotted #FAAFBA;
background: #FDEEF4;
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">
<!-- Begin ShoutMix - http://www.shoutmix.com --><iframe title="bellazri" src="http://www5.shoutmix.com/?bellazri" width="160" height="400" frameborder="0" scrolling="auto"><a href="http://www5.shoutmix.com/?bellazri">View shoutbox</a></iframe><br /><a href="http://www.shoutmix.com" title="Get your own free shoutbox chat widget at ShoutMix!">ShoutMix chat widget</a><br /><!-- End ShoutMix -->
<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 = (170-gb.offsetWidth).toString() + "px";
</script>

Warna purple tu kena adjust sikit . sebab kadang2 gamba tu bley tersorok*tak tunjuk sepenuhnya gambar tu...kadang2 dia tutup pun tak habis

Warna biru tu url gamba yang korang mau .

Warna kuning tu untuk height & width..kalu nak edit, edit jea

Warna hijau tu kalau nak edit, edit je..

Warna merah tu untuk code shoutbox korang . kopi pes je..kalu tak tau nak amik code tu kat mane, ini cth nye:
*code kat dlm kotak warna merah*
*dlm kotak oren tu tempat untuk edit shoutbox korang*
p/s: gambar itu dipetik di blog akak
syamira

Kalau guna code shoutbox korang pas tu tade ape2 masalah seperti step no 3, tak perlu ubah code tu.
contoh2 url gambar tu, nak copy pon bole..

http://i777.photobucket.com/albums/yy60/bella_kimorra/shinee_cartoon-Minho-1.gif
http://i777.photobucket.com/albums/yy60/bella_kimorra/panda.gif

Korang boleh buat sendiri gamba tu . Guna photoshop .
Thanks for reading..
Labels: Arts and Crafts, Diary, Help, Smillies, Tips, Tutorials
◀ ▶