Cara Memasang Widget Chat Box yang Tersembunyi di Kanan
Yang pertama dan utama adalah sobat terlebih dahulu harus mempunyai kode html chat box tersebut. Salah satu caranya adalah dengan mempunyai akun pada situs cbox langsung saja masuk ke situs cbox, klik disini.
OK, jika sobat telah mendapatkan kode html-nya, langsung saja sob ini dia langkah-langkahnya:
1. Masuk akun Blogger sobat.
2. Masuk pada bagian Tata Letak.
3. Klik tambah gadget di posisi mana saja.
4. Pilih HTML/Javascript.
5. Masukan kode html berikut.
<style type="text/css">
#gb{
position:fixed;
top:50px;
z-index:+1000;
}
* html #gb{position:relative;}
.gbtab{
height:400px;
width:30px;
float:left;
cursor:pointer;
background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRIiIfyjcyu22VKU0wu-sifGqO16HD-VqcUQfZwiwqSAmM-wCbzGqASLY_yNP6cij6dmjMNQoj9T5ZoF7ddRiaL36M_H0VKBsJaA_Y1lYAz_ZfQUrW_thP1eQFqAfsrorixC1eOiDXJEk/s1600/Bukutamu6.gif') 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">
MASUKAN KODE CHAT BOX DISINI
<div style="text-align: center;">
<span style="font-size: 10px;"><span style="font-family: "Trebuchet MS",sans-serif;">Mau Widget Ini? <a href="http://regibrader-free.blogspot.com/2013/02/cara-memasang-widget-chat-box-yang_18.html" target="_blank">Klik Disini</a></span></span></div>
<div style="text-align:right">
<a href="javascript:showHideGB()">
[tutup]
</a>
</div>
</div>
<script type="text/javascript">
var gb = document.getElementById("gb");
gb.style.right = (30-gb.offsetWidth).toString() + "px";
</script></div>
#gb{
position:fixed;
top:50px;
z-index:+1000;
}
* html #gb{position:relative;}
.gbtab{
height:400px;
width:30px;
float:left;
cursor:pointer;
background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRIiIfyjcyu22VKU0wu-sifGqO16HD-VqcUQfZwiwqSAmM-wCbzGqASLY_yNP6cij6dmjMNQoj9T5ZoF7ddRiaL36M_H0VKBsJaA_Y1lYAz_ZfQUrW_thP1eQFqAfsrorixC1eOiDXJEk/s1600/Bukutamu6.gif') 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">
MASUKAN KODE CHAT BOX DISINI
<div style="text-align: center;">
<span style="font-size: 10px;"><span style="font-family: "Trebuchet MS",sans-serif;">Mau Widget Ini? <a href="http://regibrader-free.blogspot.com/2013/02/cara-memasang-widget-chat-box-yang_18.html" target="_blank">Klik Disini</a></span></span></div>
<div style="text-align:right">
<a href="javascript:showHideGB()">
[tutup]
</a>
</div>
</div>
<script type="text/javascript">
var gb = document.getElementById("gb");
gb.style.right = (30-gb.offsetWidth).toString() + "px";
</script></div>
6. Atur ukuran dan posisi pada kode berwarna biru.
7. Ganti tulisan warna merah dengan kode html chat box sobat.
8. Ganti URL gambar pada kode warna ungu dengan gambar yang sobat inginkan. Namun bila sobat tidak menggantinya hasilnya akan seperti berikut.
9. Atur warna background dan warna border pada kode warna hijau.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4CFRNeTkXA64m39bI6Obsa-UCGhG8hF4cwWDPE5b-fI8fmdlQP71wVn03X4sGqur0_h7w2XQHHlTuT1yZ5J-abt69w3Govmmwk0OCGP9zK5SghkB1CG0F9ZRRoozn9M9cVp9T_oVMIHc/s1600/Chatbox.png | |
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg56GiAOgpqANndTp2jhxayJKGb6vQscudQJ0xIamVTtVpJEnmY1Letj0-pLRfiRHj_ZrlT7MwzuHo7Zn7UXESHD7eR6dahoazMv6wgGP90ndEELH5UW0M9k6oizQ0zL7vDIyLnLFHm9OQ/s1600/Bukutamu3.png | |
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDlqc4whCUtxEAFV4b2ULGnn9nIutPRxlbHECUFEorfmFMazf5psKfSgtF9KDnsSkoba4796hi-O5idSZJ9zhWWhLaVu-fNetdcJr8-B2TKRQ58AlFYSs9Almk3KKF8ifD74VFgVLkySY/s1600/bukutamu2.gif | |
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeFKbf5j0vwM5QVopJ31Iy27sfSzMPuYDdtH5yf9cjsjnXhTeglCpjlF19ebcjCyLqZ2unevmWiuUfZM3E4nrHCO7MNuccu_3KUrum2muTwRgt14LKGFCwNXIfcKzx8QmCKMIo_d03vgc/s1600/bukutamu5.png | |
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhh86re4yblDydsyRxRlSBXVew9AqGywhA5oGXJX90D43_SJg6VHC091O2MzJo-cx2UuZUdEU4nezraWkLDZ8-gY35waPj1gfUMTyNHO4fEHYZLbk38q93Y_7jfcXQdqMH21cW_U52Jf0k/s1600/2131wkl.png | |
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNSlm5R2ppJLXSaNzn8IvDsZ-_UnsZLL_5qLDA3UzLXPDbXw5i9ArqckDbHWgoFe1a6jtGKmdwrR7NOvKhJGeEOSSriOCqisoNDkuMsu3of5NS-3tl5D_thJ3eUhAlX5yam6hkNsjtkPM/s1600/bukutamu4.png | |
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS55VbSIp59DzhBW0ajHzEWl0-DCxh1vu4ETQqk0YWE4xSTVCTlGJVaOjZs_vBsURsfTWUzhpYHbH4TqzISnA7zlkYYO7T8w4IRwwM0JIQSbJLL2DtFH5-rTnkfbS_xVeqhmMhVIQ_2Ns/s1600/BukuTamu1.png |
10. Klik Simpan dan selesai. Lihat Hasilnya.
0 komentar:
Posting Komentar