Re: Highlighting image map on load
| From: | Ashley Sheridan | Date: | Mon, 14 Dec 2009 13:28:20 +0000 |
| Subject: | Re: Highlighting image map on load | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-300482@lists.php.net to get a copy of this message | ||
On Mon, 2009-12-14 at 04:37 -0800, leledumbo wrote:
> I have image map with dynamic circle areas whose coordinates stored in
> database. I'd like to colorize these areas so that it's obvious to see them.
> Most solutions I found on the net highlights the area on mouse hover, while
> my needs is to do it once when the window is loaded. Any idea?
> --
> View this message in context:
> http://old.nabble.com/Highlighting-image-map-on-load-tp26777088p26777088.html
> Sent from the PHP - General mailing list archive at Nabble.com.
>
>
I'm not sure if you can use CSS alone to highlight, but if you can, just
give the area a class as you output it with PHP.
Otherwise, you could try and output the SVG/VML you'd need on that area
depending on the browser.
Thanks,
Ash
http://www.ashleysheridan.co.uk