SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Include If... PLEASE HELP
-
Mar 2, 2001, 16:07 #1
Alright, this little snip of code will be able to tell whether a visitor is coming to the site if in IE or Netcrap, I mean Netscape
, How can I make the Netscape (Mozilla in the code) be JUST for 6.0 visitors?
Code:<!--#if expr="${HTTP_USER_AGENT} = /MSIE [4-9]/"--> <!--#include virtual="../browsers/ie.shtml" --> <!--#elif expr="${HTTP_USER_AGENT} = /Mozilla\/[4-9]/"--> <!--#include virtual="../browsers/netscapebar.shtml" --> <!--#else --> <!--#endif -->
THANKS!
-
Mar 2, 2001, 16:31 #2
- Join Date
- Mar 2000
- Location
- Muskegon, MI
- Posts
- 2,328
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
SSI's are processed first so all of your include will be added.
-
Mar 2, 2001, 18:03 #3
I know that SSIs are processed first. The code does work, however, it works for the older versions of IE and Netscape. However, I want to make the Netscape part to only show when the visitor is viewing the site with Netscape 6.
Bookmarks