Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Mapa Obrazka w XHTML
tara
post
Post #1





Grupa: Zarejestrowani
Postów: 147
Pomógł: 0
Dołączył: 3.03.2004
Skąd: śląsk

Ostrzeżenie: (0%)
-----


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ć ? (IMG:http://forum.php.pl/style_emoticons/default/blink.gif)

Ten post edytował tara 8.01.2005, 09:20:01
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
revyag
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 2 258
Pomógł: 16
Dołączył: 21.09.2004
Skąd: Kielce

Ostrzeżenie: (0%)
-----


Zapewne używasz xhtml 1.1 stąd jest problem. Użyj xhtml 1.0 (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Wytłumaczenie:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=817
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 23:29