using images in checkboxes

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
pad4ever
Forum Newbie
Posts: 9
Joined: Wed Aug 24, 2005 3:58 am

using images in checkboxes

Post 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
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post 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.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Post Reply