Anyone know of a java script that will

…detect the users screen resolution?

Anyone viewing my site at less than 1024 x 768 would be completely frustrated and likely abort mission immediately. In retrospect—my non-resizable pop-up window site was a bad idea, or at least poorly planned in terms of pixels and measurements.

Anyway, an automated message to the viewer suggesting they adjust their screen rez. if it was less than 1024 x 768 sure would be helpful:)

I could suggest it myself on the intro page, but I think that implies the poor planning I am so desperately trying to mask!

Maybe we do a little poll here: Would anyone who reads this post reply and state their current resolution settings?

Cheers!

/s
e/
/a
n/

Try something like this :

<script language="JavaScript">
var width = screen.width
var height = screen.height
if (width >= 800)
document.write(" Your screen resolution is set to "+width+ "x" +height+". Your screen settings are acceptable for this site."); 
else {
document.write(" Your screen resolution is set to "+width+ "x" +height+". This site is best when viewed at 800x600 or greater.</B><BR>");

}
</script>

…you got me on the right track and everything runs like a dream now!!=)

Cheer /s /e/a/n/