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

T

Tim in Phoenix

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/mm5/merchant.mvc?Screen=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
 
T

Thomas 'PointedEars' Lahn

Tim said:
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/mm5/merchant.mvc?Screen=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 <HEAD> with 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top