Friday, May 8, 2009

 It's easy to start your own ad rotator and earn yourself with this script given below....All you have to do is to collect your ads/links to be displayed and to include in the script..... that's all you've done...


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, now we 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.

0 comments

Post a Comment

 


Disclaimer:We does not host any of the templates available on this blog. This blog merely indexes other sites contents.