mi da errore ti posto il codice se ci puoi dare un okkio al volo
codice:<html> <head> <script type="text/javascript"> function camcol(color1, cc) { cc.style.backgroundColor = color1; } </script>> </head> <body> This example demonstrates how to change the background color of an input field.</p> Mouse over the three colored table cells, and the input field will change background-color:</p> <table width="100%"><tr> </tr></table> <form> <input type="text" id="x" name="xn" onfocus="changeColor('aqua',this.id); camcol('aqua',this);"onBlur="changeColor('white',this.Name); camcol('white',this)"size="20"> <input type="text" id="y" name="yn" onfocus="changeColor('aqua',this.id); camcol('aqua',this);"onBlur="changeColor('white',this.Name); camcol('white',this)"size="20"> <input type="text" id="z" name="zn" onfocus="changeColor('aqua',this.id); camcol('aqua',this);"onBlur="changeColor('white',this.Name); camcol('white',this)"size="20"> </form> </body> </html>

Rispondi quotando