Visitor to choose background colour, how cater for image backgroun

B

Barry

I have to allow the visitor to choose whether the site has a White background
or a Black background.

I can flip the text colour and the background colour by using CSS styles.

But what's the best way to flip images?
i.e. if the background is white, then my .jpg's will tend to have white
backgrounds (ie white surrounding whatever the object in the picturer), but
when the background is black - the pictures would look wrong if it stayed
with a white background.

I thought about using transparent gifs, but most of the images are too
complex (ie would be too large to store/slow to display.
I understand that transparent pgn's are not supported by most browsers yet -
is this right?

Does anyone have any example sites that do the same/similar thing?

Thanks for you help... Barry
 
B

Barry

Thanks Thomas (and so quick a reply)
I like the idea of folders, much better than my original idea of a suffix to
each of the image names.
Do I deduce that you are using server side scripting to select the images
from the right folder,
or is it best done with client side scripting?
I am already using PHP and javascript, so if you have any examples,
suggestions using either of these?
 
T

Thomas A. Rowe

I use Classic ASP to just change the folder name based on the time of year via IF statements.

In your case, you would most likely want to store a cookie with the user choice and then read that,
unless the user has to login, in which case you would store the value in the database, etc.


--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top