Forum Moderators: open

Message Too Old, No Replies

img map works in ie, not nn

is there a special doctype I need?

         

halfandhalf

6:19 pm on Mar 5, 2003 (gmt 0)

10+ Year Member



I've got an image map with two different links -- works fine in IE 6, but only 1 of the links works in NN4.78 & NN7. My code looks like this:

<img src="images/hotlink-reunion03-50th.gif" width="327" height="31" border="0" alt="Reunion 2003: June 6-8; 50th anniversary coverage" usemap="#reunion-50th">

<map name="reunion-50th">
<area shape="rect" alt="Reunion 2003" coords="1,1,160,28" href="http://mitsloan.mit.edu/alum/reunion2003/index.php" target="_top">
<area shape="rect" alt="50th Anniversary" coords="162,7,335,27" href="http://mitsloan.mit.edu/50th/" target="_top">
</map>

My doctype is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Any help would be appreciated, as always!

DrDoc

8:08 pm on Mar 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



First of all, since you're using an XHTML DOCTYPE, you should close all tags. Add a / to the end of your img and area tags.