Click to See Complete Forum and Search --> : If NOT Internet Explorer...


goofy1989
01-15-2006, 11:46 PM
Would it be possible to make something like this using either JavaScript or these sort of things:

<!--[if IE]>
Stuff for ONLY IE to see
<![endif]-->


Is there a way to display something if the browser is NOT ie? Thanks in advance!

ray326
01-16-2006, 01:41 AM
There are generally better ways to do that sort of thing but they depend on exactly the requirement (style, function).

goofy1989
01-16-2006, 02:45 AM
Well it's for school and I can't use any server-side technology... it would be for styling. Since IE can't display anything right, I'd rather just not use it.

Ray, you posted that IE can't display transparent PNG CSS backgrounds properly. I'm still using one, but it doesn't bother me that much. Now i'm using another DIV that I'm trying to be a transparent dark color, so that you could still see the background picture through it. If I used a PNG to do this, IE would render it solid instead of transparent.

So I would probably just want to leave IE out of the picture and leave that div clear if the viewer is using IE.

BTW, does Safari display transparent PNGs properly? Because that's probably what we will be testing our websites with once I get back to school (Right now I'm testing with Firefox and IE, hoping that the results will look good on Safari, Mac Firefox, and Mac IE)...

ray326
01-16-2006, 04:13 PM
So I would probably just want to leave IE out of the picture and leave that div clear if the viewer is using IE.If you're just using fully transparent areas and not true alpha then consider using a GIF for that background. Dunno about browser PNG support.

goofy1989
01-16-2006, 04:51 PM
Yeah, I want to make a fully transparent div (you can still see the background, but it's tinted a bit darker). What would be the best way to do this? How would this be done in a GIF?

ray326
01-16-2006, 05:26 PM
Fully transparent means there would not be darkening. You're talking about an alpha channel. You can do a simulation of that with GIF but it takes a lot of finess so I wouldn't recommend it.