ikuti langkah di bawah ini :
- Loggin terlebih dahulu pada blogspot
- Klik Rancangan > Elemen Laman > Tambah Gadget > HTML/JavaScript
- Lalu kopas Script d bawah ini
<style type="text/css">
#at{
position:fixed;
right:600px;
z-index:+1000;
}
* html #at{position:relative;}
.attab{
height:100px;
width:100px;
float:left;
cursor:pointer;
background:url();
}
.atcontent{
float:left;
border:2px solid #ff0000;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKsIHGUZ0lNdP2_w7FJuull9PqdbMBJg8rfILqMYqObliKVUNjxrMiYu0E6DuLdl0oUKCDF0X_4HP8k94M-tTMVgLIwtdo-1ErVxLxyZLrGX9MgqwAvRLCI3hyphenhyphen1lSPTlJvJ26eNmEijWWz/) #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(50-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/AVvXsEiao00QmHx3ags2A36xAWm1cZ_D-grBjzCiRTfNcMlJtJ-iBZGeGk1qqGruTVT536xvtXBeOuEssg_ksMPGWewSQcaoWycANHbgDj3yvPyWUyFDp6V2ClVJKb1a9dTmbjAfSeCHu5dQA2A//) no-repeat;">
Pasang Buku Tamu 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/AVvXsEjyav7cI8OcI0Qs1JQNR5Hzkz_gCwJXsA0TT0t3TdPUC8FzebdMFbY_cpzrxh5i8hbTxenEDUUpkpC7CVCqHmPaiM2yo56ioO1QmViro-0ODudkAZ3iXRHJtIPrNsYhioWU2yN7Vj716xY//" alt="close" title="Click here to Close Cbox" /></a></div>
<div align="left"><font size="2"><a http://exeloph.blogspot.com/2010/10/showhide-cbox-pada-posisi-atas.html"target=_blank"><div style="color: #444444;">
<span >By enda fiVers</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/AVvXsEjCm3fr42RKrTIflz3HgTJcMfUZCNnQR-hFaersGWkkRMK_GzH2LNF6CBuScGZx3CNr-QEoyLdNCOF4t92sheguCBmNdOC3uSjvpIpWnb8FYiif0btcf8GCPRYWiStETmHeNEtnmbcU-bA//" alt="cbox" title="Click here to open Guest Book" /></a></center>
#at{
position:fixed;
right:600px;
z-index:+1000;
}
* html #at{position:relative;}
.attab{
height:100px;
width:100px;
float:left;
cursor:pointer;
background:url();
}
.atcontent{
float:left;
border:2px solid #ff0000;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKsIHGUZ0lNdP2_w7FJuull9PqdbMBJg8rfILqMYqObliKVUNjxrMiYu0E6DuLdl0oUKCDF0X_4HP8k94M-tTMVgLIwtdo-1ErVxLxyZLrGX9MgqwAvRLCI3hyphenhyphen1lSPTlJvJ26eNmEijWWz/) #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(50-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/AVvXsEiao00QmHx3ags2A36xAWm1cZ_D-grBjzCiRTfNcMlJtJ-iBZGeGk1qqGruTVT536xvtXBeOuEssg_ksMPGWewSQcaoWycANHbgDj3yvPyWUyFDp6V2ClVJKb1a9dTmbjAfSeCHu5dQA2A//) no-repeat;">
Pasang Buku Tamu 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/AVvXsEjyav7cI8OcI0Qs1JQNR5Hzkz_gCwJXsA0TT0t3TdPUC8FzebdMFbY_cpzrxh5i8hbTxenEDUUpkpC7CVCqHmPaiM2yo56ioO1QmViro-0ODudkAZ3iXRHJtIPrNsYhioWU2yN7Vj716xY//" alt="close" title="Click here to Close Cbox" /></a></div>
<div align="left"><font size="2"><a http://exeloph.blogspot.com/2010/10/showhide-cbox-pada-posisi-atas.html"target=_blank"><div style="color: #444444;">
<span >By enda fiVers</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>
- Save
- Tambah Gadget lagi untuk tombol yang digunakan mengeluarkan buku tamunya
- Kopas script di bawah ini
<center><a href="javascript:void(0);"onclick="showHideAT()"/><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCm3fr42RKrTIflz3HgTJcMfUZCNnQR-hFaersGWkkRMK_GzH2LNF6CBuScGZx3CNr-QEoyLdNCOF4t92sheguCBmNdOC3uSjvpIpWnb8FYiif0btcf8GCPRYWiStETmHeNEtnmbcU-bA//" alt="cbox" title="Click here to open Guest Book" /></a></center>
- Save
Sudah jadi kawan, untuk background pada tempat buku tamu atau tombolnya dapat diganti sendiri (sudah saya tanda dengan warna Merah).
Semoga bermanfaat kawan...
Semoga bermanfaat kawan...
Sumber: http://mak-q.blogspot.com
16 komentar