View Full Version : Ad Carosel with links

09-15-2010, 04:07 PM
Please look at the link below.


You will notice the images below with red numbers. They are on a rotation. I need to know if it is possible to get each seperate image to link to seperate individual links. If so, How?


09-15-2010, 04:45 PM
The rotation isn't working for me.

09-15-2010, 08:38 PM
It is on this end. You have to refresh the page in order for it to work...But im sure you knew that.

09-15-2010, 08:56 PM
No I didn't know that. I'll try it. Carousel says to me that it rotates without a page refersh but I understand now.

09-16-2010, 06:04 AM
Have you tried just wrapping each image in an anchor tag with href?

<a href="whatever.html"><img src="route/to/image.jpg"></a>

That would seem the thing to try.

09-16-2010, 01:59 PM
I havent triedanything yey. Im looking for a solution.

Here is the Java....Could you possibly show me in an example? Thanks

<script language="JavaScript" name="Side Images">
var pix = new Array();
pix[0] = "bimages/image1.jpg";
pix[1] = "bimages/image2.jpg";
pix[2] = "bimages/image3.jpg";
pix[3] = "bimages/image4.jpg";
pix[4] = "bimages/image5.jpg";
pix[5] = "bimages/image6.jpg";

function randomNumber(n) {
number = Math.floor(Math.random() * (n + 1));
return number;

09-16-2010, 02:38 PM
Ah ha! Dynamically loaded with the image paths so it may be hard to add links. View the page source on this site; http://www.minisonthedragon.com/ (set up for a friend) and you'll see that we used something called 'rotator'. This has an image path and an action (i.e. the link). It works nicely as you'll see with in the banner. Slight difference is that this one does rotate without the page refresh.

I'm sure you can download the files and use that.

09-16-2010, 02:39 PM
Here is the site it came from; http://www.dyn-web.com/code/rotate_images/

If that isn't what you want then a quick Google search should turn up something suitable.

09-16-2010, 04:12 PM
Works like a charm

09-17-2010, 05:54 AM
No problem :)