Page 1 of 1

using images in checkboxes

Posted: Fri Sep 16, 2005 9:45 am
by pad4ever
cheers,

this might not be the right forum to post something about html but maybe some of you guys can help me anyway. the problem goes as follows:

i've got a checkbox (the usual [syntax=php]<input type="checkbox">[/syntax]) but instead of the standart checkbox, i'd like to use an image. i've got no clue how to start. i figuered it might be best to create 2 pictures of the checkbox (one checked and the other unchecked) and use them somehow. any suggestions?

thanks a lot

Posted: Fri Sep 16, 2005 9:55 am
by hawleyjr
Mods can you please move this to Client Side...?

Yes, use a swap image function to change the images onClick. Then, have a hidden field to store the status of the image checked or unchecked.

Posted: Fri Sep 16, 2005 10:03 am
by JayBird