by The JavaScript Source
<!--
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> <body> <!-- 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:ciao</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 --> |
Nessun commento:
Posta un commento