How to Create Sliding / Floating / Hiding Shoutbox in Blogspot
Hi! Guys I just want to share to you this tutorial on "How to Create Sliding / Floating / Hiding Chatbox". Let's proceed to the tutorial.
SCREENSHOTS
Step by Step.
1. Login to your Blogger Account.
2. Go to Design > Page Element > Add a Gadget.
3. Then HTML/Javascript paste the code below dont put the title in tile input box just the code only then SAVE.
4. Then after that if you dont have any shoutbox/chatbox I recommend to this link REGISTER HERE it's free.
5. Just login to your chatbox/shoutbox account and get the code.
6. Paste your code in CHATBOX CODE in your widget and SAVE.
7. See the result.
CODE:
<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/AVvXsEgOygl83ZxE-UaDMNFUkwH1fi-bcZXfDBOfvT0nWpBu0uvh99ZNUYVKQ0EXnih4LVKVKAY0J3pfb9xKu7w-mgacNT5VcYK-7yTjrbuiEf3X0I-IlvRRFvdskf5yYGNJHloXcTNd6AuSZfg/s320/shoutboxdarktrickiezone.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">
CHATBOX CODE
<div style="text-align:right">
<a href="http://trickiezone.blogspot.com/2011/12/how-to-create-sliding-floating-hiding.html" target="_blank"><small>Tutorial Here</small></a>
<a href="javascript:showHideGB()">
<img src="http://mackie.wapsite.me/images/Delete.png"/>
</a>
</div>
</div>
</div>
<script type="text/javascript">
var gb = document.getElementById("gb");
gb.style.right = (30-gb.offsetWidth).toString() + "px";
</script>
CUSTOMIZATION:
Image:
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOygl83ZxE-UaDMNFUkwH1fi-bcZXfDBOfvT0nWpBu0uvh99ZNUYVKQ0EXnih4LVKVKAY0J3pfb9xKu7w-mgacNT5VcYK-7yTjrbuiEf3X0I-IlvRRFvdskf5yYGNJHloXcTNd6AuSZfg/s320/shoutboxdarktrickiezone.png =
Image appear in your blog.
Backgroud Color:
background:#F5F5F5 =
Background color of your sliding chatbox
IMAGES SAMPLE
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqyc_X10o-TSHbfrbTE0_F1dOTZrSrqPewsK1-0v6Nm_bxaCGBK-eufhcrEW0bnyP1SK0Z6FfzJ2-v24vsePH8lu6a1l8of3foizppFKoiRToAefCxWUYSTOiZBj_smyzeKBSNTMIhnhs/s320/shoutboxlightredtrickiezone.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4GmLzYYcAe95yGA3If7jTPnGglXY5NOgGYxFHGDLURE2dkEYD8DjLWcIPflBCUsLtacBtuWY_pWApySehjlbF8c4lLg90jEQDgik1jTUxL9Q48RMGWbkpt5pboHKUzULwKbS1D0PYegA/s320/shoutboxlightbluetrickiezone.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4QUuRARTTmJpuXHOfyF8t7NMhNi4Px4GqNciND2PkjnAuY1LZlssttxVoUIOfW3WN1Ho6nupmF17b7WnkuT3MOopnSHcg9BFvmg8GZcRtUhyglOjSDCa_1vNtVYAq8PKSLaHnnPnxOiw/s320/shoutboxlightgreentrickiezone.png
Hope you like it my tutorials subscribe to my feeds to receive new updates. Thank You
How i can change the image?
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
DeleteThis comment has been removed by the author.
ReplyDeletePoker Online IndonesiaI’m completely enjoying as of it and that I have you ever bookmarked to ascertain out new stuff you'll post.. Can you also check
ReplyDeletecasino online indonesiaThis is a very good post. Just wonderful. Truly, I am amazed at what informative things you've told us today
ReplyDeleteCasinoThank you for another fantastic posting. Where else could anyone get that kind of information in such a perfect way of writing? I have a speech next week, and I was looking for more info ;)
ReplyDeleteagen casinoThis is a nice and informative, containing all information and also has a great impact on the new technology. Thanks for sharing it
ReplyDeleteGame Poker Online"must say that overall I am really impressed with this blog. It is easy to see that you are passionate about your writing. If only I had your writing ability I look forward to more updates and will be returning.
ReplyDelete"
Foto abg bandung sange pamer toket I'm impressed, I must say. Very rarely do I come across a blog that's both informative and entertaining, and let me tell you, you've hit the nail on the head. Your blog is important; the issue is something that not enough people are talking intelligently about.
ReplyDeletehttp://sharonstone-shop.blogspot.co.id/2011/11/berenice-marlohe-gallery-pictures.html
ReplyDelete