Looking for a javascript.

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Coal
Forum Newbie
Posts: 14
Joined: Sun Feb 29, 2004 4:22 pm
Location: Taylorville, IL

Looking for a javascript.

Post by Coal »

I'm looking for a javascript that will reload a different set of images with each page reload.

I'm making a music site for the local music scene. The best way to explain what I'm looking for is to give an example.

On one page load I would like:
Picture of singer of Band A
Picture of guitarist of Band A
Picture of Bassist of Band A
Picture of Drummer of Band A

And on another page load I would like:
Picture of singer/guitarist of Band B
Picture of Bassist of Band B
Picture of Drummer of Band B

And on yet another page load I would like:
Picture of singer of Band C
Picture of Lead Guitarist of Band C
Picture of Guitarist of Band C
Picture of Bassist of Band C
Picture of Drummer of Band C

And so on and so forth. I know this can be done in PHP but my server doesn't support PHP. Does anyone know of a script that can do this in Javascript?
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

If the case of the same image to be loaded in two consequent reloads is not a problem then you can simply implement a random image selector algorithm.

If the image sequence matters then you better play with cookies.

You can find some examples on the forum.

Scorphus.
Coal
Forum Newbie
Posts: 14
Joined: Sun Feb 29, 2004 4:22 pm
Location: Taylorville, IL

Post by Coal »

Thanks anyway... but I found a way to get what I wanted.
Post Reply