PDA

View Full Version : Hiding or disabling in IE



glucarelli
07-23-2007, 12:38 PM
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

<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|statio n21_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;am p;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%2520 Gold|New%2520Age|Rock|Roots|Greatest%2520Hits|Soul%2520Music|Rap|Classics|Best%2520Of%25202007|Hits%252080|Rap|Reggae|Jazz" name="flashvars"/></object><div>

Regards

Twey
07-23-2007, 01:07 PM
Have a look at this article (http://www.alistapart.com/articles/flashsatay).

If you give up and decide to just not have it in IE, use conditional comments:
<!--[if !IE]-->
... hidden content here ...
<!--[endif]-->

glucarelli
07-23-2007, 02:44 PM
Thank you

I've done that


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

Twey
07-23-2007, 03:41 PM
Er, my error, it should actually be:
<!--<![if !IE]>-->
... content ...
<!--<![endif]>-->