Log in

View Full Version : Image, text and link in random order in a table



Bornfree
11-17-2008, 12:48 AM
Hi Guys,

I'm looking for a a script where i have a set of 6 images with Text and link. i want them them to appear in random order inside a table of 4 cells. Which means that any 1 time there will be only 4 images with it's corresponding text , link and image to appear. Every time a user visits the page, will see the images in different order.

I know you guys can do it without any problems.

I have found a script, but i can't get it to show 4 images at the same time, in different cells.

Medyman
11-17-2008, 01:30 AM
How are you bringing the images in? Hard coding? Dynamic server-side scripting? Content Management System?

Do you want to use a server-side solution(will almost always work) or a client-side (won't work with JavaScript turned off)?

Bornfree
11-17-2008, 03:07 AM
Thanks for responding. i really don't understand the terms that you have used. I'm quite new to this. You can see the my page here (http://www.elsema.com)

I want the 4 images in the left side (FMT-series, 4-20ma etc etc) to randomly rotate and with 2 new ones appearing. all randomly.

Medyman
11-17-2008, 01:42 PM
My question was how are you pulling in those images/text. Did you hard code everything or is being pulled in from some sort of database?

Are you just trying to randomly position those 4? Or do you have a list of products of which you want 4 to randomly appear?

Bornfree
11-17-2008, 08:50 PM
Hi Medyman,

I don't have a database. I have coded the links of the images.

I have a table with 2 rows and 2 columns. And i have a set of 6 images with text and link. I want any 4 to appear in random order. So that frequent visitors know that the pages are updated.

Medyman
11-19-2008, 02:30 AM
Bornfree, you might find this thread (http://dynamicdrive.com/forums/showthread.php?t=36509) to be informative.

Bornfree
11-23-2008, 10:32 PM
Hi Medyman,

Yes i did find it very informative. I'm able to get the images appearing in random order. Do you thik there is a way to include some "text" with the corresponding image as well?