| | javascript: getElementById per testo (max4001976), Inviare un testo ad una casella di input con un nome id (identificatore) | |
| |
| | |
| max_400 |
| | javascript: getElementById per testo (max4001976)HTML <script> function inviatesto(){ variabile=document.getElementById('testo'); variabile.value="Ciao Sorcetti!!!"; } </script>
<form> <input type="text" id="testo" size=70><input type="button" onClick="inviatesto()" value="clicca"> <input type="reset" value="reset"> </form> esempio https://digilander.libero.it/max_maxuell/ja...lementById.htmlse notate quando vi posizionate sl pulsante rimane la freccia del mouse per cambiarla in una manina basta aggiungere ad ogni pulsante style="cursor: pointer; cursor:hand"HTML <script> function inviatesto(){ variabile=document.getElementById('testo'); variabile.value="Ciao Sorcetti!!!"; } </script>
<form> <input type="text" id="testo" size=20><input type="button" onClick="inviatesto()" value="clicca" style="cursor: pointer; cursor:hand" > <input type="reset" value="reset" style="cursor: pointer; cursor:hand"> </form> esempio https://digilander.libero.it/max_maxuell/ja...yId-manina.htmled ancora possiamo abbellire i nostri pulsanti con dei colori e nello stesso tempo creare degli effetti al passaggio sopra di essi onMouseOver="this.style.background='#00FF00';" onMouseOut="this.style.background='pink';"HTML <script> function inviatesto(){ variabile=document.getElementById('testo'); variabile.value="Ciao Sorcetti!!!"; } </script>
<form> <input type="text" id="testo" size=20><input type="button" onClick="inviatesto()" value="clicca" style="cursor: pointer; cursor:hand" onMouseOver="this.style.background='#00FF00';" onMouseOut="this.style.background='pink';"> <input type="reset" value="reset" style="cursor: pointer; cursor:hand" onMouseOver="this.style.background='#00FF00';" onMouseOut="this.style.background='pink';"> </form> esempio https://digilander.libero.it/max_maxuell/ja...ina-colori.htmlper il momento la lezione č terminata Er Founder vi augura Buon Natale Sorcetti! ER FOUNDER by Max
| | |
| |
|
| sevenjeak |
| | Bella lezione.
Buon natale anche da parte mia, anche se non trovo il tempo per stare nel forum.
| | |
| |
|
| 2 replies since 21/12/2010, 02:05 88 views |
| |
| | |