Re: [PHP-DB] getting font size from browser

2004-01-31 Thread Roy G. Vervoort
thanks, wil use a java group next time, did not know that

roy
Miles Thompson [EMAIL PROTECTED] schreef in bericht
news:[EMAIL PROTECTED]
 PHP is SERVER side, not browser side.
 That's a Javascript question.
 Miles
 At 11:14 AM 1/30/2004 +0100, Roy G. Vervoort wrote:


 Is it possible to retreive the font size or view size from the browser.
 
 
 In the browser it is possible to change the screenview (make it larger or
 smaller for people with a visual aid). I would like to ineract my
stylesheet
 with these default settings.
 
 thans
 
 Roy
 
 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] getting font size from browser

2004-01-30 Thread Miles Thompson
PHP is SERVER side, not browser side.
That's a Javascript question.
Miles
At 11:14 AM 1/30/2004 +0100, Roy G. Vervoort wrote:

Is it possible to retreive the font size or view size from the browser.

In the browser it is possible to change the screenview (make it larger or
smaller for people with a visual aid). I would like to ineract my stylesheet
with these default settings.
thans

Roy

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP-DB] getting font size from browser

2004-01-30 Thread Peter Lovatt
php cannot read the sizes directly, but you can use javascript to pass
information to php and then use that

This is a routine I use to get screen size


SCRIPT language=JavaScript
!--

var screensize = screen.width;

if (screensize = 640){
  window.location = 'index.php?screensize=640x480' ;
}

else if (screensize = 800){
  window.location = 'index.php?screensize=800x600' ;
}

else {
  window.location = 'index.php ;
}


// --
/SCRIPT

this is on an opening  page - which redirects to another page, passing
parameters to php as it goes.


HTH

Peter






-Original Message-
From: Miles Thompson [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 13:24
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] getting font size from browser


PHP is SERVER side, not browser side.
That's a Javascript question.
Miles
At 11:14 AM 1/30/2004 +0100, Roy G. Vervoort wrote:


Is it possible to retreive the font size or view size from the browser.


In the browser it is possible to change the screenview (make it larger or
smaller for people with a visual aid). I would like to ineract my
stylesheet
with these default settings.

thans

Roy

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php