Cara Memasang Iklan Melayang di Kanan Dan Kiri Blog, kali ini sayang akan memberikan cara untuk memasang iklan pada sebelah kanan dan kiri pada blog, sama halnya seperti membuat tombol follow melayang. Langsung saja..
1. Silahkan masuk ke Blog
2. Pilih Rancangan / Tata Letak
3. Tambah Gadget
4. Pilih HTML/JavaScript
5. Copy kode dibawah ini
<style type="text/css">
#adsense_blog {
position:fixed;_position:absolute;top:0px; right:0px;width: 160px;
clip:inherit;
_top:expression(document.documentElement.scrollTop+
document.documentElement.clientHeight-this.clientHeight); _left:expression(document.documentElement.scrollLeft+ document.documentElement.clientWidth - offsetWidth); }
</style>
<script type="text/javascript">
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function close1(){
if (persistclose)
document.cookie="remainclosed=1"
document.getElementById("adsense_blog").style.visibility="hidden"
}
if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
</script>
<br />
<div class="clear">
</div>
<div id="adsense_blog">
<div style="text-align: right;">
<a href="" onclick="close1(); return false"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRPzcF1o5UhpURkz9MjBc3VAbQDnT0GPEP5pSpfzRMfeaKChG3BdiIGS2_l_ol5UMCuAxrbZDzmwNgWddnDYmZDJ_PmBiPAXjxe40ksN_g9C59v3tZdt7qQEccL0-V83HcGo4FVAf5nC38/s1600/PhoXo2.png" /></a></div>
<div onclick='close1()'>
<div style="background: #fff;">
<a target="_blank" href="http://www.plazabet.com"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEie_KlItcVbQXlOm3I23Ier5-IJw83y9UpWv2PJNRWDEGklEX8NhbpKPQxHyN9V-iJRsm3FcXrHHWScdCTVnptMpUWCoW7NgtIUbIdwZ6kG21qzx8AidKKTczTb9UvmcdIu55VYEXrjSNw/s1600/Banner-SBDbet.com-160x600.gif" border="0" alt="Iklan Melayang" /></a></div>
</div></div>
<style type="text/css">
#adsense_blog1 {
position:fixed;_position:absolute;top:0px; left:0px;width: 160px;
clip:inherit;
_top:expression(document.documentElement.scrollTop+
document.documentElement.clientHeight-this.clientHeight); _left:expression(document.documentElement.scrollLeft+ document.documentElement.clientWidth - offsetWidth); }
</style>
<script type="text/javascript">
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function close11(){
if (persistclose)
document.cookie="remainclosed=1"
document.getElementById("adsense_blog1").style.visibility="hidden"
}
if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
</script>
<br />
<div class="clear">
</div>
<div id="adsense_blog1">
<div style="text-align: left;">
<a href="" onclick="close11(); return false"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRPzcF1o5UhpURkz9MjBc3VAbQDnT0GPEP5pSpfzRMfeaKChG3BdiIGS2_l_ol5UMCuAxrbZDzmwNgWddnDYmZDJ_PmBiPAXjxe40ksN_g9C59v3tZdt7qQEccL0-V83HcGo4FVAf5nC38/s1600/PhoXo2.png" /></a></div>
<div onclick='close11()'>
<div style="background: #fff;"><a target="_blank" href="http://www.plazabet.com"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEie_KlItcVbQXlOm3I23Ier5-IJw83y9UpWv2PJNRWDEGklEX8NhbpKPQxHyN9V-iJRsm3FcXrHHWScdCTVnptMpUWCoW7NgtIUbIdwZ6kG21qzx8AidKKTczTb9UvmcdIu55VYEXrjSNw/s1600/Banner-SBDbet.com-160x600.gif" width="160" height="600"/></a><p></p></div></div></div>
Catatan!! Ganti yang berwarna hijau dengan link yang akan dituju.. Sedangkan yang berwarna biru dengan URL gambar iklan.
6. Simpan
Dapat juga baca artikel lainnya disini, Semoga bermanfaat ^^
{ 0 komentar... read them below or add one }
Posting Komentar