Clickable Rotating Banners Ads

By
Rotating banner ads allows you to create one banner with multiple advertisements. Using this method gives you more revenue in a smaller space. With user-friendly configurable options, create free rotating banner ads and display them on your web page in a matter of minutes. The banners can hold several different advertisements, which give you more room for other revenue ads or projects. Some services can also create a rotating banner ad for email, forums or blogs.


<script type="text/javascript">
var imgs1 = new Array("http://www.iobit.com/partner/aff/ASC_468X60.jpg","http://www.refererx.com/images/refererx468x60.gif");
var lnks1 = new Array("https://secure.avangate.com/order/cart.php?PRODS=4537179&QTY=1&AFFILIATE=3356","http://tinyurl.com/3jbfk5m");
var alt1 = new Array("Free Advanced SystemCare","RefererX - Make Money Autopilot");
var currentAd1 = 0;
var imgCt1 = 2;
function cycle1() {
if (currentAd1 == imgCt1) {
currentAd1 = 0;
}
var banner1 = document.getElementById('adBanner1');
var link1 = document.getElementById('adLink1');
banner1.src=imgs1[currentAd1]
banner1.alt=alt1[currentAd1]
document.getElementById('adLink1').href=lnks1[currentAd1]
currentAd1++;
}
window.setInterval("cycle1()",3000);
</script>
<a href=""http://www.iobit.com/partner/aff/ASC_468X60.jpg"" id="adLink1" target="_top">
<img src="https://secure.avangate.com/order/cart.php?PRODS=4537179&QTY=1&AFFILIATE=3356" id="adBanner1" border="0" width="468" height="60"></a>


Note:

  • var imgs1 – defines the images url, edit each url with your own banner image url
  • var lnks1 – defines the link the banner will redirect to when clicked
  • var imgCt1 – defines the number of banner you want rotating
  • window.setInterval – defines the rotating time, 1,000 = 1 second
Source: DoNothingMoney

0 comments :

Post a Comment