I have an imagemap and want to use the show function to fade in some, rectangle div. But it's not responding.
Javascript
<script type="text/javascript">
$(".levert").click(function () {
$("#popUpDiv").show("slow");
});
</script>
HTML
<img id="logo" src="./logo2.png" alt="Phlox" usemap="#links"><p class="logotext">Phlox</p></img>
<map name="links">
<area shape="circle" coords="294,46,46" href="#" class="levert"></area>
</map>
</div>
<div id="popUpDiv" style="display:none">
</div>
CSS
#popUpDiv {
position:absolute;
background-color:#3F6;
width:400px;
height:400px;
border:5px solid #000;
z-index: 9002;
}
Wrap your code in a document ready call:
<script type="text/javascript">
$(document).ready(function() {
$(".levert").click(function() {
$("#popUpDiv").show("slow");
});
});
</script>