Re: Highlighting image map on load

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



leledumbo wrote on 2009-12-14 13:37:
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?

I would say that you should do the following:

1. make a css class, that gives you the highlights you want.
2. put a div with position:absolute over the image where you want the class to take effect 3. use a javascript to draw the circle in the div. If you look at for instance the "nifty" and "niftycube" solutiona, they're working with an inner and an outer color, so the outer should be transparent and the inner you css class. And my guess is that this has already been made before, so google for a javascript solution that fits your needs.

Happy hacking.

--
Kind regards
Kim Emax - masterminds.dk

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux