The Evolution Drifts

Aiuto HTML + Javascript

« Older   Newer »
  Share  
-=Dark=-
view post Posted on 15/10/2014, 18:06




<html>
<body>
<head>
<script language="JavaScript">
var Colore1 = 'white';
var Colore2 = 'red';
var Colore3 = 'green';

function falso() {

(document.form1.PULS1.style.backgroundColor==Colore2);
}
}
function vero() {
(document.form1.PULS1.style.backgroundColor==Colore3);
}
function resetta() {

clearTimeout(timeout);

}
</script>
</head>
<form name="form1">
Si usa in agricoltura
<input type="button" name="campo" value="PALLA" onClick="falso()">
<input type="button" name="campoV" value="PALA" onClick="vero()">
<input type="button" name="PULS1" value="" style="background-color:white;" >


<input type="reset" name="reset" VALUE="Reset" onclick="resetta()">

</body>
</html>

Qualcuno mi dice come posso permettere che i bottoni una volta premuti non lampeggino?
Qualcuno mi potrebbe aiutare a fare un altro esercizio in cui c'è da mettere uno script che somma due variabili e visualizza il risultato con un alert() e che compaia in una casella di testo chiamata risultato?
 
Top
0 replies since 15/10/2014, 18:06   38 views
  Share