473,766 Members | 2,060 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Transparent GIF/PNG link not passing clicks to element behind it

Am I right in thinking that images with transparent areas (GIFs or
PNGs) should allow clicks to "pass through" to any underlying elements
behind them?

I have had no luck getting this to work in IE or Firefox. I have tried
GIF and PNG with 'binary' transparency and PNG24 with 'alpha'
transparency (obviously the latter won't work in IE without the
AlphaImageLoade r trick).

Here is a test page for you to see it not working in action:
http://mhm.mh.ohost.de/test/test-transparent-click.html

What I would like is for you to be able to click the Google link
through the transparent areas of the Yahoo logo. Please enlighten me if
this is possible at all.

Oct 26 '05 #1
8 6490
Els
dj*********@gmx .net wrote:
Am I right in thinking that images with transparent areas (GIFs or
PNGs) should allow clicks to "pass through" to any underlying elements
behind them?


No. Transparent images are still images, and any underlying elements
won't respond to mouse actions.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Oct 26 '05 #2
On Wed, 26 Oct 2005 17:37:03 +0200, <dj*********@gm x.net> wrote:
Am I right in thinking that images with transparent areas (GIFs or
PNGs) should allow clicks to "pass through" to any underlying elements
behind them?
Is glass transparent? Do you expect to be able to shake hands with someone
behind a glass shield, like a window?
What I would like is for you to be able to click the Google link
through the transparent areas of the Yahoo logo.


<URL:https://www.google.com/adsense/policies> Note position of advertisement
(have to translate from Dutch, so could be a different text):
[Dutch: Elementen op een pagina mogen geen enkel gedeelte van de advertentie
overlappen. Bovendien moeten er advertentiekleu ren worden gebruikt die zorgen
dat alle advertentie-onderdelen inclusief de tekst en URL, zichtbaar zijn.]
Elements in a page should in no way overlay any part of the advertisement.

Plain and simple: You are not allowed to do what you are trying to.


--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'
Oct 26 '05 #3
On Wed, 26 Oct 2005 17:56:44 +0200, Barbara de Zoete <b_********@hot mail.com>
wrote:
On Wed, 26 Oct 2005 17:37:03 +0200, <dj*********@gm x.net> wrote:
Am I right in thinking that images with transparent areas (GIFs or
PNGs) should allow clicks to "pass through" to any underlying elements
behind them?


Is glass transparent? Do you expect to be able to shake hands with someone
behind a glass shield, like a window?
What I would like is for you to be able to click the Google link
through the transparent areas of the Yahoo logo.


<URL:https://www.google.com/adsense/policies> Note position of advertisement
(have to translate from Dutch, so could be a different text):


I take that back, you're not talking about AdSense, but still... do you have
yahoo's and google's permission to use their logo's (even if it is only an
experiment at this stage)? I would not like to get my logo mixed with that of my
competitor(s).

--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'
Oct 26 '05 #4
The glass analogy is interesting, but contradicted by Microsoft's page
on the AlphaImageLoade r:

"Transparen cy for PNG images is respected during text selection. This
means the user can select content that is displayed behind the fully
transparent region of a PNG image."
http://msdn.microsoft.com/workshop/a...mageloader.asp

Here is a demonstration:
http://mhm.mh.ohost.de/test/test-tra...nt-select.html

Using IE6 you should be able to select the text and click the link
through the transparent image. This would seem to be sensible behaviour
for all images with transparent areas. Why is it only possible with
images loaded using IE's AlphaImageLoade r?
Barbara de Zoete wrote:
On Wed, 26 Oct 2005 17:37:03 +0200, <dj*********@gm x.net> wrote:
Am I right in thinking that images with transparent areas (GIFs or
PNGs) should allow clicks to "pass through" to any underlying elements
behind them?


Is glass transparent? Do you expect to be able to shake hands with someone
behind a glass shield, like a window?
What I would like is for you to be able to click the Google link
through the transparent areas of the Yahoo logo.


<URL:https://www.google.com/adsense/policies> Note position of advertisement
(have to translate from Dutch, so could be a different text):
[Dutch: Elementen op een pagina mogen geen enkel gedeelte van de advertentie
overlappen. Bovendien moeten er advertentiekleu ren worden gebruikt die zorgen
dat alle advertentie-onderdelen inclusief de tekst en URL, zichtbaar zijn.]
Elements in a page should in no way overlay any part of the advertisement.

Plain and simple: You are not allowed to do what you are trying to.


--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'


Oct 27 '05 #5
On 27 Oct 2005 03:24:24 -0700,
dj*********@gmx .net <dj*********@gm x.net> wrote
in Msg. <11************ **********@g43g 2000cwa.googleg roups.com>
Using IE6 you should be able to select the text and click the link
through the transparent image.


Last time I checked IE didn't even know what transparency was, at least
not with PNG images.

robert

Oct 27 '05 #6
Robert Latest wrote:
Last time I checked IE didn't even know what transparency was, at least
not with PNG images.


Transparency != translucency.
Oct 27 '05 #7

dj*********@gmx .net wrote:
Am I right in thinking that images with transparent areas (GIFs or
PNGs) should allow clicks to "pass through" to any underlying elements
behind them?

I have had no luck getting this to work in IE or Firefox. I have tried
GIF and PNG with 'binary' transparency and PNG24 with 'alpha'
transparency (obviously the latter won't work in IE without the
AlphaImageLoade r trick).

Here is a test page for you to see it not working in action:
http://mhm.mh.ohost.de/test/test-transparent-click.html

What I would like is for you to be able to click the Google link
through the transparent areas of the Yahoo logo. Please enlighten me if
this is possible at all.


Oct 29 '05 #8
hai,
you have any probelm in website,and you what

any clarification in hosting, html, php

languages and any thing....

you got the solution that is getinnet.com.
go and visit the site. your problem will be

solved. as soon as...
bye.

Oct 29 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
20952
by: jhomp ssens | last post by:
I would like to create a pulldown menu which is semi-transparent....that is, you can see the text and graphics behind it when it is pulled down. The effect I'm looking for can be seen at http://www.countrywide.com. Are there any good tutorials which can show me how to do this with CSS?
58
10179
by: jr | last post by:
Sorry for this very dumb question, but I've clearly got a long way to go! Can someone please help me pass an array into a function. Here's a starting point. void TheMainFunc() { // Body of code... TCHAR myArray; DoStuff(myArray);
2
2685
by: joe | last post by:
I have a 50% transparent window that is on top of the desktop. I want the user to be able to click 'Through the transparent window' onto objects behind it ... my computer. The transparent window does not need force it just needs to be ontop of all the other windows. another example is .. if you press alt-ctrl-del to bring up task manager how can i program the window to pass mouse clicks on it to the window behined it, if task manger...
4
3747
by: Nad | last post by:
Hello, I have a user control that has a button and a Calendar. Once you click on the button I display the calendar. Now when I move this user control to a web form, once I click on this button the Calendar displays but it's transparent so other controls like labels on the web form which are supposed to be behind the Calendar can be seen. How do I make sure the Calendar is not transparent?
8
10610
by: Grahammer | last post by:
Is it possible to set the background of a usercontrol as transparent? I tried setting the background image of the usercontrol to a transparent GIF, but that caused MAJOR problems. I'm making some controls that aren't rectangular and it won't be pretty if I end up with a grey rectangle behind each one. http://msdn.microsoft.com/library/en-us/vbcon/html/vbtskGivingYourControlTransparentBackground.asp?frame=true
3
3206
by: bulwark_jrm | last post by:
I'm trying to duplicate functionality found in a Windows application at one of my clients. Essentially, another programmer was able to arrange a lot of search options into a single dialog box by positioning the descriptive label behind the textbox instead of beside it. When the user enters text, the label disappears and the user types in their information into the textbox. I've figured out how to arrange a label behind the textbox...
2
5485
by: pigeonrandle | last post by:
Hi, I am trying (with little (no) success) to create a transparent form that can capture mouse events. Put another way, i would like to show the other windows that are behind my form (like setting the form transparency key to the form backcolor), but i dont want the mouse clicks to pass through my form and on to the windows behind. Can i perhaps do this with a message filter? by deregistering the filter that must already be there to...
2
6577
by: \(O\)enone | last post by:
I'm trying to create a usercontrol that is transparent, both visibly and to mouse clicks. I can make the usercontrol visibly transparent by setting the SupportsTransparentBackColor style and providing some additional processing in CreateParams and OnPaintBackground, as detailed here: http://www.codeproject.com/KB/edit/TransparentTextBox.aspx This works fine, but if I click the transparent part of my control, the
1
1989
by: matthewr | last post by:
I want to create a fully-transparent fullscreen form which records clicks but also passes on the 'click' to the desktop. Specifically, I have an existing application which displays a webpage fullscreen. I want my new application to run transparently over the top of the existing app, and when the user clicks the mouse button, my transparent application records the location of the click while 'passing on' the click to the application below...
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10008
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9837
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8833
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7381
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.