nevets2001uk
IS-IT--Management
I'm trying to figure out the best way of allowing variable images on my web page and wondered if anyone might have an idea.
What I want to do is have a set of images for the page that will change depending on the colour scheme the user selects. This could be a large number of images on each page.
The way I'm thinking of doing it is to have seperate image directories for each scheme and to have a variable for the path to each of those folders which changes depending on the scheme in use.
However I'm not really sure how I could change the source values in the image tags on the html page? Ideally something like <img src=variableforpath & "imagename.gif" /> or something would work but how can I get that variable into the code?
Cheers!
Steve Gordon
What I want to do is have a set of images for the page that will change depending on the colour scheme the user selects. This could be a large number of images on each page.
The way I'm thinking of doing it is to have seperate image directories for each scheme and to have a variable for the path to each of those folders which changes depending on the scheme in use.
However I'm not really sure how I could change the source values in the image tags on the html page? Ideally something like <img src=variableforpath & "imagename.gif" /> or something would work but how can I get that variable into the code?
Cheers!
Steve Gordon