Salut à tous,
J'ai un menu qui lorsqu'on passe sur un lien affiche un descriptif à un endroit de ma page. Pour cela j'ai utilisé un script tout simple :
Et sur les liens j'ai mis :
Le problème dans tout ça c'est que ma page doit être Valid XHTML 1.1... du coup j'ai des erreurs du style :
Avez-vous une solution ?
J'ai un menu qui lorsqu'on passe sur un lien affiche un descriptif à un endroit de ma page. Pour cela j'ai utilisé un script tout simple :
Code:
<script type="text/javascript">
descr=new Array;
descr[0]='Vous êtes ici : <a href="/">Accueil</a>';
descr[1]='<strong>ACCUEIL :</strong> Page d\'accueil';
descr[2]='<strong>PERSO :</strong> Page avec diverses informations personnelles';
descr[3]='etc...';
</script>
Et sur les liens j'ai mis :
Code:
<a href="/" title="Accueil du site" onmouseover="document.getElementById('navigation').innerHTML=descr[1];" onmouseout="document.getElementById('navigation').innerHTML=descr[0];">Accueil</a>
Le problème dans tout ça c'est que ma page doit être Valid XHTML 1.1... du coup j'ai des erreurs du style :
Error Line 10 column 43: document type does not allow element "a" here.
...cr[0]='Vous êtes ici : <a href="/">Accueil</a>
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
Avez-vous une solution ?
