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/>
[Back to original message]
|