Ok sobat langsung saja kali ini saya akan memberikan kode widget pasang iklan samping kanan kiri dengan tombol [x] close di blog.
mungkin ini bisa jadi penting buat sobat kalau ingin mempromosikan iklan sobat.
langsung saja cara nya

  1. Login akun blog sobat 
  2. masuk ke halaman Layout
  3. ADD gadget 
  4. Terakhir masukkan kode di bawah ini lalu save.
<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/AVvXsEgZfAj9t3qXHMpw9zOLOuJU1q3L6KI9w5SQgIw_BtbWOAp_srxEUdCTAIugPdontLamPUj6ltqIISuKhzLELcdTstOc_zUFfNL2iAT_A4qls5gmKl6sNrISwnr2ECYl0xS8L_tzSNftGq7a/s1600/close3.png" /></a></div>
<div onclick='close1()'>
<div style="background: #fff;">
<!-- Begin: http://adsensecamp.com/ -->
<script src="http://adsensecamp.com/show/?id=9I0JIgB%2FEdc%3D&cid=vuHXZxOiCQw%3D&chan=bm60FKRGJEM%3D&type=4&title=3D81EE&text=000000&background=FFFFFF&border=000000&url=2BA94F" type="text/javascript">
</script>
<!-- End: http://adsensecamp.com/ -->

</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/AVvXsEgZfAj9t3qXHMpw9zOLOuJU1q3L6KI9w5SQgIw_BtbWOAp_srxEUdCTAIugPdontLamPUj6ltqIISuKhzLELcdTstOc_zUFfNL2iAT_A4qls5gmKl6sNrISwnr2ECYl0xS8L_tzSNftGq7a/s1600/close3.png" /></a></div>
<div onclick='close11()'>
<div style="background: #fff;">
<a href="http://ads.cpxcenter.com/cpxcenter/s_click.php?nid=4&amp;pid=8804&amp;sid=7788&amp;cid=8538&amp;cuid=n91m0dq&amp;adtype=7&amp;ad=123273&amp;opt1=&amp;opt2=&amp;opt3="><img src="http://ads.cpxcenter.com/cpxcenter/cr_image.php?nid=4&amp;pid=8804&amp;sid=7788&amp;cid=8538&amp;cuid=n91m0dq&amp;ad=123273&amp;adtype=7&amp;opt1=&amp;opt2=&amp;opt3=" border="0" width="300" height="250" /></a>
</div></div></div>

Ket: Ganti kode warna merah dengan kode iklan sobat


0 komentar