1) Script Title:
Screen resolution and detection script
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex9/info1.htm
3) Describe problem:
I'd just like to quickly ask if this is valid, and if it isn't, a version that would work:
The result should be that if the screen resolution of a person is less or equal to 640x480 a start table tag should be written with a size 100%, if it isn't (eg 1024x768) then draw it 75%Code:<script language="JavaScript1.2"> <!-- /* Screen resolution detection and notification Script- © Dynamic Drive (www.dynamicdrive.com) For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com */ var correctwidth=640 var correctheight=480 if (screen.width<=correctwidth||screen.height<=correctheight) document.write("<table border='1' width='100%' align='center'>") else document.write("<table border='1' width='75%' align='center'>") //--> </script>



Reply With Quote

Bookmarks