Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

  1.  permalink
    Andy Clarks website http://www.stuffandnonsense.co.uk/ has browser detection code that sends the user to another webpage if thier browser is too old (like IE6.0). From what i can see, this might be it...



    <head>

    <!--[if lte IE 6]>
    <link rel="stylesheet" type="text/css" href="http://www.stuffandnonsense.co.uk/styles/css1" />
    <![endif]-->


    </head>

    <body>
    <!--[if lte IE 6]>
    <div id="ie6">
    <h4>Hey old timer!</h4>
    <p>We've spotted that you are using an out-of-date version of Internet Explorer. It's time to put on your parka and ride to a better browser such as <a href="http://www.microsoft.com/windows/products/winfamily/ie/">Explorer 7</a>, <a href="http://www.mozilla.com/">Firefox</a> or <a href="http://www.opera.com/">Opera</a>.</p>
    </div>
    <![endif]-->

    </body>


    Is this all I need to make this happen on my site?
    • CommentAuthordavist11
    • CommentTimeAug 26th 2008
     permalink

    It does not send them to a different page on the site. Basically what he is doing is saying that if the user is using IE6 or lower, include another stylesheet and show the content:

    Hey old timer!

    We've spotted that you are using an out-of-date version of Internet Explorer. It's time to put on your parka and ride to a better browser such as Explorer 7, Firefox or Opera.

    So to answer your question, yes, that is all you really need to do something like this.

  2.  permalink
    okay, so is the above code all I need to make it happen?
    • CommentAuthordavist11
    • CommentTimeAug 26th 2008
     permalink
    I mean are you trying to do the exact same thing? Or are you doing something slightly different?
  3.  permalink
    same thing, but with my own styles and text
    • CommentAuthordavist11
    • CommentTimeAug 26th 2008
     permalink
    Yeah, this is all you need:

    <!--[if lte IE 6]>
    <div id="ie6">
    <h4>Hey old timer!</h4>
    <p>We've spotted that you are using an out-of-date version of Internet Explorer. It's time to put on your parka and ride to a better browser such as <a href="http://www.microsoft.com/windows/products/winfamily/ie/">Explorer 7</a>, <a href="http://www.mozilla.com/">Firefox</a> or <a href="http://www.opera.com/">Opera</a>.</p>
    </div>
    <![endif]-->

    Then you can style it accordingly.
Add your comments
    Username Password
  • Format comments as (Help)