[HTML] Image map ne fonctionne pas

Image map ne fonctionne pas [HTML] - HTML/CSS - Programmation

Marsh Posté le 05-05-2005 à 10:56:17    

Bonjour, j'ai un problème tout bête : besoin de faire une imagemap. Malheureusement j'y arrive pas. Le code suivant passe le validateur mais dans le navigateur seulement l'image s'affiche, mais elle n'est pas cliquable. Quelqu'un peut m'aider ?
 

Code :
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5.   <title>villardnoir</title>
  6.   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. </head>
  8. <body>
  9. <p>
  10. <img src="images/navigation_accueil.jpg" />
  11. <map id="navigation">
  12.   <area shape="rect" href="index.php/bio" coords="187,485,301,533" />
  13.   <area shape="rect" href="index.php/concerts" coords="463,316,562,382" />
  14.   <area shape="rect" href="index.php/Contacts" coords="29,410,130,482" />
  15.   <area shape="rect" href="index.php/discographie" coords="345,18,540,111" />
  16.   <area shape="circle" href="index.php/gallery" coords="79,113,43" />
  17. </map>
  18. </p>
  19. </body>
  20. </html>

Reply

Marsh Posté le 05-05-2005 à 10:56:17   

Reply

Marsh Posté le 05-05-2005 à 11:03:38    

Ca fait un bout de temps que j'ai plus utiliser les imagemap mais je ne vois aucun lien entre la map et l'image : c'est normal ?
 
edit : il manque un USEMAP="#navigation" dans ton tag IMG. Des fois, tu découvriras que ça sert de lire une doc.


Message édité par Friday Monday le 05-05-2005 à 11:06:54
Reply

Marsh Posté le 05-05-2005 à 11:07:08    

oublié l'attribut usemap sur l'image, oublié l'attribut name sur la map [:spamafote]
 
Quand on dit qu'il est important de lire la norme, c'est parce que ce genre de trucs est vite flagrant [:spamafote]
 
edit: merde [:benou_grilled]


Message édité par masklinn le 05-05-2005 à 11:07:29

---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 05-05-2005 à 11:19:36    

Effectivement  :sweat: Merci beaucoup  :hello:

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed