Pada hari ini saya ini ingin share kepada sobat semua bagaimana membuat sebuah buku tamu yang di pasang melayang di blog sobat semua. Untuk memasang buku tamu yang tersembunyi sangatlah
mudah, sobat dapat memasangnya melayang tersembunyi di sebelah kiri dan sebelah kanan. Untuk screen shotnya sobat bisa lihat di gambar di bawah ini.
Kalau begitu langsung saja begini caranya.
1. Sobat login terlebih dahulu ke blogger sobat
2. Kemudian sobat masuk ke Tata Letak , Tambah Gadget , HTML/JavaScript.
3. Setelah ketemu sobat masukkan script di bawah ini
Untuk buku tamu sebelah kiri.
<!-- left hidden chatbox by http://speedy-indonesia-08.blogspot.com START -->
<style> #hcl { position:fixed; top:135px; left:20px; z-index:+500; } * html #hcl {position:relative;} .hcltab { height:200px; width:30px; float:left; cursor:pointer; background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqcfFrtHo039Cuun4a4SMW_QCtowPhxNe07_ESJ3rQaifeFGSMq6Ueo5GlNIbisXV8knDYgjuZQNZ8BDrtcXM9_rUlR1nAAN69JdYoFxb1-JKxc_xavoWzBxc1ftb2EaEI-ZvSAd5g4rRS/s1600/buku-4.png') no-repeat; } .hclcontent { float:left; border:4px solid #5F9EA0; background:#F5F5F5; padding:3px; } .hc-credit {font-size:9px}
.hc-credit a {text-decoration:none} </style> <script type="text/javascript"> function showHidehcl(){ var hcl = document.getElementById("hcl"); var w = hcl.offsetWidth; hcl.opened ? movehcl(0, 30-w) : movehcl(20-w, 0); hcl.opened = !hcl.opened; } function movehcl(x0, xf){ var hcl = document.getElementById("hcl"); var dx = Math.abs(x0-xf) > 10 ? 5 : 1; var dir = xf>x0 ? 1 : -1; var x = x0 + dx * dir; hcl.style.left = x.toString() + "px"; if(x0!=xf){setTimeout("movehcl("+x+", "+xf+")", 10);} } </script> <div id="hcl"> <div class="hclcontent">
<div style="text-align: right; font-size: 10px;">
Widget by
<a href="http://yudatfort814.blogspot.com/2011/02/cara-membuat-buku-tamu-tersembunyi.html">
Belajar dari internet
</a>
</div>
<br /> <div class="hc-credit"> <span style="float:left"> <!-- THIS CREDIT MUST STAY INTACT FOR LEGAL USE --> </span> <span style="float:right"> <a href="javascript:showHidehcl()"> </a> </span> </div> </div> <div class="hcltab" onclick="showHidehcl()"> </div> <script type="text/javascript"> var hcl = document.getElementById("hcl"); hcl.style.left = (30-hcl.offsetWidth).toString() + "px"; </script> <!-- left hidden chatbox by http://speedy-indonesia-08.blogspot.com END --></div>
<style> #hcl { position:fixed; top:135px; left:20px; z-index:+500; } * html #hcl {position:relative;} .hcltab { height:200px; width:30px; float:left; cursor:pointer; background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqcfFrtHo039Cuun4a4SMW_QCtowPhxNe07_ESJ3rQaifeFGSMq6Ueo5GlNIbisXV8knDYgjuZQNZ8BDrtcXM9_rUlR1nAAN69JdYoFxb1-JKxc_xavoWzBxc1ftb2EaEI-ZvSAd5g4rRS/s1600/buku-4.png') no-repeat; } .hclcontent { float:left; border:4px solid #5F9EA0; background:#F5F5F5; padding:3px; } .hc-credit {font-size:9px}
.hc-credit a {text-decoration:none} </style> <script type="text/javascript"> function showHidehcl(){ var hcl = document.getElementById("hcl"); var w = hcl.offsetWidth; hcl.opened ? movehcl(0, 30-w) : movehcl(20-w, 0); hcl.opened = !hcl.opened; } function movehcl(x0, xf){ var hcl = document.getElementById("hcl"); var dx = Math.abs(x0-xf) > 10 ? 5 : 1; var dir = xf>x0 ? 1 : -1; var x = x0 + dx * dir; hcl.style.left = x.toString() + "px"; if(x0!=xf){setTimeout("movehcl("+x+", "+xf+")", 10);} } </script> <div id="hcl"> <div class="hclcontent">
<------Ganti tulisan ini dengan widget buku tamu anda------>
<div style="text-align: right; font-size: 10px;">
Widget by
<a href="http://yudatfort814.blogspot.com/2011/02/cara-membuat-buku-tamu-tersembunyi.html">
Belajar dari internet
</a>
</div>
<br /> <div class="hc-credit"> <span style="float:left"> <!-- THIS CREDIT MUST STAY INTACT FOR LEGAL USE --> </span> <span style="float:right"> <a href="javascript:showHidehcl()"> </a> </span> </div> </div> <div class="hcltab" onclick="showHidehcl()"> </div> <script type="text/javascript"> var hcl = document.getElementById("hcl"); hcl.style.left = (30-hcl.offsetWidth).toString() + "px"; </script> <!-- left hidden chatbox by http://speedy-indonesia-08.blogspot.com END --></div>
Untuk buku tamu sebelah kanan
<style type="text/css">
#gb{
position:fixed;
top:10px;
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/AVvXsEi06K-Z78T8n0qqoeUrqeSgp7HU4eMi2aaLXyEnnlOMh6wufr4vR33hjvMhHCogw8cUs-KoC6JiQcySBwmUSkVfXlv67FvN3Oaifk0QoSgDh5l6ApPQ6KHmERBO9RiCofoGD07b6lfsnt-Z/') no-repeat;
}
.gbcontent{
float:left;
border:2px solid #A5BD51;
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">
<--------------Masukkan kode script buku tamu anda disini-------------->
<div style="text-align: right; font-size: 10px;">
Widget by
<a href="http://yudatfort814.blogspot.com/2011/02/cara-membuat-buku-tamu-tersembunyi.html">
Belajar dari internet
</a>
</div>
<div style="text-align:right">
<a href="javascript:showHideGB()">
[tutup]
</a>
</div>
</div>
</div>
<script type="text/javascript">
var gb = document.getElementById("gb");
gb.style.right = (30-gb.offsetWidth).toString() + "px";
</script>
#gb{
position:fixed;
top:10px;
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/AVvXsEi06K-Z78T8n0qqoeUrqeSgp7HU4eMi2aaLXyEnnlOMh6wufr4vR33hjvMhHCogw8cUs-KoC6JiQcySBwmUSkVfXlv67FvN3Oaifk0QoSgDh5l6ApPQ6KHmERBO9RiCofoGD07b6lfsnt-Z/') no-repeat;
}
.gbcontent{
float:left;
border:2px solid #A5BD51;
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">
<--------------Masukkan kode script buku tamu anda disini-------------->
<div style="text-align: right; font-size: 10px;">
Widget by
<a href="http://yudatfort814.blogspot.com/2011/02/cara-membuat-buku-tamu-tersembunyi.html">
Belajar dari internet
</a>
</div>
<div style="text-align:right">
<a href="javascript:showHideGB()">
[tutup]
</a>
</div>
</div>
</div>
<script type="text/javascript">
var gb = document.getElementById("gb");
gb.style.right = (30-gb.offsetWidth).toString() + "px";
</script>
Keterangan :
Ganti tulisan yang berwarna hijau dengan kode widget buku tamu anda
kode yang berwarna biru adalah posisi bukutamunya semakin kecil nilai angkanya maka semakin tinggi letak buku tamunya ,sebaliknya semakin besar nilai angkanya maka semakin kebawawah letak buku tamuny. Sekian untuk postingan saya kali.
Terima kasih sobat telah mau berkunjung ke blog ini.
Wassalam.
No comments:
Post a Comment