...

View Full Version : someone please help with image map



banky
02-11-2005, 06:37 PM
Hi, im using an image map for my site and everything works fine in internet explorer, but when the page is loaded in firefox (my favorite browser) only the first image map works.. i have posted the source below. im pulling my hair out here..any ideas on why it wont recognize any of the maps after the first one?



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<HTML>
<HEAD>
<META name="generator" content="">
<TITLE>You Are Home</TITLE>
<META http-equiv="content-type" content="text/html;charset=iso-8859-1">
<META name="generator" content="Adobe GoLive">

<TITLE>Untitled Page</TITLE>
<STYLE type="text/css">
body {
background-color: #ffffff;
}
div.c1 {color: #EEEEEE; font-family: Helvetica, Arial, sans-serif; text-align: center}
</STYLE>
</HEAD>

<BODY>
<MAP name="map1">

<AREA shape="rect" coords="146,176,178,193" href=
"http://www.dustinstamper.com/eye.html">
<AREA shape="default" nohref>
<AREA shape="rect" coords="96,315,152,337" href=
"http://dustinstamper.com/mouth.html">
<AREA shape="default" nohref>
<AREA shape="rect" coords="329,117,444,288" href=
"http://www.dustinstamper.com/ear.html">
<AREA shape="default" nohref>
<AREA shape="rect" coords="122,9,337,113" href=
"http://www.dustinstamper.com/mind.html">
<AREA shape="default" nohref>
<AREA shape="rect" coords="82,236,117,275" href=
"http://www.dustinstamper.com/nose.html">
<AREA shape="default" nohref>
</MAP>

<P><center><IMG src="img/content/dustinsmall.jpg" usemap="#map1" alt=""
border="0" csnew="csnew"></P>

<DIV class="c1">
copyright 2005 Dustin Stamper <A href=
"http://www.dustinstamper.com/legal.html">legal stuff</A></center>
</DIV>
</BODY>
</HTML>

pb&j
02-11-2005, 07:58 PM
perhaps fix up your coding a bit?

<MAP name="map1">
<AREA shape="rect" coords="146,176,178,193" href="http://www.dustinstamper.com/eye.html">
<AREA shape="rect" coords="96,315,152,337" href="http://dustinstamper.com/mouth.html">
<AREA shape="rect" coords="329,117,444,288" href="http://www.dustinstamper.com/ear.html">
<AREA shape="rect" coords="122,9,337,113" href="http://www.dustinstamper.com/mind.html">
<AREA shape="rect" coords="82,236,117,275" href="http://www.dustinstamper.com/nose.html">
<AREA shape="default" nohref>
</MAP>

you had a bunch of defaults in there, although i wouldnt imagine that being a problem as such, just re-doing the done.

hemebond
02-11-2005, 08:26 PM
This seems to work for me
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>52172</title>
<style type="text/css">
body
{
background-color:#fff;
}
div.c1
{
color:#eee;
font-family:sans-serif;
text-align:center;
}
</style>
</head>
<body>
<map name="map">
<area shape="rect" coords="146,176,178,193" href="/eye.html">
<area shape="rect" coords="96,315,152,337" href="/mouth.html">
<area shape="rect" coords="329,117,444,288" href="/ear.html">
<area shape="rect" coords="122,9,337,113" href="/mind.html">
<area shape="rect" coords="82,236,117,275" href="/nose.html">
</map>

<img src="/images/1.jpeg" width="800px" usemap="#map" alt="">

<div class="c1">copyright 2005 Dustin Stamper <a href="/legal.html">legal stuff</a></div>
</body>
</html>

banky
02-11-2005, 08:33 PM
that did the trick...thanks so much...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum