
May 2nd, 2000, 07:28 PM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
<i><b>Originally posted by : steve</b></i><br />nternet Explorer 4.x Code:<br />You can determine both the screen size and window size in VBScript. Remember,though, that this works only for IE 4.x.<br /><br /><SCRIPT><br /><!--<br /> alert("Screen width = " & screen.width & " pixels.")<br /> alert("Screen height = " & screen.height & " pixels.")<br /> alert("Client Width = " & document.body.clientWidth & " pixels.")<br /> alert("Client Height = " & document.body.clientHeight & " pixels.")<br /><br />--><br /></SCRIPT><br /><br /><br /><br /><br /><br />--------------------------------------------------------------------------------<br /><br />Netscape 3.x and Up Code:<br />You can determine the screen size only through JavaScript.<br /><br /><SCRIPT><br /><!--<br /> if (navigator.javaEnabled()) {<br /> var toolKit = java.avt.Toolkit.getDefaultToolkit();<br /> var screenSize = toolKit.getScreenSize();<br /><br /> alert("Screen width = " + screenSize.width + " pixels.");<br /> alert("Screen height = " + screenSize.height + " pixels.");<br /> }<br /><br />--><br /></SCRIPT><br /><br /><br /><br />------------<br />Luke S. at 5/1/2000 3:49:51 PM<br /><br />I would like to be able to detect client's screen res without using JScript. Any help would be appreciated.
|