Re: Resizing background using CSS and Javascript according to screen resolution



Seige said the following on 6/20/2006 11:10 AM:
So Mr Grumpy-o-Randy, what do you propose?

I could answer that but my terminology the last time I did was debated over my choice of words. Search for my name, the work wikipedia in the archives, you can find my choice of words for you there.

screen.clientWidth?screen.clientwidth:screen.width;

clientwidth is more meaningful to you than screen.width, for the reason I gave.

Knowing the width of my browser window means something, knowing the width of my desktop is useless in a browser.

height isn't particularly of my concern because width is more dependent
in a design unless its a horizontal website.

All websites are horizontal as well as vertical.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
.



Relevant Pages