Click to See Complete Forum and Search --> : Auto Changing Background Image


static2000
06-18-2003, 07:58 PM
I'm working on a web page for the company._ I can get my background to change color depend in the resolution of the monitor using JavaScript._ For an example if your monitor is set at 800x600 the background will be blue, if its 1600X1200 it will be green.

My question is...how do you change the background image based on the monitor size?_ I know it's something easy but I don't know the syntax. Attached is my sample code.__Can you help me?

static2000
06-19-2003, 09:04 AM
Thank you for helping me. I put your code and mine side by side and found that I made various little mistakes. The big show stopper was when I used a backslash and not the forward slash in the URL for the image file. As soon as the new webpage receives approval it will be posted at www.eagletmc.com

Thanks for all your help.
Static2000 :)