Cara Memasang Iklan Melayang di Kanan Dan Kiri Blog

Diposting oleh Tom Serizawa on Selasa, 06 November 2012

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..

gambar iklan

Berikut adalah caranya..
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="http://3.bp.blogspot.com/-gwsFvgzCBDE/UC5jBenZUoI/AAAAAAAACLU/xlY3lJEl2IY/s1600/PhoXo2.png" /></a></div>
<div onclick='close1()'>
<div style="background: #fff;">
<a target="_blank" href="http://www.plazabet.com"><img src="http://3.bp.blogspot.com/-OBoSSJiJQIg/UDCpU6ableI/AAAAAAAAAk0/wj5fg1SMMew/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="http://3.bp.blogspot.com/-gwsFvgzCBDE/UC5jBenZUoI/AAAAAAAACLU/xlY3lJEl2IY/s1600/PhoXo2.png" /></a></div>
<div onclick='close11()'>
<div style="background: #fff;"><a target="_blank" href="http://www.plazabet.com"><img border="0" src="http://3.bp.blogspot.com/-OBoSSJiJQIg/UDCpU6ableI/AAAAAAAAAk0/wj5fg1SMMew/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