25,6 → 25,31 |
} |
} |
|
// Fonction aggrandissant ou diminuant la taille d'un champ |
// Provient du site https://addons.mozilla.org/ |
function basculerTaille(id, grand) |
{ |
var sb = document.getElementById(id); |
if (grand) { |
sb.style.width = '20em;'; |
} else { |
sb.style.width = '10em;'; |
} |
} |
|
// Fonction nettoyant un champ de formulaire d'une chaine donnée... |
function nettoyerChamp(id, chaine) |
{ |
var sb = document.getElementById(id); |
var valeur = sb.value; |
if (valeur == chaine) { |
sb.value = ''; |
} |
if (valeur == '') { |
sb.value = chaine; |
} |
} |
|
// Fonction initialisant d'autres fonctions |
function initialiser() |
{ |