|
Java: Resolution identifier
This script tells people if they are using the incorrect resolution on your site when placed in the <Body> tag.
<Script language="JavaScript1.2">
<!-- Begin
var bestwidth = 1600;
var bestheight = 800;
if (screen.width != bestwidth || screen.height != bestheight) {
msg = "This site looks best when viewed when your screen "
+ "is set to a " + bestwidth + "x" + bestheight + " resolution, "
+ "but your screen resolution is " + screen.width + "x"
+ screen.height + ". Please change your screen resolution "
+ "to best view the site, if possible. Thanks!";
document.write(msg);
}
// End -->
</script>