Creating Ads Float with buttons Close

Floating object or often also called Float Top Bar, a small window that appears on the top of the page every time we visit a Website or Blog. Float Top Bar usually contain Content Ads or a Form Subscribe to definitely be seen by visitors to our Website or Blog. To create a floating ad like this is easy, just a few steps, then the Floating Ads can be mounted on a Website or Blog.

Okay, here are the steps of manufacture:
  1.  Login to your account Blogger.com
  2.  Go to the Layout tab
  3.  Choose a Page Element
  4.  Add a Gadget Select HTML / JAVASCRIPT
  5.  And copy the code below into it
<a onblur="try {parent.
deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2718VHrbzrZ8Lf_ttBVAYPjGFNBx_5jD-MMTQz6wia3WrvkhwxdxN9RwDxM34bBjk6IT3DSfsiy4JnwWGbyl_Wx9uwaM7iOsOIL41256piJVCojZ1kLMp2E3pU-aBwAZPfLY-UNSWZlU/s1600-h/Widget.JPG"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 300px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2718VHrbzrZ8Lf_ttBVAYPjGFNBx_5jD-MMTQz6wia3WrvkhwxdxN9RwDxM34bBjk6IT3DSfsiy4JnwWGbyl_Wx9uwaM7iOsOIL41256piJVCojZ1kLMp2E3pU-aBwAZPfLY-UNSWZlU/s400/Widget.JPG" alt="" id="BLOGGER_PHOTO_ID_5433478876639914642" border="0" /></a>

<style type="text/css">
#gb{
position:fixed;
top:10px;
z-index:+1000;
}
* html #gb{position:relative;}
.gbcontent{
float:right;
border:2px solid #A5BD51;
background:#ffffff;
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()">
.:[Close][Click 2x]:.
</a>
</div>
<center>
Insert ad code or image that you want here
</center>
<script type="text/javascript">
var gb = document.getElementById("gb");
gb.style.center = (30-gb.offsetWidth).toString() + "px";
</script></center></div></div>
     6. Save

For the red writing, you can change the ad code, or writing the desired image, good luck.

No comments:

Post a Comment

Enter your email address:

Delivered by FeedBurner

Copyright © Obay Tutorial. All rights reserved. Template by DinDun Corp.Ltd