|
|
Was just trying to figure something out in JavaScript and accidently came upon this way to change background colors. I believe if life hands you a lemon, make lemonaid. So since I needed a way to see how the JavaScrip color values looked anyway. Decided to write a set of batch files to write this code with the name of the color called out and in the button as well.
The basic form is like this: <CENTER> <FORM> &NBSP; &NBSP; <INPUT TYPE="BUTTON" VALUE="yellowgreen" onClick="document.bgColor='yellowgreen'"> &NBSP; &NBSP; ....................... &NBSP; &NBSP; ....................... </FORM> </CENTER> Of course the NBSP would be in lower case, don't remeber the escape code |