Aller au contenu

Onload, OnMouseOver, OnMouseOut


Sujets conseillés

Posté (modifié)

EDIT: :blink: Mince.. je vien de constater que je me suis planté de forum, ca n'a rien avoir avec PHP hem, je pensais etre dans html... 1000 excuse :o

Bonjour... en fait j'aimerais rendre mon site conforme à la norme W3C... mais lorsque je l'analyse il m'indique ceci:

Error  Line 41, column 31: there is no attribute "onLoad" .

<body bgcolor="#FFFFFF" onLoad="MM_preloadImages('images/indexon.jpg','images/me

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.

et

Line 138, column 78: there is no attribute "onMouseOver" .

...1d08bfe8b2085b6364a0a2c" onMouseOver="MM_swapImage('Image1','','images/indexo

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.

(onmouseover est dans une balise <a>)

j'ai la meme chose pour l'attribut OnMouseOut

Savez vous comment faire pour que ca soit standarisé W3C? J'ai pas tout compris aux explications qu'ils donnent... :blush:

EDIT: :blink: Mince.. je vien de constater que je me suis planté de forum, ca n'a rien avoir avec PHP hem... 1000 excuse :o

Modifié par mkl238
Posté

Ou encore plus simple: utiliser le langage CSS (et plus précisément le pseudo-format :hover) pour les changement d'images au survol: c'est fait pour ;) (contrairement au JS dont ce n'est pas vraiment le rôle)

Je déplace dans le forum adéquat ..

Veuillez vous connecter pour commenter

Vous pourrez laisser un commentaire après vous êtes connecté.



Connectez-vous maintenant
×
×
  • Créer...