graphic-javascript-effect-style-color-effect.htm / htm
<!-- TWO STEPS TO INSTALL COLOR CHANGER: 1. Copy the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin function color() { document.bgColor=(""+ colc.cc.value +""); document.body.text=(""+ colc.tc.value +""); } // End --> </script> </HEAD> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <BODY> <div align="center"> <form name="colc"> <table border="1"> <td colspan="2"> <b><center>Please Enter a Color</td><tr><td> <b>Background:</td><td><select name="cc" size="1"> <option value="black">Black <option value="blue">Blue <option value="green">Green <option value="skyblue">Light Blue <option value="orange">Orange <option value="purple">Purple <option value="red">Red <option value="silver">Silver <option value="Yellow">Yellow <option selected value="white">White </select></td><tr><td> <b>Text:</td><td> <select name="tc" size="1"> <option selected value="black">Black <option value="blue">Blue <option value="green">Green <option value="skyblue">Light Blue <option value="orange">Orange <option value="purple">Purple <option value="red">Red <option value="silver">Silver <option value="Yellow">Yellow <option value="white">White </select> </td><tr><td colspan="2"> <center><input type="button" name="button" value="Change Color!" onclick="color()"> </td> </table> </form> </div> <p><center> <font face="arial, helvetica" size"-2">Free JavaScripts provided<br> by <a href="http://javascriptsource.com">The JavaScript Source</a></font> </center><p> <!-- Script Size: 2.08 KB -->
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.