Click to See Complete Forum and Search --> : old broswers


chris9902
12-18-2003, 07:58 AM
i was on the ea sports site and if you go on to if with a old broswer it sends you to a page were they tell you to upgrade,

how do you do that

pyro
12-18-2003, 08:21 AM
The best way would be to use CSS, probably. Give a <div> and ID, and insert your message into it. Then, use the @imput (http://www.w3.org/TR/REC-CSS2/cascade.html#at-import) rule to include a bit of CSS that will hide the div (display: none;). Old browser will not read the imported stylesheets, but newer one's will (thus hiding the message).

AdamGundry
12-20-2003, 05:57 AM
On the server-side, you could use PHP's get_browser() function to determine whether your browser is capable of handling the content:

http://www.php.net/manual/en/function.get-browser.php

Adam