RE: [PHP-WIN] determining screen size
| From: | Daniel Sichta | Date: | Thu, 19 Oct 2000 06:53:49 +0000 |
| Subject: | RE: [PHP-WIN] determining screen size | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-3368@lists.php.net to get a copy of this message | ||
This is how I solve this problem couple months ago. I hope it will work for
you !!
<script language="JavaScript">
<!--
var browser = navigator.appName
var version = parseInt(navigator.appVersion)
if ((browser == "Microsoft Internet Explorer" & verze >= 4) | (browser ==
"Netscape" & verze >=
{
w = screen.width
h = screen.height
aw = screen.availWidth
ah = screen.availHeight
color = screen.colorDepth
ret = "http://xxxxxxx/index.php?w=" + w +
"&h=" + h;
window.location.replace(ret);
}
else document.write("Sorry, Your Browser is not supporting JavaScript !!!!!!")
// -->
</script>
DAN
www.customweb.sk <http://www.customweb.sk>
dano@customweb.sk <mailto:dano@customweb.sk>
ICQ: 84700861