You are here: Re: PNG image - transparent part clickable in Firefox « HTML « IT news, forums, messages
Re: PNG image - transparent part clickable in Firefox

Posted by Steve Pugh on 07/19/05 19:27

Martin <martinvalley@comcast.net> wrote:

>I have some .png images that have transparent areas in them. I'm
>executing some scripting in the onclick event. I would like for this
>to occur only when the pointer is over the visible portion of the
>image but, in Firefox, the transparent areas are clickable also.

Only in Firefox? I would have thought that <img src="foo.png alt="foo"
onclick="whatever()"> would affect the whole image in _all_ browsers.

If it is only in FF then I suspect that you have something more
complex going on, possibly involving CSS positioning. Just a wild
guess as you didn't provide a URL to demonstrate your problem.

> Is there any way to prevent this?

Only by using an image map.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация