16. januar 2004 - 22:36Der er
17 kommentarer og 1 løsning
onFocus="this.style.backgroundColor
Jeg har dette på min HTM-side.: <input type="text" name="e-mail" style="width:340px;border-width:1px" size="50" onFocus="this.style.backgroundColor='#CC0000';" onBlur="this.style.backgroundColor='white';">
Virker fint- men hvordan får jeg Fontfarven i feltet til at skifte samtidig.
color skal være med lille, så det kommer til at se sådan ud: <input type="text" onfocus="this.style.backgroundColor='#CC0000';this.style.color='white';" onblur="this.style.backgroundColor='white';this.style.color='#CC0000';">
Sådan her skal det være :-) onclick="this.style.color='red';this.style.backgroundColor='black';" onBlur="this.style.backgroundColor='white';this.style.color='black' ">
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.