[thelist] PHP multiple style switcher

Martin Burns martin at easyweb.co.uk
Fri Nov 23 15:31:18 CST 2007


On 23 Nov 2007, at 20:04, DAVOUD TOHIDY wrote:

>> If the former, there is no need to detect the browser server side.
>
> yes that is correct but why not? and if browser detection is going
> to happen client side like the one that I have in my portfolio:
>
> 1-what if somebody has disabled Javascript
> 2-is there any browser detection method which does not
> involve javascript in client side? other than what I have in
> my portfolio which partially uses javascript?

Yes - the CSS example I pointed to uses zero JS. It's all conditional  
CSS (using CSS hacks for some of it).

This is the *only* reliable way to accurately serve the correct CSS to  
the correct UA.

Cheers
Martin

--
 > Spammers: Send me email -> yumyum at easyweb.co.uk to train my filter
 > http://dspam.nuclearelephant.com/








More information about the thelist mailing list