Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Mapa Obrazka w XHTML
tara
post 8.01.2005, 09:19:23
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ć ? blink.gif

Ten post edytował tara 8.01.2005, 09:20:01


--------------------
MySQL 4.0.15 | PHP 4.3.3 | Apache 1.3.28 | Kwrite | phpMyAdmin 2.5.6-rc1 | Linux MDK 10.1 pp
Go to the top of the page
+Quote Post
revyag
post 10.01.2005, 10:57:15
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 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
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 13.07.2025 - 22:52