...

View Full Version : click through transparent div?



resin
06-02-2012, 09:28 PM
I have a div background image that is partially transparent, and another div lies beneath that which has a clickable link. As it is now, I'm not able to click the link in the bottom div, even though it can be seen through the transparent areas of the top div. Is there a way to allow clickability through the transparent parts of an image/div? I need this to work in IE, FF, Chrome.. Any ideas?

Apostropartheid
06-02-2012, 09:30 PM
I'm thinking at this point you need to reorganise your code. Why is a background in the foreground?

resin
06-02-2012, 09:35 PM
This problem still occurs even if the image is displayed using img tag, it doesn't have to be a div bg image. No matter how I display the images I can't get access to links behind the transparent areas of them.

Apostropartheid
06-03-2012, 12:41 AM
This problem still occurs even if the image is displayed using img tag, it doesn't have to be a div bg image. No matter how I display the images I can't get access to links behind the transparent areas of them.

I don't see why you have to display your background like that. Why don't you give us a link to your page and we can find some workaround?

resin
06-03-2012, 08:05 AM
Ok here is the test page- http://resin.webs.com/new2.html . The entire blue image is a link, but currently it can't be clicked at all even though it is showing through the trasparent areas of the red image. I want to be able to click through the hole and through the other transparent areas of the red image. Note that each image will have its own attributes and effects in the end product, so simply merging the 2 images into a single image will not work. I just need to be able to click through transparent areas of images. Your help is greatly appreciated.

Major Payne
06-03-2012, 01:44 PM
Why not make the transparent image an image map with the hotspot where you want the link? It can be done that way, but you just can not click a link the browser doesn't know is there.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum