|
| |
|
|
Guest
|
Explorer/Navigator problem - 4/1/2001 16:28:00
I have a website that uses SSI to display pictures and captions <http://www.d.umn.edu/~ewestman/orch/day1.shtml>. It looks good in Explorer, but Netscape screws up the table format.I would like to have two formats to display the pictures - one for IE, the other for NN. Is there any slick way to detect what browser is being used to look at your site, and then change SSIs to accomodate that? I don't need a terribly detailed answer - if someone could just point me in the right direction I would be appreciative. Thanks.
|
|
|
|
Gil
Posts: 7533 From: North Carolina, USA Status: offline
|
RE: Explorer/Navigator problem - 4/1/2001 17:48:00
You can use a script to detect the browser and display a page for it and just call whatever SSI works for that browser. Here's a really simple script, it doesn't look for versions just NN or IE <SCRIPT LANGUAGE="JavaScript"> app = navigator.appName if (app == 'Netscape'){ parent.location="Netscape.html" } else if (app == 'Microsoft Internet Explorer'){ parent.location="IExplorer.html" } </SCRIPT> ------------------ Gil Harvey The Host Factory Resellers are our speciality "How Can I Miss You If You Won't Go Away? "
|
|
|
|
Guest
|
RE: Explorer/Navigator problem - 4/1/2001 21:10:00
Thank you, that worked. One question though. When I use this code, after the browser is redirected it pops out of the frame that it was in and displays full-screen. Is there any way to keep it on the frame?Thanks again.
|
|
|
|
Gil
Posts: 7533 From: North Carolina, USA Status: offline
|
RE: Explorer/Navigator problem - 4/1/2001 22:17:00
Frames? Well, I won't go into all the obvious reasons not to use frames here - just make each browser specific page (Netscape.html & IExploer.html in the example above) a frameset...------------------ Gil Harvey The Host Factory Resellers are our speciality "How Can I Miss You If You Won't Go Away? "
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|