English French German Spain Italian Dutch Russian Brazil Japanese Korean Arabic Chinese Simplified
You are here: Home » » Cara Pasang Iklan Melayang dengan Tombol Close

Cara Pasang Iklan Melayang dengan Tombol Close

By. Dedi Yahya S

Pada kesempatan kali ini saya akan memberikan trik dan panduan tentang Cara Pasang Iklan Melayang dengan Tombol Close pada Blogspot.


Cara Pasang Iklan Melayang dengan Tombol Close di Blog :

  • Login pada Blogger
  • Masuk mode Rancangan
  • Pada Elemen Laman klik Tambah Gadget
  • Pilih HTML/JavaScript
  • Masukan kode berikut
<style type="text/css">

#topbar{
position:absolute;
border: 2px red;
padding: 2px;
background-color: transfarent;
width: 305px;
visibility: hidden;
z-index: 100;
}

</style>

<script type="text/javascript">

var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startX = 30 //set x offset of bar in pixels
var startY = 5 //set y offset of bar in pixels
var verticalpos="fromtop" //enter "fromtop" or "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>              

<div class="clear"></div> 
<div id="topbar">
<a onclick="closebar(); return false"><span>Close</span></a>

<div style='margin:10px 0 10px 0; padding:2px; height:500px; width:500px; overflow:hidden; background: none repeat scroll right top rgb(255, 255, 255);  '>

 <script src="http://kumpulblogger.com/scahor.php?b=92922&onlytitle=1" type="text/javascript">

</div>
 </div></script></div></div
Keterangan :
  1. Untuk kode warna biru, ganti dengan kode iklan Anda
  2. Untuk angka 500, ganti dan sesuaikan. Ini adalah ukuran lebar iklan tersebut
  3. Untuk menampilkan background yang transparan hilangkan kode yang berwarna pink
  • Jika sudah Simpan
Demikian blogger tutorial mengenai Cara Pasang Iklan Melayang dengan Tombol Close di Blog.

Semoga bermanfaat dan semoga berhasil.
Terima Kasih ^_^

6 komentar:

  1. Makasih gan infonya. Ini yg saya cari. Kunjungi blog baru saya yg kurang terawat hehe: ag-free.blogspot.com

    BalasHapus
  2. Artikel yang sangat berguna kak..
    Numpang promo yah..

    OMDOMINO Adalah bandar agen situs judi kartu online seperti Poker, DOMINO QQ, Capsa Susun, BandarQ Terpercaya, Agen Sakong. hanya dengan modal 10ribu anda dapat bermain 7 permainan langsung di dalam akun.
    AgenQQ, Domino online.
    WWW.OMDOMINO.COM

    BalasHapus
  3. https://teknikkepemimpinan.blogspot.com/2013/04/organisasi-sebagai-sistem-terbuka-dan.html?showComment=1538733771072#c8014220378774995079

    Welcome to asetqq.vip, the Best and Most Trusted Indonesian Online Poker Site. AsQQQ provides 6 games that can be played in 1 User Id only. Online Poker, DominoQQ, Bandar Ceme, Capsa Susun, Live Poker, Ceme Keliling Games, using Indonesian real money
    poker online

    jdk88.id/ is the jadwal bola, first trusted online betting agent in Indonesia that provides live baccarat, roulette and sicbo online services. Giving customer satisfaction and serving better than others.
    Always determined to be able to serve customers better. Trying to remain a Soccer Agent, Casino Agent, the best and most trusted Online Betting in Indonesia
    Jadwal bola

    Onekartu is a trusted online poker agent Site. Original Money Poker uses IDNPlay servers that are 100% proven trusted and fairplay. Deposit and Withdraw Process in Crotqq start from 10 thousand rupiah and with fast and safe process. Customer Service Crotqq is available 24 hours to help you if you are having problems. onekartu.net is always trying to become a trusted online poker agent for those of you who want a Fairplay Poker game.

    poker uang asli

    TRUSTED !! POKER ONLINE | POKER AGENT | ORIGINAL MONEY POKER SITE
    RELIABLE MurniPoker Online Poker Site Category that provides poker games for real money, Ceme Online, and Domino Online
    This Site Is Engaged in Online Gambling.
    ENJOY THE BIGGEST BONUS SENSATION IN MURNIPOKER
    MurniPoker is the most attractive Poker Gambling site and many enthusiasts of Lapak303 online poker lovers.
    By ensuring the game is fairplay and has sophisticated technology, games are provided like
    Dominoqq, Capsa Susun and many others, we have become one of the best and trusted in Indonesia
    plus more available Ceme Online million rupiah jackpot that you can win every day.

    Poker Online

    happydomino is also the best and trusted Online Domino Poker site in Indonesia which has been proven by reputation and gained the trust of International Online gambling. Both the review of reputable poker sites and the quality of the games we provide do not need to be doubted. By providing the best service and providing assistance that is not complicated and we will provide an explanation that is as easy as possible so that you can easily understand it. We also provide playing tips and tricks so you can easily win in the best online gambling agent games in Indonesia. happydomino is guaranteed to be the fair play 100% online gambling site. There are no Robots in pure games Member vs Member. Our site is also equipped with the most sophisticated security system that is always updated on online gambling issues.

    poker online

    POKERSEJATI is a Poker site We provide interesting online game variants. You can access all of these games practically using just one account.

    situs poker

    BalasHapus
  4. Batu Poker is a trusted online poker site in Indonesia, providing 7 of the most complete and reliable game games, with only 1 user id, members have been able to play 7 games on Batupoker99, with the Batupoker99 free deposit and withdrawal process being the best choice for poker game play. online, batupoker99 holds the title of a trusted Online Poker Site ...




    Batu Poker | Poker99

    BalasHapus
  5. I think most people would 918kiss free credit new member agree with your article. I am going to bookmark this web site so I can come back and read more articles. Keep up the good work!

    BalasHapus

Berlangganan Artikel Blogger Tutorial Melalui EMail. GRATIS!!
Masukkan Alamat Email Anda di Sini

...::: http://blogtutorials-01.blogspot.com :::...