SAlut,
J'ai un appel de Js qui passe pas la validation du W3, et je comprends pas ?
Voici le code:
<script type="text/javascript"><!--
function Deroule_Menu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
Plus loin
<form method="post" action="" class="nav">
<select name="select" onchange="Deroule_Menu(\'self\',this,0)" >
<option selected="selected">navigation</option>
<option value="index.php">~~~~~~~~~~~~~~</option>
<option value="index.php">:::Accueil</option>
<option value="corpo.php">:: rofil</option>
<option value="services.php">:::Services</option>
<option value="nouvelles.php">:::Nouvelles</option>
<option value="contact.php">:::Contact</option>
</select>
</form>
Le message du validateur:
Line 52, Column 61: document type does not allow element "select" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag .
…ct name="select" onchange="Deroule_Menu('self',this,0)" >
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Avez-vous une idée ?
Merci d'avance !
Medbahn
J'ai un appel de Js qui passe pas la validation du W3, et je comprends pas ?
Voici le code:
<script type="text/javascript"><!--
function Deroule_Menu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
Plus loin
<form method="post" action="" class="nav">
<select name="select" onchange="Deroule_Menu(\'self\',this,0)" >
<option selected="selected">navigation</option>
<option value="index.php">~~~~~~~~~~~~~~</option>
<option value="index.php">:::Accueil</option>
<option value="corpo.php">:: rofil</option>
<option value="services.php">:::Services</option>
<option value="nouvelles.php">:::Nouvelles</option>
<option value="contact.php">:::Contact</option>
</select>
</form>
Le message du validateur:
Line 52, Column 61: document type does not allow element "select" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag .
…ct name="select" onchange="Deroule_Menu('self',this,0)" >
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Avez-vous une idée ?
Merci d'avance !
Medbahn