473,412 Members | 2,096 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

IE 6 - PNG Transparency in Background

I'm, generating an absolute positioned div using JavaScript, and it has a PNG with alpha channel as background.

This, of course, doesn't work in IE 6, so I used 'filter' to make it work:

Expand|Select|Wrap|Line Numbers
  1. filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/bg/cover.png', sizingMethod='scale');
It works. The problem is that, inside that div, there's another div, also absolutely positioned, with an onclick event. And once I apply the filter, the onclick event isn't triggered when I click on the div. I tried messing with z-indexes but I can't get it to work, the filter seems to be applied on top of the div.

Any ideas?
Thanks!
Sep 21 '07 #1
3 1488
acoder
16,027 Expert Mod 8TB
This might have something to do with events order.
Sep 23 '07 #2
This might have something to do with events order.
Thanks acoder!
However, I don't think that's the case, since there's no script in the alpha layer. When I apply the filter (with traditional css, no javascript) it blocks anything inside it :S
Sep 24 '07 #3
acoder
16,027 Expert Mod 8TB
Thanks acoder!
However, I don't think that's the case, since there's no script in the alpha layer. When I apply the filter (with traditional css, no javascript) it blocks anything inside it :S
Try this link.
Sep 25 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Mr. x | last post by:
Hello, I would like that my image's background color will be transparent. What I have is only paintbrush. My image is *.jpg format (I have tried to save it as *.gif format, and I got less...
3
by: Marek Mänd | last post by:
This posting will express my concern about the future of css3 forthcoming recommendation. I think for long time now, that the current implementation of CSS attribute opacity is less than usable...
2
by: mattaku | last post by:
I have a background image for my form that has an alpha channel (PNG or GIF). I would like my form to become semi-transparent and partially show the desktop. I can figure out how to set the form's...
20
by: Nathan Sokalski | last post by:
I am trying to create graphics with GDI+ that include transparency. However, the transparency never seems to show up, even though my colors have an alpha value of 0. How can I generate a graphic...
7
by: Al_C | last post by:
Hi, I create a form, then place a picturebox on it. Then I set the picturebox image to a .gif that I have edited in GIFConstructionSet to create a transparent background for. But when I run the...
3
by: Martijn Mulder | last post by:
When I populate a ToolStrip with ToolStripButtons with a .png-image on it, will Windows understand the transparency of the .png file?
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.