Hi Guys,
complete newbie here, so be nice!
I have the following code that I want to fire as the result of somebody clicking an area on an image map:
- $('#Process').click(function () {
- //do stuff
- }
and the image map is:
- <div id="Banner" >
- <div style="text-align:center; width:842px; margin-left:auto; margin-right:auto;">
- <img id="ImageMap" src="divimage.jpg" usemap="#ImageMap" border="0" width="842" height="226" alt="" />
- <map id="_ImageMap" name="ImageMap">
- <area shape="rect" coords="810,80,837,112" a href="#"/>
- <area shape="rect" coords="323,170,518,207" a href="#" onclick="LPM_CLICK('http://www.google.com');"/>
- <area shape="rect" coords="323,170,518,207" a href="#" onclick="LPM_CLICK('http://www.facebook.com');"/>
- </map></div>
- </div>
if I wanted to run my function from the click area in line 5 above, what do I need to do? does it simply need a name/id of 'Process'? or in my function do I need to change the name to area.nameOfClickElement?
Any help is much appreciated.
Thanks,
Wozza