Results 1 to 4 of 4

Thread: Hiding or disabling in IE

  1. #1
    Join Date
    Jun 2006
    Posts
    42
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default Hiding or disabling in IE

    This code works very well in Firefox , in IE not working at all.
    Is there a way to hide this div if user use IE ?
    Here is the code
    Code:
    <div align="left"><object id="kplayer" data="http://www.cfc.free.fr/kplayer.swf" width="230" height="96" type="application/x-shockwave-flash"><param value="sameDomain" name="allowScriptAccess"/><param value="http://www.cfc.free.fr/kplayer.swf" name="movie"/><param value="transparent" name="wmode"/><param value="adress=http://icecast.doctissimo.fr:8000/&sounds=station1_HQ|station2_HQ|station3_HQ|station4_HQ|station5_HQ|station6_HQ|station7_HQ|station8_HQ|station9_HQ|station10_HQ|station13_HQ|station18_HQ|station21_HQ|station23_HQ|station26_HQ|station30_HQ|station31_HQ|station32_HQ|station35_HQ|station36_HQ|station37_HQ|station38_HQ|station39_HQ|station40_HQ&amp;amp;amp;amp;amp;PLAY=0&titles=Hit%2520News|Pop%2520Rock|Groove%2520RnB|Club|Reggae|Metal|Sc%25C3%25A8ne%2520Fran%25C3%25A7aise|Up2You|T%25C3%25A9l%25C3%25A9|Filles|Standards|Hits%2520Gold|New%2520Age|Rock|Roots|Greatest%2520Hits|Soul%2520Music|Rap|Classics|Best%2520Of%25202007|Hits%252080|Rap|Reggae|Jazz" name="flashvars"/></object><div>
    Regards

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Have a look at this article.

    If you give up and decide to just not have it in IE, use conditional comments:
    Code:
    <!--[if !IE]-->
      ... hidden content here ...
    <!--[endif]-->
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jun 2006
    Posts
    42
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    Thank you

    I've done that

    Code:
    <![if !IE]>
      ... hidden content here ...
    <![endif]>

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Er, my error, it should actually be:
    Code:
    <!--<![if !IE]>-->
      ... content ...
    <!--<![endif]>-->
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •