Belajarblogspot News :
Home » » Cara memasang iklan melayang di blogspot

Cara memasang iklan melayang di blogspot

Written By Unknown on Senin, 12 Desember 2011 | Senin, Desember 12, 2011

Apabila kita ingin menampilkan iklan pada halaman blog kita dan mudah terlihat oleh pengunjung.kita dapat memasang script sesuai judul posting di atas.

Berikut Cara memasang iklan melayang di blogspot:
Login ke akun blogger kalian =>> klik rancangan =>> Klik Layout/Tata Letak =>> Elemen Halaman =>> klik Add Gadget/Tambah Gadget di lokasi yang Anda inginkan=>> Cari dan pilih HTML/Javascript

Lalu copy kode di bawah ini:

<style type="text/css">
#gb{
position:fixed;
top:10px;
z-index:+1000;
}
* html #gb{position:relative;}
.gbcontent{
float:right;
border:2px solid #000000;
background:#F1DEDE;
padding:10px;
}
</style>
<script type="text/javascript">
function showHideGB(){
var gb = document.getElementById("gb");
var w = gb.offsetWidth;
gb.opened ? moveGB(0, 30-w) : moveGB(20-w, 0);
gb.opened = !gb.opened;
}
function moveGB(x0, xf){
var gb = document.getElementById("gb");
var dx = Math.abs(x0-xf) > 10 ? 5 : 1;
var dir = xf>x0 ? 1 : -1;
var x = x0 + dx * dir;
gb.style.top = x.toString() + "px";
if(x0!=xf){setTimeout("moveGB("+x+", "+xf+")", 10);}
}
</script>
<div id="gb">
<div class="gbtab" onclick="showHideGB()"> </div>
<div class="gbcontent">

<div style="text-align:right">
<a href="javascript:showHideGB()">
.:<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSAqNbd7iJ3DQzVDrLtwMcSznhHng3oEu_pB6SJko0tHXfsEfTQf_BB9qe8kCNyka5MuPgyWozaSTA9CtD6ZxmNl3qF0752i2Ya6XbVvMRuP2g3ngeYpNQvrAb9f9znpOBc7PsEuOgxGjc/" title="kalau muncul, klik lagi" alt="tutup" />:.
</a>
</div>
<center>
SCRIPT IKLAN ANDA DI SINI~
</center>
<script type="text/javascript">
var gb = document.getElementById("gb");
gb.style.center = (30-gb.offsetWidth).toString() + "px";
</script></div></div>


jangan lupa simpan.

Begitulah cara memasang iklan melayang di blogspot.
Share this article :

0 komentar:

Translate

 
Powered : Belajarblogspot
Copyright © 2011. BelajarBlogspot - All Rights Reserved
Template Created by Creating Website
powered by Blogger