Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

71 users online



Grid of color in form

Grid of color in form

Currently viewing this thread: 1 (0 members and 1 guests)


evan

evan

Neverside Newbie
Status: Offline!

Grid of color in form

What I want is an 8x6 (48 squares), each with a different color. You select one and submit the form and it changes the color for the option you chose. Would this have to be done with custom radio fields or something?

Tsukmar

Tsukmar

Student
Status: Offline!

does this need to be dynamic (instant - aka javascript)?
would be tabular data imo Smile

___________________

how do you weigh human life?

evan

evan

Neverside Newbie
Status: Offline!

It won't be tabular data, because I won't be pulling the information from a table, it will be static data of which 1 value will be put into the database.
I want to stay away from javascript if possible, but I imagine I won't be able to.
I was thinking maybe something along these lines might work?

Code:

/* CSS */
input[type="radio"] {
clip: rect(0,20,40,0);
}


Then set the background color and value for each one? (Of course each radio button would have to be positioned absolutely.)

Last edited by evan, June 12th, 2004 04:52 AM (Edited 1 times)

Tsukmar

Tsukmar

Student
Status: Offline!

...wouldnt it be easier to have a table with 8 collumns and 6 rows and set the bgcolor for each one?

or do u mean a radio button and bgcolor that and have them select from that?

___________________

how do you weigh human life?

evan

evan

Neverside Newbie
Status: Offline!

I was trying to have radio buttons, because they fit in forms nicely, but you can't change the look of radio buttons, so tables and javascript would probably be the way to go.

How would I go about have the table, then on clicking the cell, having the value populate a readonly input field?

Tsukmar

Tsukmar

Student
Status: Offline!

you can use onclick and "document.formid.inputid.value=arg1;" to change the value of the input? Smile

___________________

how do you weigh human life?

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.007 seconds.