[thelist] PHP multiple style switcher

Jon Molesa rjmolesa at consoltec.net
Fri Nov 23 12:29:45 CST 2007

I don't have it infront of me but there was a class on source forge that
used a prowser.ini file to do browser detection.  A quick Google search
revealed this http://apptools.com/phptools/browser/.  It's using the
HTTP_USER_AGENT variable.  Then you'd just write you three or so browser
specific css files.  Use this logic and in your header construct
different <link type="text/css" href=" $browser-style.css"
rel="stylesheet"> based on the browser.

*On Fri, Nov 23, 2007 at 12:38:23PM -0500 DAVOUD TOHIDY <dtohidy at hotmail.com> wrote:

> Date: Fri, 23 Nov 2007 12:38:23 -0500
> From: DAVOUD TOHIDY <dtohidy at hotmail.com>
> Subject: Re: [thelist] PHP multiple style switcher
> To: "thelist at lists.evolt.org" <thelist at lists.evolt.org>
> on Date: Fri, 23 Nov 2007 16:46:57 +0000 Martin Wrote:> Don't do it like that - you have no way of telling whether a browser > is what it's claiming to be... except by its abilities.
> I understand, but what are the drawbacks for using it anyways?
> > You need something like:> http://www.positioniseverything.net/articles/pie-maker/pagemaker_form.php> which will generate CSS that self-selects for you, with all > appropriate hacks in place.
> I really could not get this one :) . I am not looking for anybody 
> or any means to generate CSS. I will write my own CSS which 
> I have. 
> I am looking for a php switcher to call up the proper style and 
> provide more than one style for the same browser.
> Am I missing something in here? please let me know.
> regards,
> davoud
> _________________________________________________________________
> Send a smile, make someone laugh, have some fun! Start now!
> http://www.freemessengeremoticons.ca/?icid=EMENCA122
> -- 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> For unsubscribe and other options, including the Tip Harvester 
> and archives of thelist go to: http://lists.evolt.org 
> Workers of the Web, evolt ! 

Jon Molesa
rjmolesa at consoltec.net
if you're bored or curious

More information about the thelist mailing list