View Full Version : Rotating Affiliate Links

02-07-2007, 01:07 AM
I would like to use something like the Blending Image Slideshow Script, or something similar to it, to rotate affiliate banners that I have on my site. Affiliates provide the html with my affiliate link and the link for the banner already for us, we just need to copy and past onto our site. Where in the script do I paste this information?

02-07-2007, 06:11 AM
Which script exactly? If it is the one I am thinking of, there is nowhere to simply plug in all of that information.

This script might work out for that:


using its:

from the Demo
Supports two ways of embedding the contents to feature- plain HTML contained inside DIV tags . . .

02-07-2007, 02:44 PM
Here is the link for the one i really like. Can I make it work with this?


02-07-2007, 07:39 PM
For something like what you are talking about, just about any slide show should be able to be made to work. It is simply a matter of modifying the slide show so that it can support the presentation of the desired/required markup. This slide show is a somewhat poor choice as, it doesn't work at all in Opera to begin with and the blending effect only works in IE.

Here is where you can insert the banner images:

//specify images
var slideimages=new Array("image1.gif","image2.gif","image3.gif")

Here is where you can insert their link URLs:

//specify corresponding links
var slidelinks=new Array("http://www.dynamicdrive.com","http://javascriptkit.com","http://www.geocities.com")

However, I think from what you are saying that there is additional information/markup for each banner. What you refer to as:

my affiliate link

To get that and anything else that I may be missing into the script's generated content will require modification. I cannot be sure of the required modification(s) without seeing what a typical banner with its complete markup as furnished to you looks like.

This might be a better slide show to start from:


It is very similar looking to the blending one but works in more browsers. It would also require modification(s) though. That is why I mentioned the content slider before, in that one, you could just put your code as given to you into the divisions that the slider uses. The slider's appearance can be highly and relatively easily modified using only its style.