[thelist] xssi serving up separate css

Morbus Iff morbus at disobey.com
Fri Oct 12 09:32:57 CDT 2001


You're overcomplicating the issue ;)

If you know that this pulls in the css:

  <link href="stylesmain.css" rel="styleSheet" type="text/css">

Then really, you just need:

  <!--#if expr="$HTTP_USER_AGENT = /MSIE [456]/" -->
    <link href="stylesmain.css" rel="styleSheet" type="text/css">
  <!--#elif expr="$HTTP_USER_AGENT = /Mozilla\/4/" -->
    <link href="stylesnn.css" rel="styleSheet" type="text/css">
  <!--#elif expr="$HTTP_USER_AGENT = /Mozilla\/[56]/" -->
    <link href="stylesmain.css" rel="styleSheet" type="text/css">
  <!--#else -->
    <link href="basics.css" rel="styleSheet" type="text/css">
  <!--#endif -->

Notice a few things:

   - I've removed the {} around HTTP_USER_AGENT
   - simplified the regexp. when you don't need to be specific
     about matching, it's best to be as generic as possible.


--
Morbus Iff ( softcore vulcan porn rulezzzzz )
http://www.disobey.com/ && http://www.gamegrene.com/
please me: http://www.amazon.com/exec/obidos/wishlist/25USVJDH68554
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus







More information about the thelist mailing list