Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Mapa Obrazka w XHTML
Forum PHP.pl > Forum > Po stronie przeglądarki > HTML \ XHTML
tara
używam mapy:

  1. <img src="top/banner.gif" alt="Główna" usemap="#mapa" />
  2.  
  3. <map id="mapa">
  4.  
  5. <area shape="rect" coords="34,355,176,389" href="start.html" alt="Strona główna"></area>
  6.  
  7. </map>


A validator xhtml swoje:

Cytat
Line 21, column 48: character "#" is not allowed in the value of attribute "usemap"

<img src="top/banner.gif" alt="Główna" usemap="#mapa" />


Line 21, column 48: reference to non-existent ID "#mapa"

<img src="top/banner.gif" alt="Główna" usemap="#mapa" />

This error can be triggered by:
A non-existent input, select or textarea element
A missing id attribute
A typographical error in the id attribute

Try to check the spelling and case of the id you are referring to.


Tylko że właśnie mapa działa tylko wtedy, kiedy jest # przed map. Co zrobić ? blink.gif
revyag
Zapewne używasz xhtml 1.1 stąd jest problem. Użyj xhtml 1.0 smile.gif
Wytłumaczenie:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=817
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.