Hi,
Aber warum klappt dies nicht:
<li id=welcome> <a href='index.htm'><img src='img/welcome_sw.jpg' onMouseOver="this.height=150"></a></li>
Weil ein A-Element kein height-Attribut hat.
Wenn ich die CSS- Deklaration rausnehme und dieses mache:
<li id=welcome> <a href='index.htm'><img src='img/welcome_sw.jpg' width=133 height=100 onMouseOver="this.height=150"></a></li>klappt es.
Hoechstens durch Zufall.
A ist ein inline-Element, darf also gar keine width- und height-Angaben aus CSS umsetzen - so lange du es nicht dazu bewegst, nicht mehr inline dargestellt zu werden.
Kann ich per JS die CSS- Höhe ändern?
Natuerlich, ueber das style-Attribut.
MfG ChrisB
--
„This is the author's opinion, not necessarily that of Starbucks.“
„This is the author's opinion, not necessarily that of Starbucks.“