Check out the Expose jquery plugin from the jQuery TOOLS collection. I think it will accomplish exactly what you are looking for. They even have a demo of styling the mask with a background image.
views:
185answers:
3
+4
A:
AJ
2009-09-21 20:47:34
Very interesting. I was not aware of that! It will do 80-90% of the work.
Jesper Rønn-Jensen
2009-09-21 20:56:48
A:
Due to the irregular shapes, you're probably looking for an image. And due to the need for varying levels of transparency, you probably want a .png that would just be stuck over the selected item.
Good question, one way would be to have a "selected" png that had the glowing circle cover the selected one, and a different just dark png cover everything else.
EDIT: But you would probably want to use a library like jquery rather than coding everything from scrath your self, as to not reinvent the wheel and save TONS of time :D
CrazyJugglerDrummer
2009-09-21 20:49:07