»
EnglishFrenchVietnamese

Print - Color Changer - JavaScriptBank.com

Full version: jsB@nk » Background » Color Changer
URL: http://www.javascriptbank.com/color-changer-ben-marisic.html

Color Changer © JavaScriptBank.comUse this JavaScript to visitors can change color.

Full version: jsB@nk » Background » Color Changer
URL: http://www.javascriptbank.com/color-changer-ben-marisic.html



JavaScript
<SCRIPT language=JavaScript><!-- This Script Was Written By Ben Marisic -function Fontcolor(code) { document.fgColor=code}function changecolor(code) { document.bgColor=code}// - - --></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<FORM>Font Color <INPUT name=text1 size="20"> <INPUT name=Button onclick=Fontcolor(form.text1.value) type=button value="Change Color"><br>Background Color<INPUT name=text2 size="20"> <INPUT name=Button onclick=changecolor(form.text2.value) type=button value="Change Color"> <BR><INPUT name=ColorList onclick="alert ('blue,green,purple,black,red,pink,brown,white,orange,lime,yellow,teal')" type=button value="Color List"> </FORM><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->