Hello,
Suggestion pour harmoniser le comportement des formulaires d'encodage des
mots-clés par rapport à la plupart des autres (qui utilisent déosormais un
onfocus), il serait utile de réécrire les lignes 407 et suivantes de
ecrire/inc_mots.php3 de la façon suivante (1) :
if ($obligatoire == "oui" AND !$groupes_vus[$id_groupe])
echo "<INPUT TYPE='text' NAME='cherche_mot' CLASS='fondl' STYLE='width:
180px; background-color:#E86519;' VALUE=\"$titre_groupe\" onfocus='if
(this.value==\"$titre_groupe\") this.value=\"\"' onblur=\"if (this.value
== '') this.value='$titre_groupe'\" SIZE='20'>";
else if ($unseul == "oui")
echo "<INPUT TYPE='text' NAME='cherche_mot' CLASS='fondl' STYLE='width:
180px; background-color:#cccccc;' VALUE=\"$titre_groupe\" onfocus='if
(this.value==\"$titre_groupe\") this.value=\"\"' onblur=\"if (this.value
== '') this.value='$titre_groupe'\" SIZE='20'>";
else
echo "<INPUT TYPE='text' NAME='cherche_mot' CLASS='fondl' STYLE='width:
180px; ' VALUE=\"$titre_groupe\" onfocus='if
(this.value==\"$titre_groupe\") this.value=\"\"' onblur=\"if (this.value
== '') this.value='$titre_groupe'\" SIZE='20'>";
François
(1) Ou selon la méthode utilisée pour corriger le bug des onfocus :
onfocus=\"if(!done){this.value='';done=true;}\" (je sais pas ce qui vaut
mieux).