|
Dit script maakt het mogelijk om voor gebruikers een kleur in te typen, deze wordt dan getoond als achtergrondkleur. |
Sourcecode:
<!-- TWO STEPS TO INSTALL TYPE-A-COLOR: 1. Paste the designated script into the HEAD of your HTML document 2. Add the code into the BODY of your HTML document --> <!-- STEP ONE: Paste this script into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Original: Eric Stremming <estremming@hotmail.com> --> <!-- http://www.geocities.com/SunsetStrip/Club/5970/ --> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin function test(form) { if (form.text.value == "") alert("What\'s your favorite color?") else { document.bgColor=(""+form.text.value+""); } } // End --> </SCRIPT> <!-- STEP TWO: Add this code to the BODY of your HTML document --> <BODY> <CENTER> <FORM> <B>Please enter your favorite<BR> color and then click the button.<BR> <input type="text" name="text"> <input type="button" name="button" value="click for color!" onClick="test(this.form)"> </FORM> </CENTER> <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: 1.06 KB -->
| Type een kleur
in
Simply click inside the window below,
use your cursor to highlight the script, and copy (type Control-c or Apple-c)
the script into a new file in your text editor (such as Note Pad or Simple
Text) and save (Control-s or Apple-s). The script is yours!!!
|
|
[
Contact
Us! ]
[ JavaScript Forum ] [ Submit Your Script! ] |