Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / November 2007



Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tim in Phoenix - 29 Nov 2007 22:18 GMT
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
Thomas 'PointedEars' Lahn - 29 Nov 2007 22:28 GMT
>       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
[quoted text clipped - 10 lines]
> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.