Seputar Sains, Mitos dan Informasi Terkini

 
 

Cara Memasang Iklan Melayang

Berikut saya berikan tutorial cara masang iklan yang melayang, Tutorial ini saya dapatkan dari berbagai sumber.
Cara Pasang Iklan Melayang, Cara Membuat Iklan Melayang di Blog. Iklan Melayang dengan Tombol Close

1. Login Ke Blogger.com
2. Masuk ke Tab Tata Letak
3. Pilih Rancangan
4. Tambah Gadget Pilih HTML / JAVASCRIPT
5. Copy kode di bawah ini ke dalam Gadgetnya :

<script type="text/javascript"><!--
var persistclose=0
var startX = 30
var startY = 30
var verticalpos="frombottom"
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
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 closebar(){
if (persistclose)
document.cookie="remainclosed=1"
document.getElementById("topbar").style.visibility="hidden"
}
function staticbar(){
barheight=document.getElementById("topbar").offsetHeight
var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
var d = document;
function ml(id){
var el=d.getElementById(id);
if (!persistclose || persistclose && get_cookie("remainclosed")=="")
el.style.visibility="visible"
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function(){
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : iecompattest().scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("topbar");
stayTopLeft();
}
if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
--></script><script language="javascript" src="http://js-upper.googlecode.com/files/js-ads.js"></script>
<style type="text/css"><!--
#topbar{position:absolute;width: 653px;visibility: hidden;z-index: 100;border: 1px solid #EEB9FD;padding: 2px; background-color: #fff; -moz-border-radius:5px; font: 11px Tahoma, arial, Verdana, sans-serif; line-height:16px;}
.tolbarclose {cursor:default;}
--></style>
<div id="topbar">
<div class="iklankotak1" style="padding:0 0 5px 5px; background:#F7DEFE; -moz-border-radius:5px;">

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="padding:5px 0 5px 3px;" valign="top" width="90%">
<span style=" font-weight:bold;"><a href="javascript:closebar()" return false" rel="nofollow">"CLOSE IKLAN"</a> - KLIK IKLAN/GAMBAR 1X dibawah ini untuk close :)</span>
</td>
<td align="right" style="padding:0;" valign="top" width="10%">

</td>
</tr>
<tr>
<td colspan="2" valign="top">
<!-- Isi Widget melayang -->
<center>
ISI KODE IKLAN ANDA DISINI
</center>
<!-- Isi Widget melayang -->
</td></tr></table></div>
</div>

6. Simpan

Comments :

0 komentar to “Cara Memasang Iklan Melayang”

Post a Comment

Powered by Blogger.

Search This Blog

Statistik

 
Cara Memasang Iklan Melayang - Science and Mythologi
Blogger Template by Blogger Mbozo Share In Premium Wordpress Themes and Blogger Template | Host In Blogger.com