By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,686 Members | 2,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,686 IT Pros & Developers. It's quick & easy.

Javascript display issue in IE6 only - two js files clashing.

P: n/a
Hello all,
I have a problem with two co-existing js files. One is used to
render a flash piece using proper HTML syntax, and the other to
mitigate an issue in IE6 where .png graphics are not displayed
properly (they do not show as transparent and are instead displayed
within a non-transparent box.)

http://www.avalonphoenixgroup.com/mm...creen=PNGFLASH

This page displays as expected in Mozilla & IE7 and also passes HTML
4.01 transitional validation. But in IE6 the png image is not
displayed as transparent. If I use just the pngfix.js script on the
page, all browsers including IE6 display properly. Once I add the
swfobject.js into the mix, the pngfix.js no longer provides the
desired result (the transparency is lost).

Thanks!
Tim
Nov 29 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Tim in Phoenix wrote:
I have a problem with two co-existing js files. One is used to
render a flash piece using proper HTML syntax, and the other to
mitigate an issue in IE6 where .png graphics are not displayed
properly (they do not show as transparent and are instead displayed
within a non-transparent box.)

http://www.avalonphoenixgroup.com/mm...creen=PNGFLASH

This page displays as expected in Mozilla & IE7 and also passes HTML
4.01 transitional validation. But in IE6 the png image is not
displayed as transparent. If I use just the pngfix.js script on the
page, all browsers including IE6 display properly. Once I add the
swfobject.js into the mix, the pngfix.js no longer provides the
desired result (the transparency is lost).
The comment in pngfix.js says:

/*

Correctly handle PNG transparency in Win IE 5.5 & 6.
http://homepage.ntlworld.com/bobosola. Updated 18-Jan-2006.

Use in <HEADwith DEFER keyword wrapped in conditional comments:
<!--[if lt IE 7]>
<script defer type="text/javascript" src="pngfix.js"></script>
<![endif]-->

*/

You did not do all that.

Furthermore, ISTM some weird obfuscation was done with swfobject.js
so that the code consists of only one line. IE might choke on that,
at least Firefox's renderer does.
PointedEars
Nov 29 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.