Hi Marc,

This is one for JavaScript, methinks.

<html>
<head>
<title>Screen detection</title>
<SCRIPT LANGUAGE="JavaScript">
<!--

 function GetSW() {
  var sw = screen.width;

  return sw;
 }

 function GetSH() {
  var sh = screen.height;

  return sh;
 }

//-->
</SCRIPT>
</head>
<body>

Your browser resolution is

<SCRIPT LANGUAGE="JavaScript">
<!--

 document.write(GetSW() + ' by ' + GetSH());

//-->
</SCRIPT>

 pixels, so it's therefore recommended you view the site using this
resolution (or whatever's closes to it).

</body>
</html>

"Marc van Duivenvoorde" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm trying to make a small browser and screen resolution script for my
> site, the browser part isn't a problem, but I can't find a function for
> screen resolutions, does anyone know whether such a function exists.
>
> Thanks,
>
> Marc van Duivenvoorde
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to