browser detection and SSI's
Posted on 1999-11-07
set bc = Server.CreateObject("MSWC.BrowserType")
if bc.browser="IE" then
BrowserType = "MSIE"
elseif bc.browser="Netscape" then
BrowserType = "Netscape"
elseif bc.browser="Lynx" then
BrowserType = "Lynx"
select case BrowserType
Response.Write("You're using Lynx! Whatever!")
Response.Write("you are using IE")
Response.Write("You're using Netscape!")
Response.Write("You're using some other browser I don't know about.")
what i would like to do is instead of using Response.Write to write out what the user is using, is include another file for my navigation. ex:
I tried just replacing the line:
Response.Write("you are using IE") with the include line, this does not work, return errors. i tried doing something similar to:
of course, errors. I know what i am trying to do it doable, Hotbot uses something like this on their site. Anyways, I would be much obliged if anyone can help.