Widget Buku Tamu Show/Hide dari atas
Widget Buku Tamu Show/Hide dari atas ini sama kayak Show/hide cbox pada sisi kiri atau kanan blog. pengembangan kode dari kode-kode untuk membuat cbox Show/Hide sebelumnya,Jadi akhir nya tercipta lah Widget Buku Tamu Show/Hide dari atas,tapi tampilan nya masih sama selera gw Hijo kowkowkowk,jadi klw sobat gk suka hijo silahkan otak atik kode Show/Hide
ini :
DEMO
TUTORIAL
- Login blogger
- Pilih Perancangan>>Elemen laman
- Tambahkan
Gadget,HTML/Java script
"Jangan diberi judul"
SOURCE
<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();
}
.atcontent{
float:left;
border:2px solid #00ff00;
-moz-box-shadow: -2px 2px 25px lime;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibLfUSbygNxJgy4oerHzvZxmbJNfHVQMTpJkjzzi3mHrEM_-mAsXB25Tkq2hTUwJZIQySUeE_Adhha2Lkr2LgBnuFUNRWlu0ZgZgu6Bu9fDjAltbO2o4CyCdJatXGgywomsciSkzfx1Ys_/) #000000 repeat-y center;
-moz-border-radius-topleft:15px;
-moz-border-radius-topright:15px;
-moz-border-radius-bottomleft:15px;
-moz-border-radius-bottomright:15px;
padding:10px;
}
</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://lh4.googleusercontent.com/-CWetRTpLEF8/TX6RBp0DNPI/AAAAAAAACIQ/gfZLzVYhbTE/s1600/generator.php.gif);">
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/AVvXsEif_x-j7tai3F3O50wr3c0YQvhLUPrCr3OZlagvFzcnjP9rLwuUGspXnx_SlIfc1fMylfvc0rbP2VU-oZ7K7gUpjQX6sh_GKdYGIBszqxZORv0ltyf1Li6EbdoIwlH36pfwd53y8YoO3ic_/s1600/close.png" alt="close" title="Click here to Close Cbox" /></a></div>
<div align="left"><font size="2"><a http://pandet-pandet.blogspot.com/2011/03/widget-buku-tamu-showhide-dari-atas.html"target=_blank"><div style="color: #444444;">
<span style="font-size: xx-small;">generation platinum</span></div></a></font></div>
</div></div>
<script type="text/javascript">
var at = document.getElementById("at");
at.style.top = (-200-at.offsetWidth).toString() + "px";
</script>
<center><a href="javascript:void(0);"onclick="showHideAT()"/><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4dVc7WbJMJQJax_bTTL_fdDXz8HzWUl9mxHuOex8Z5ncqzIF-4VqTcFkBVRqgkrslfpT8mWPTZA1M0gO-i1iwKlEYeVhKiRT5Eq9952ZT70zl-e0lrlCYmgNL1uv75s4AYiVhyml2rZ0n/s1600/clickme.png" alt="cbox" title="Click here to open Guest Book" /></a></center>
#at{
position:fixed;
right:450px;
z-index:+1000;
}
* html #at{position:relative;}
.attab{
height:100px;
width:30px;
float:left;
cursor:pointer;
background:url();
}
.atcontent{
float:left;
border:2px solid #00ff00;
-moz-box-shadow: -2px 2px 25px lime;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibLfUSbygNxJgy4oerHzvZxmbJNfHVQMTpJkjzzi3mHrEM_-mAsXB25Tkq2hTUwJZIQySUeE_Adhha2Lkr2LgBnuFUNRWlu0ZgZgu6Bu9fDjAltbO2o4CyCdJatXGgywomsciSkzfx1Ys_/) #000000 repeat-y center;
-moz-border-radius-topleft:15px;
-moz-border-radius-topright:15px;
-moz-border-radius-bottomleft:15px;
-moz-border-radius-bottomright:15px;
padding:10px;
}
</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://lh4.googleusercontent.com/-CWetRTpLEF8/TX6RBp0DNPI/AAAAAAAACIQ/gfZLzVYhbTE/s1600/generator.php.gif);">
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/AVvXsEif_x-j7tai3F3O50wr3c0YQvhLUPrCr3OZlagvFzcnjP9rLwuUGspXnx_SlIfc1fMylfvc0rbP2VU-oZ7K7gUpjQX6sh_GKdYGIBszqxZORv0ltyf1Li6EbdoIwlH36pfwd53y8YoO3ic_/s1600/close.png" alt="close" title="Click here to Close Cbox" /></a></div>
<div align="left"><font size="2"><a http://pandet-pandet.blogspot.com/2011/03/widget-buku-tamu-showhide-dari-atas.html"target=_blank"><div style="color: #444444;">
<span style="font-size: xx-small;">generation platinum</span></div></a></font></div>
</div></div>
<script type="text/javascript">
var at = document.getElementById("at");
at.style.top = (-200-at.offsetWidth).toString() + "px";
</script>
<center><a href="javascript:void(0);"onclick="showHideAT()"/><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4dVc7WbJMJQJax_bTTL_fdDXz8HzWUl9mxHuOex8Z5ncqzIF-4VqTcFkBVRqgkrslfpT8mWPTZA1M0gO-i1iwKlEYeVhKiRT5Eq9952ZT70zl-e0lrlCYmgNL1uv75s4AYiVhyml2rZ0n/s1600/clickme.png" alt="cbox" title="Click here to open Guest Book" /></a></center>
Posting Komentar