Kamis, 05 Januari 2012

Cara Buat Buku Tamu Show Hide Melayang




Saya Hanya Ingin share aja... 
Mungkin ada yang berminat silahkan ikuti langkah2 dibawah..
Langsung Saja

 
1. Login Ke Akun Blog Sobat
2. Pilih Rancangan/Tata Letak
3. Tambah Gadget/Add Gadget Pilih HTML JAVA SCRIPT
4. Masukan Script Berikut Di dalamnya




<style type="text/css">
#at{
position:fixed;
right:450px;
z-index:+1000;
}
* html #at{position:relative;}
.attab{
height:100px;
width:30px;
float:left;
cursor:pointer;
background:url(URL);
}
.atcontent{
float:left;
border:2px solid #7FFF00;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7Db-AN_-y-OEUhbaSb4m8yeIhVEGgRb-l0Ir0xmSMqR7TQx79BFJNO3ElAOinA_PrgnEohsMO4TiTew3AzRNgruxU5GlMQ1Q-3BGZH6B6ntq5GBI3XcMp66GeLsF6Cwh64DGGdTfiEQD4/)#000000 repeat-x bottom center scroll;
-moz-border-radius-topleft:10px;
-moz-border-radius-topright:10px;
-moz-border-radius-bottomleft:10px;
-moz-border-radius-bottomright:10px;
padding:10px;
}
.atcontent:hover{
border:2px solid #fff;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7Db-AN_-y-OEUhbaSb4m8yeIhVEGgRb-l0Ir0xmSMqR7TQx79BFJNO3ElAOinA_PrgnEohsMO4TiTew3AzRNgruxU5GlMQ1Q-3BGZH6B6ntq5GBI3XcMp66GeLsF6Cwh64DGGdTfiEQD4/)#000000 repeat-x bottom center scroll;
}
</style>
<script type="text/javascript">
function showHideAT(){
var at = document.getElementById("at");
var w = at.offsetWidth;
at.opened ? moveAT(0, -200-w) : moveAT(20-w, 0);
at.opened = !at.opened;
}
function moveAT(x0, xf){
var at = document.getElementById("at");
var dx = Math.abs(x0-xf) > 25 ? 35 : 1;
var dir = xf>x0 ? 1 : -1;
var x = x0 + dx * dir;
at.style.top = x.toString() + "px";
if(x0!=xf){setTimeout("moveAT("+x+", "+xf+")", 10);}
}
</script>
<div id="at">
<div class="attab" onclick="showHideAT()"> </div>
<div class="atcontent">
<div align="center">
<div style="background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtWilsZmnWm78o-PTe4lt73IQK0VlYWx4u5Me8m1VhbATTfxtRbOv80PDoRTUdsOOcAzH9BzrB1GRasbDpjwUe6kycV5LWM3mb0vtt-TC0MPnbuDKDqUSgqHzUP2y-KxoLBGAZxyeJP0A/) no-repeat;">


--> Kode Cbox Disini <--


</div>
</div>


<br />
<div align="right"><a href="javascript:void(0);" onclick="showHideAT()"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTJU9R9iQRKHQ-FgCN42x_xxBkKcyaB9WL4TPrYWxFZ-hOmP_MBjzqBgVClfd5cbAz6sIIHzyrrh70BoBxYF3cMyk6hz6yoz8YxxpdsFk6Xbc8VE2GORIgAzBykLNH0ZiBLq27YcxiUftc/" alt="close" title="Click here to Close Cbox" /></a></div>
<div align="left"><font size="2"><a href="http://www.uttafreak-987.co.cc/2011/04/cara-membuat-buku-tamu-blog-showhide-di.html"target=_blank"><div style="color: #444444;">
<span style="font-size: xx-small;">By Fikry Arpendos</span></div></a></font></div>
</div></div>


<center><a href="javascript:void(0);"onclick="showHideAT()"/><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtfsQO4Li6RPIqMfzeMo2o_xzyFVxJolsAT_tqnflYzw88-4KRzIQBmu-CFsSPzc75eL35KQx4ukDR91dqWirJM5IoHyqcUN1etkXRdEWMI4IoF-pbqI465_2JQ_0rCCGSIC5KqqYxGCw1/" alt="cbox" title="Click here to open Guest Book" /></a></center>


<script type="text/javascript">
var at = document.getElementById("at");
at.style.top = (-200-at.offsetWidth).toString() + "px";
</script>


5. Save...

Note ::

- Yang berwarna Hijau adalah URL background kembang api dan kode warna backgroundnya (*Background dapat diganti sesuai selera sobat)
- Yang Berwarna Biru adalah background cbox.
- Tang berwarna Merah ganti dengan kode Cbox.
- Dan yang berwarna Pink adalah URL icon tombol.

happy blogging....
selamat mencoba gan



Tidak ada komentar:

Posting Komentar