EarthWeb
Developer.com
Site
windows 2000
visual c++
java
visual basic
javascripts
recommend it
 
Book
thinking in java
 
Interact
forum
guest book
jobs
jokes
what's new

share code
 
Resource
add resource
modify resource
new resource
 

[Internet Jobs]
-----
Java by E-mail:

Get the weekly e-mail highlights on Java!
-----

-

Detect user resolution


Author: Real Gagnon
Author's WebSite: http://tactika.com/realhome/realhome.html


function isLowRes() {
   /*
   ** Check if the browser is running in a low-resolution environment
   ** try to use the screen object (in N4 or e4). If not available, try to use Java.
   ** If not available, assume low-res.
   ** returns true if in a low-resolution environment (width < 800 pixels)
   */
   if (self.screen) 
     return (screen.width < 800);
   else 
     if (navigator.javaEnabled && navigator.javaEnabled())
       return (java.awt.Toolkit.getDefaultToolkit().getScreenSize().width < 800);
     else
       return true;
   }



Posted On: 10-Jul-1999

internet.commerce



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy