Click to See Complete Forum and Search --> : determine image by cookie?


mandyjay
09-16-2003, 07:56 AM
Hi

I need some help with a script which 'basically' needs to do the following:

On the website there are various sections which have the same content but just change an image at the top of the page. In order to make the site management easier I need to be able to determine the image by which link on the site the user clicked.

At the minute I have around 5 copies of each page nd any changes have to be made to each of the them. I need to get round this and just have one page which shows the correct image.

I think I just need to store a variable maybe in a cookie which determines which section of the site the user is in and shows the right image accordingly.

I have been on maternity leave for a few months so i'm a bit rusty!

pyro
09-16-2003, 08:07 AM
Sounds like a job for serverside coding, so you don't have to worry about whether the users will/will not have JavaScript enabled...

mandyjay
09-16-2003, 08:12 AM
Thanks for your reply...however:

It has to be client side. I have a generic image if they don't have javascript enabled which will have been determined at the front end of the website and non-js enabled users will have been redirected to another bit of the site.

mandyjay
09-16-2003, 08:17 AM
Thanks for your reply...however:

It has to be client side. I have a generic image if they don't have javascript enabled which will have been determined at the front end of the website and non-js enabled users will have been redirected to another bit of the site.