Souci avec <map....

WRInaute passionné
Bonjour tout le monde :wink:

J'ai un petit souci avec l'utilisation d'un truc dont je ne sais même pas comment ça s'apelle lol :cry:

Donc voici mon code :

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
...........
</head>

<body>
<map id="links">
<area alt="" shape="rect" coords="16,4,77,18" href="index.php?page=home"/>
<area alt="" shape="rect" coords="88,3,153,18" href="index.php?page=member"/
<area alt="" shape="rect" coords="159,5,223,19" href="index.php?page=guestbook" />
<area alt="" shape="rect" coords="235,4,297,19" href="index.php?page=team"/>
<area alt="" shape="rect" coords="305,4,366,19" href="index.php?page=biographies"/>
<area alt="" shape="rect" coords="375,3,438,17" href="index.php?page=biographies"/>
<area alt="" shape="rect" coords="445,3,512,18" href="index.php?page=film"/>
<area alt="" shape="rect" coords="588,4,654,18" href="index.php?page=chat"/>
<area alt="" shape="rect" coords="663,3,728,20" href="index.php?page=contact"/>
</map>
............
<img src="img/menu.jpg" border="0" width="776" height="24" usemap="#links" alt=""/> 
..........
</body>
</html>

Ca sert à faire mettre des liens sur une image, ici le menu.

Ca fonctionne parfaitement avec I.E. mais pas avec avec firefox :-( , une main apparait mais lorsque l'on clique, ça ne fait rien...


Merci ++++ :D
 
WRInaute discret
Pour le lien qui ne fonctionne pas dans FF, c'est la balise MAP qui coince : tu as mis ID mais c'est NAME qui définit le nom de la zone réactive.
IE doit s'en dépatouiller seul et déduire que c'est bien "LINKS" le nom de la zone.

Et aussi il manque un > à la fin de la zone avec le lien members.
 

➡️ Offre MyRankingMetrics ⬅️

pré-audit SEO gratuit avec RM Tech (+ avis d'expert)
coaching offert aux clients (avec Olivier Duffez ou Fabien Faceries)

Voir les détails ici

coaching SEO
Discussions similaires
Haut