1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
| <script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<script language="JavaScript">
function couleur(obj) {
obj.style.backgroundColor = "#FFFFFF";
}
function check() {
var msg = "";
var recev_js = "<?php echo xx_js; ?>";
var visit_js = "<?php echo yy_js; ?>";
if (document.formulaire.aaa.value <= 0 ) {
msg += "Mon_texte" '\n";
document.formulaire.score_recev.style.backgroundColor = "#F3C200";
}
if (document.formulaire.bbb.value <= 0 ) {
msg += "Mon_texte"\n";
document.formulaire.score_visit.style.backgroundColor = "#F3C200";
}
if (document.formulaire.ccc.value <= 0) {
msg += "Mon_texte\n";
document.formulaire.Eval.style.backgroundColor = "#F3C200";
}
//Si aucun message d'alerte a été initialisé on retourne TRUE
if (msg == "") return(true);
//Si un message d'alerte a été initialisé on lance l'alerte
else {
alert(msg);
return(false);
}
}
</script> |
Partager