Skip to content Skip to sidebar Skip to footer

Widget Atas Posting

Advertise Your Links by Using Random Banner

Hi everyone, I hope all of you are in a good health, :). It's been 3 days after my last posting, Own your Debit Card for FREE from Payoneer, I do not post anything in my blog due to my other activities. Here I am back again to share this simple technique how we can show our banner in our blog randomly.

I think it's effective to show our banner for the readers randomly. It's better and not taking many spaces to attach our banner one by one in our blog. When you have put this banner-It can be more than 5 banners you can put in your blog-there will be different banners appear in your blog every time you refresh your blog.

Well, Tips of Blog will share the script and you just put this script in your Page Element in your blog. It will be over in no time for there is nothing difficulty to put it. Put the script below in wherever you want;
<script language="JavaScript">
<!-- Begin
var Ads_Sum = 5;
var Cur_Time = new Date()
var second = Cur_Time.getSeconds()
var Ads_Sub = second % Ads_Sum;
Ads_Sub +=1;
if (Ads_Sub==1) {
txt="";
url="Your URL Target";
alt="Your Banner Title";
banner="Your Banner URL";
width="468";
height="60";
}
if (Ads_Sub==2) {
txt="";
url="Your URL Target";
alt="Your Banner Title";
banner="Your Banner URL";
width="468";
height="60";
}
if (Ads_Sub==3) {
txt="";
url="Your URL Target";
alt="Your Banner Title";
banner="Your Banner URL";
width="468";
height="60";
}
if (Ads_Sub==4) {
txt="";
url="Your URL Target";
alt="Your Banner Title";
banner="Your Banner URL";
width="468";
height="60";
}
if (Ads_Sub==5) {
txt="";
url="Your URL Target";
alt="Your Banner Title";
banner="Your Banner URL";
width="468";
height="60";
}

document.write('<left>');
document.write('<a href=\"' + url + '\" target=\"_top\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0><br>');
document.write('<small>' + txt + '</small></a>');
document.write('</left>');
// End -->
</script>
Now you can manage this script by focusing in Red line and manage your banner height and width by changing the size in RED line. You can also add your banner how many banners you want to show in your blog. I hope your work can work well.

In advance, thanks.

7 comments for "Advertise Your Links by Using Random Banner"