Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<area> tag object expected error IE only

Status
Not open for further replies.

xlemosx

Programmer
Nov 25, 2010
8
CA
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top