Share this Page URL

Part: 6 Show Me the Money: Turning Your ... > Page Design Questions - Pg. 308

Frequently Asked Questions About HTML 308 Yes, using JavaScript's <SPAN STYLE="font-family: monospace">screen.height</SPAN> prop- erty. In the following example, the script checks this property and then replaces the current page with another page that's optimized (presumably) for the user's screen resolution: <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- // Check for 640x480 if (screen.height == '480') location.replace('480.html') // Check for 800x600 else if (screen.height == '600') location.replace('600.html') // Check for 1024x768 else if (screen.height == '768') location.replace('768.html') // Check for 1280x1024 else if (screen.height == '1024') location.replace('1024.html') // Everything else else location.replace('else.html') //--> </SCRIPT> How do I create a stationary backgroundthat doesn't scroll along with the page text? Add the BGPROPERTIES="FIXED" attribute to your <BODY> tag: