SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict WebMasterAJ's Avatar
    Join Date
    Aug 2000
    Location
    Miami
    Posts
    335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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!
    Andrew Tatum
    FinHeaven & Co - Get Drenched With Finformation
    The FinHeaven & Co Forums

  2. #2
    SitePoint Wizard westmich's Avatar
    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.
    Westmich
    Smart Web Solutions for Smart Clients
    http://www.mindscapecreative.com

  3. #3
    SitePoint Addict WebMasterAJ's Avatar
    Join Date
    Aug 2000
    Location
    Miami
    Posts
    335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.
    Andrew Tatum
    FinHeaven & Co - Get Drenched With Finformation
    The FinHeaven & Co Forums


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •