Name: kirri Date: December 20, 2005 at 22:14:58 Pacific Subject: on click down help OS: all CPU/Ram: all
Comment:
i'm wanting to make a web page with a color chart on it and people click on a color it changes the wall color to that color. i'm guessing it's on click down. but i'd like help with this javascript code.
Why use an onClickDown event when you can simply make each color a link that will run a javascript function. Depending on how you are building the color chart you could do several things. If it is in a table, give each color cell an onclick event or use a tranparent gif in each cell with a standard link tag. Or, if you are using one big image with all the colors use an image map.
Seeing as how you have given nothing to go on, I can't give you any specific help.
sorry for my vague posting. i'm going to have a graphic of a wall. when someone clicks the color chart it changes the graphic of the wall to one painted in that color. i will have about 20 colors in a table each color will be in a separate cell.