Dit script maakt het mogelijk om voor gebruikers een kleur in te typen, deze wordt dan getoond als achtergrondkleur.

Type hier een kleur in en klik op toepassen


<!-- 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!!!

Did you use this script?  Do you like this site?  Please link to us!
Essential survival skills for Internet success!

If you like JavaScript Source, please rate it! @ ScriptSearch.com
Sign up for the JavaScript Source's Newsletters!

internet.com Privacy Policy
We'll send this script to you!

(just click "Send it!" once!)

Copyright 2001 internet.com Corp. All Rights Reserved.
Legal NoticesLicensing, Reprints, & PermissionsPrivacy Policy.