SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Jul 2006
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Hiding just from IE6?

    I need to hide the following sifr javascript line of code from just IE6.

    Code HTML4Strict:
    <script type="text/javascript" src="scripts/sifr.js"></script>
    <script type="text/javascript" src="scripts/sifr-config.js"></script>

    This hides it from all browsers, i want it to just hide from IE6
    Code HTML4Strict:
    <!--
    <script type="text/javascript" src="scripts/sifr.js"></script>
    <script type="text/javascript" src="scripts/sifr-config.js"></script>
    -->

    Any ideas?

  2. #2
    SitePoint Wizard bronze trophy C. Ankerstjerne's Avatar
    Join Date
    Jan 2004
    Location
    The Kingdom of Denmark
    Posts
    2,702
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    You can use conditional comments:
    Code html4strict:
    <!--[if lte IE 6]>
    Code here is only shown to Internet Explorer 6 and below.
    <![endif]-->
    Christian Ankerstjerne
    <p<strong<abbr/HTML/ 4 teh win</>
    <>In Soviet Russia, website codes you!


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
  •