hi,
I have some html and javascript that works perfectly in chrome and firefox but for whatever reason i get an object expected error in my <area> tag.
Here is my code:
<script type="text/javascript">
function showInfo(room){
if (room == "Mavis"){
$.modal('<img src=" height="555" width="855" style="border:0"></img>', {
containerCss:{
backgroundColor:"#fff",
borderColor:"#fff",
height:555,
padding:0,
width:855
},
});
}
</script>
<body>
<map name="Map" id="Map">
<area shape="rect" coords="230,197,337,247" href="#" onclick="showInfo('Mavis');" alt="Some text" title="Some text"/>
</map>
</body>
I get the error right on that area line.
Thanks for any help.
I have some html and javascript that works perfectly in chrome and firefox but for whatever reason i get an object expected error in my <area> tag.
Here is my code:
<script type="text/javascript">
function showInfo(room){
if (room == "Mavis"){
$.modal('<img src=" height="555" width="855" style="border:0"></img>', {
containerCss:{
backgroundColor:"#fff",
borderColor:"#fff",
height:555,
padding:0,
width:855
},
});
}
</script>
<body>
<map name="Map" id="Map">
<area shape="rect" coords="230,197,337,247" href="#" onclick="showInfo('Mavis');" alt="Some text" title="Some text"/>
</map>
</body>
I get the error right on that area line.
Thanks for any help.