I'm facing an issue with my area shape, the href="/kosmetikstudios/deutschland/Bayern" tag seems to be causing a problem. I want to utilize the parameter "Bayern" (which is the last parameter in the URL).
I need this to be dynamic.
Below is my JavaScript code:
<script type="text/javascript>
$(document).ready(function(){
var mName="passiv";
$("#map area").mouseenter(function(){
mName = $(this).attr("href"); // struggling to implement this
bName="images/" +mName + ".png";
$("#map img").attr("src",bName);
});
$("#map area").mouseleave(function(){
bName="images/Europa.png";
$("#map img").attr("src",bName);
});
});
</script>
Here is my HTML code:
<area shape="poly" coords="356,300,355,299,354,298....." href="/kosmetikstudios/deutschland/Bayern" title="Kosmetikstudios in Bayern" alt="Kosmetikstudios in Bayern" />
<area shape="poly" coords="156,200,425,699,154,298....." href="/kosmetikstudios/deutschland/Berlin" title="Kosmetikstudios in Berlin" alt="Kosmetikstudios in Bayern" />
I am hopeful that someone can assist me with this issue.
Regards,
Dave