Rainer S.: Rollover mit XHTML Strict?

Beitrag lesen

Hallo Julian,

habs gefunden:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd

<!--
   To avoid accessibility problems for people who aren't
   able to see the image, you should provide a text
   description using the alt and longdesc attributes.
   In addition, avoid the use of server-side image maps.
   Note that in this DTD there is no name attribute. That
   is only available in the transitional and frameset DTD.
-->

<!ELEMENT img EMPTY>
<!ATTLIST img
  %attrs;
  src         %URI;          #REQUIRED
  alt         %Text;         #REQUIRED
  longdesc    %URI;          #IMPLIED
  height      %Length;       #IMPLIED
  width       %Length;       #IMPLIED
  usemap      %URI;          #IMPLIED
  ismap       (ismap)        #IMPLIED
  >

In der Recommendation liest es sich anders. Hatte gestern nur nach name im <a> -Element geguckt,
und das ist es aus Kompatibilitätsgründen noch drin.
Um auf Dein Ursprungsproblem zurückzukommen...
Da fällt mir nur noch die Methode mit document.images[Nummer] ein.

Grüße aus Bilk

Rainer

P.S.: Korrigiere mal den System Identifier im Doctype, sonst klappts nicht mit dem CSS-Validator