English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hey everyone,
Heres what I want to accomplish.

-Create a button

-Swap color when
clicked it will
swap background
color with a user
chosen color and
the original color

-Prompt for background
choice

-Each time the button is
clicked, the background
color is exchanged
between the original and
user's choice.

The following code is where I'm currently at:



Your Color!!!







Thanks a bunch,
Tim

2006-10-06 16:07:57 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

1 answers

Hi, you actually did it...
But you introduced other variables which will not work like white..

Change your script to be like this...



That should make it work. Remember white isn't a variable... it should be placed as "white" as a string.

Hope it helped :~ Take care.

The full script is below:

=[start "test.html"]============================



Your Color!!!









=[end]================================

2006-10-07 03:11:40 · answer #1 · answered by ? 6 · 0 0

fedest.com, questions and answers