View Full Version : Javascript for Formatting Image Size to Browser

08-03-2002, 03:22 AM
Does any one have the javascript code for formatting an Image to the size of the browser when resized? I found one code on a website, but it had a huge advertisement stuck in the javascript that I couldn't figure how to remove. I just want my image graphic on my index page to fit the browser when resized.

Hope someone can help!

Thanks so much in advance.


08-03-2002, 03:44 AM
Hi, here's a script you may be interested in having a look at:


Is that what you were looking for?

08-03-2002, 05:54 AM
Well, that would be perfect...but the image that i want to fit in the browser is a sliced image in tables.. so I can't add <img src="image.gif"> in the code line. Any suggestions?