Schrift
Wiki:Tipp zum Debugging: use Data::Dumper; local $Data::Dumper::Useqq = 1; print Dumper \@var;
[thread]2172[/thread]

Mouseovereffekt (Seite 2)



<< |< 1 2 >| >> 12 Einträge, 2 Seiten
youngalcapone
 2004-12-29 17:50
#25334 #25334
User since
2003-08-14
185 Artikel
BenutzerIn
[default_avatar]
Hilfe, wenn ich nun meinen Quelltext validieren lasse, bekomme ich folgende Fehlermeldung:

Quote
This page is not Valid XHTML 1.0 Transitional!

Below are the results of attempting to parse this document with an SGML parser.

1. Line 39, column 34: there is no attribute "onMouseOver" (explain...).
<a href="index.shtml" onMouseOver="image1.src='home_aktiv.gif';" onMouseOut="ima

2. Line 39, column 76: there is no attribute "onMouseOut" (explain...).
...image1.src='home_aktiv.gif';" onMouseOut="image1.src='home_passiv.gif';">

Wenn man dann auf explain klickt erfährt man das:
Quote
"there is no attribute 'FOO' for this element (in this HTML version)"
You have used an attribute with an element that is defined not to have that attribute. This is most commonly caused by using vendor-specific attributes without setting the document type appropriately.


Was könnte man dagegen machen?\n\n

<!--EDIT|youngalcapone|1072713437-->
youngalcapone
 2004-12-29 22:20
#25335 #25335
User since
2003-08-14
185 Artikel
BenutzerIn
[default_avatar]
Habs nun doch noch valid bekommen!
Musste nur die Eventhandler in Kleinbuchstaben schreiben, also onmouseover... etc.
XHTML ist halt etwas zickig mit der Groß/Kleinschreibung....
<< |< 1 2 >| >> 12 Einträge, 2 Seiten



View all threads created 2003-12-08 18:39.