RE: [PHP] Resolution
| From: | Rudolf Visagie | Date: | Mon, 23 Jul 2001 15:49:04 +0000 |
| Subject: | RE: [PHP] Resolution | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-59229@lists.php.net to get a copy of this message | ||
Hi Kyle,
I use the following:
<script language="JavaScript">
<!-- hide from none JavaScript Browsers
function PassScreenWidth(what) {
document.login_frm.screen_width.value=what
}
function GetScreenSize() {
var screen_width = screen.width;
return screen_width;
}
// - stop hiding -->
</script>
.
.
.
<FORM ACTION="login1.php" METHOD="POST" NAME="login_frm">
<input type="hidden" name="screen_width">
<input type="submit" value="Login" name="Login"
onClick="PassScreenWidth(GetScreenSize())">
</form>
Cheers
Rudolf
-----Original Message-----
From: Kyle Smith [mailto:dbzno1fan@hotmail.com]
Sent: 24 July 2001 01:45
To: php-general@lists.php.net
Subject: [PHP] Resolution
is there a code to show a users screen resolution and/or make a webpage go
to a certain page of the site depending on the users screen resolution?
-legokiller666-
http://www.StupeedStudios.f2s.com
New address.... new site
ICQ: 115852509
MSN: dbzno1fan@hotmail.com
AIM: legokiller666