Cara Pasang Iklan Melayang di Kiri Kanan Blog
Mungkin juga sobat blogger mengalami hal serupa dengan saya waktu pasang
iklan melayang di kanan kiri blog yang masih gagal. Mungkin bisa di
coba kode script yang satu ini dengan adanya tambahan tombol close yang
bisa dikreasikan. Baiklah langsung saja dan berikut tutorial cara
memasangnya:
1. Login Ke akun Blog
2. Klik "Opsi Lainnya" >> kemudian klik "Tata Letak" >> "Tambah Gadget" >> "HTML/Javascript"
3. Kemudian Copas kode script berikut 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/AVvXsEhvvlh6_QKR55sVwkg48XjqW_vVn6N5Wue2PtLQSPdtDq5ux6JW23OzT1kYN-5EMvrkdY5SwOKWCBHs-Rd70TdaDFkuPpM8siOTfXduSEXvpC2Z1SXSdiDluooirCapn-UDfYeWgJyD01Jy/s1600/close3.png" /></a></div>
<div onclick='close1()'>
<div style="background: #fff;">
<a href="http://abyfarhan7.blogspot.com/p/contact-us.html" target="_blank"><img src="http://i1216.photobucket.com/albums/dd374/abyfarhan/PasangIklan_zps0d4e538b.jpg" border="0" alt="Photobucket" /></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/AVvXsEhvvlh6_QKR55sVwkg48XjqW_vVn6N5Wue2PtLQSPdtDq5ux6JW23OzT1kYN-5EMvrkdY5SwOKWCBHs-Rd70TdaDFkuPpM8siOTfXduSEXvpC2Z1SXSdiDluooirCapn-UDfYeWgJyD01Jy/s1600/close3.png" /></a></div>
<div onclick='close11()'>
<div style="background: #fff;">
<p style="line-height: 100%; margin-top: 0; margin-bottom: 0" align="center"> <a target="_blank" href="http://www.soalpsikotes.com/?id=abyfarhan"> <img border="0" src="http://www.soalpsikotes.com/images/ebook-buku-psikotes.gif" width="160" height="600" /></a><p></p> </div></div></div>
4. Selanjutnya Ganti Tulisan Y berwarna merah dengan Kode iklan kalian masing2, Jika sudah save dan lihat hasilnya
Jika Berhasil maka screenshotnya akan seperti blog AF Sahabat Artikel berikut ini:
Tidak ada komentar:
Posting Komentar