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/AVvXsEiVXr2apdldKilnMTdmx53uOhIh-p_gA6DH_OgiO-r59R45y_JLIKPVPK1ouvJoz37iGD76xt3OZ_GnqOJlZKWUwefH1vdTQAZ6l94zadv-J69_GXsQA-xDXsYIr1-4wB468bOrkArwO6Ez/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/AVvXsEiVXr2apdldKilnMTdmx53uOhIh-p_gA6DH_OgiO-r59R45y_JLIKPVPK1ouvJoz37iGD76xt3OZ_GnqOJlZKWUwefH1vdTQAZ6l94zadv-J69_GXsQA-xDXsYIr1-4wB468bOrkArwO6Ez/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
Tidak ada komentar:
Posting Komentar