View Full Version : Basic Background Javascript

03-23-2006, 12:07 AM
Alright well since i've searched forever and cant find an answer to my basic question I decided to post here, im sure someone out there can help me. I am very new to Javascript and have a basic understanding of how to read the code, but when it comes to making one from scratch I still have some troubles. Anyway, onto the problem.

I have a site where I would like the background image to be scaled to match the users width and height. I figured it would be easier just to take a large 1600 x 1200 image and somehow make Javascript resize it using the document.write.background code and then telling it to match the .width and .height of the user's screen.

Hope someone understands what im trying to do and can help me out! I know im a total 'noob' when it comes to this but you gotta start somewhere ;)

03-23-2006, 01:00 AM
Unwise and probably impossible. Keep your background images under 10K as a courtesy to dial up connections.