hwg-languages archives | Jul 2001 | new search | results | previous | next |
RE: javascript questionby Andrej Kostresevic <temporalassassin(at)yahoo.com> |
|
ps These do work in Netscape 4+ and IE 4+ for sure. Dont know about other browsers. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ screen.availWidth and screen.availHeight work great! They return the number of pixels corresponding to the screen width and height. Hope that helps, Andrej --- Derek Lavine <derek(at)realware.com.au> wrote: > Hi all, > > I am trying to workout what resolution a client machine is running in > using > Javascript. I need the code to work on as many browsers as possible. > > What I need to do is load a different graphic or page depending on the > resolution the user is using. > > If anyone could point me in the right direction I would be very > grateful. > > Thanks very much > Derek > __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA