Computing.Net > Forums > Web Development > on click down help

on click down help

Reply to Message Icon

Original Message
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.


Report Offensive Message For Removal


Response Number 1
Name: Michael J (by mjdamato)
Date: December 21, 2005 at 09:26:28 Pacific
Subject: on click down help
Reply: (edit)

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.

Michael J


Report Offensive Follow Up For Removal

Response Number 2
Name: kirri
Date: December 29, 2005 at 18:27:17 Pacific
Subject: on click down help
Reply: (edit)

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.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: on click down help

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software