Ease Posted March 31, 2009 Share Posted March 31, 2009 I'm trying to make an image map for a basic game, whereby clicking on a region will take you to another page. Simple enough. However, dependent on a MYSQL database field, I also want to overlay a colour over one of these regions (I'm trying to use an image file with transparency), but naturally if the image is on top of the image map you can't click the region of the image map, and as the regions aren't rectangular the overlay images overlap. I'm finding it hard to explain, so please have a look here: http://ease.icyblu.co.uk/Map.php Is it possible to have 'click-throughable' images? Or would it be relatively easy/simple to 'edit' the base image map? Quote Link to comment https://forums.phpfreaks.com/topic/151920-image-map-overlay-problem/ Share on other sites More sharing options...
jlhaslip Posted April 1, 2009 Share Posted April 1, 2009 http://cssplay.co.uk has done some pretty cool stuff with image maps and css. Check it out Quote Link to comment https://forums.phpfreaks.com/topic/151920-image-map-overlay-problem/#findComment-798338 Share on other sites More sharing options...
Ease Posted April 1, 2009 Author Share Posted April 1, 2009 I had a look, and although extremely interesting, the site didn't exactly cover the problem I have at hand. The problem I have is that images put on top of the image map are not meant to be square, but the browser (and all other programs) see them as squares, albeit with the majority transparent. How can I make it so that you click "through" the transparent parts? If that is not possible, then acting as if that image wasn't even there would work as well, as I can build non-square 'hot-spots' onto the image map below. Quote Link to comment https://forums.phpfreaks.com/topic/151920-image-map-overlay-problem/#findComment-798437 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.