/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] IE displaying transparent PNG and broken image at the same time

I have a page that shows several layers that can be turned on/off using checkboxes and Javascript. The page works fine in Firefox, and I got the PNG’s to display properly in IE. My problem is now the layer will display, but it also displays a broken image marker, too! It’s bizarre.

Please see the attachments for examples. Any ideas? I’m stumped.

TIA!

[upl-file uuid=bdfb9190-6d99-47cb-b3f7-020b8596b3c3 size=48kB]city.jpg[/upl-file]

[upl-file uuid=1337852f-095d-4d1d-9894-7e805ed4c127 size=60kB]highways.jpg[/upl-file]

[upl-file uuid=c0a0222d-0c29-4169-96ef-1309b4ddd0da size=46kB]states.jpg[/upl-file]

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@WebJoelAug 18.2006 — That is odd. But we'd need more than just viewing these images. -Got code or URL?
Copy linkTweet thisAlerts:
@gnetconauthorAug 19.2006 — Good idea. Here's the script in action:

https://dev.enable-us.com/ahps3/index.php?wfo=iln
Copy linkTweet thisAlerts:
@gnetconauthorAug 29.2006 — I found the problem. I was using a fix that included a .htc file that was fixing the layers. That solution could be found here:

http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html

But, as I watched the pages get created, I noticed it was displaying both the fixed copy, as well as the broken copy. So I updated the code to use a different fix found here:

http://homepage.ntlworld.com/bobosola/pnginfo.htm

I used the solution that calls the function instead of going through all of the images on the page. Used in:

[CODE]
<div id="image1"><img name="img1" style="z-index:1" src="counties_map.png" width="560" height="473" alt="County Overlay" onload="fixPNG(this)" /></div>
[/CODE]


Now the pages display fine in all browsers.

I hope this helps someone else down the line.
×

Success!

Help @gnetcon spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...