MudGuard: Image map bei Netscape 7.0

Beitrag lesen

Hi,

Dass ein alternativer Text für Ausschnitte _eines_ Elements nicht wirklich sinnig ist, ist Dir hoffentlich bewusst. Vermutlich möchtest Du das title-Attribut verwenden.

Dir ist doch sicher das hier bekannt:
<!ATTLIST AREA
  %attrs;                              -- %coreattrs, %i18n, %events --
  shape       %Shape;        rect      -- controls interpretation of coords --
  coords      %Coords;       #IMPLIED  -- comma-separated list of lengths --
  href        %URI;          #IMPLIED  -- URI for linked resource --
  nohref      (nohref)       #IMPLIED  -- this region has no action --
  alt         %Text;         #REQUIRED -- short description --
  tabindex    NUMBER         #IMPLIED  -- position in tabbing order --
  accesskey   %Character;    #IMPLIED  -- accessibility key character --
  onfocus     %Script;       #IMPLIED  -- the element got the focus --
  onblur      %Script;       #IMPLIED  -- the element lost the focus --
  >

zu beachten das #REQUIRED bei alt...

Zum eigentlichen Problem:

<area shape="RECT" coords="467, 68, 518, 54" href="Spieler/nicole.htm" alt="Nicole">

coords = coordinates [CN]
    This attribute specifies the position and shape on the screen. The number and order of values depends on the shape being defined. Possible combinations:

* rect: left-x, top-y, right-x, bottom-y.
[...]
    Coordinates are relative to the top, left corner of the object. All values are lengths. All values are separated by commas.

"separated by commas" bedeutet "getrennt durch Kommata". Es bedeutet nicht: "getrennt durch Kommata und Leerzeichen".

Und die Reihenfolge der Koordinaten entspricht auch nicht der Vorgabe:
links, oben, rechts, unten
467,    68,   518,     54

54 ist weiter oben als 68, kann also nicht die untere Kante sein...

Wie so oft ist also nicht der Browser schuld, sondern der fehlerhafte Code.

cu,
Andreas

--
Der Optimist: Das Glas  ist halbvoll.  - Der Pessimist: Das Glas ist halbleer. - Der Ingenieur: Das Glas ist doppelt so groß wie nötig.