Hallo, liebe Gemeinde,
gemäß unserer Bibel sind onMouse...-Events in HTML 4.0 weitläufig zugelassen, wozu auch <a> gehört. Egal nun, ob ich loose, transitional oder strict angebe, der W3C-Validator scheint da anderer Meinung zu sein. Sein Urteil:
* Line 102, column 18:
onMouseOver="document.getElementById('Stat').src='../pics/stata1 ...
^
Error: there is no attribute "onMouseOver" for this element (in this HTML version)
* Line 103, column 17:
onMouseOut="document.getElementById('Stat').src='../pics/stata0. ...
^
Error: there is no attribute "onMouseOut" for this element (in this HTML version)
Und hier der "Übeltäter":
100: <!-- Statistik -->
101: <td style="width:27px;background-color:#c0c0c0;"><a href="http://statistiken.webcounter.goweb.de"
102: onMouseOver="document.getElementById('Stat').src='../pics/stata1.gif'"
103: onMouseOut="document.getElementById('Stat').src='../pics/stata0.gif'" >
104: <img id="Stat" src="../pics/stata0.gif" style="width:24px;height:24px;border:0px inset" alt="Auswertungen" />
105: </a>
106: </td>
Interessanterweise hört der W3C auch an der Stelle auf zu arbeiten. Kann mir jemand erklären, was da schief läuft?
Vielen Dank schon mal!
Angy