0
Welcome Guest! Login
0 items Join Now

Checkbox image

  • Checkbox image

    Posted 17 years 6 months ago
    • I want to have a checkbox that uses an image, and when the image is clicked a different image takes its place. For example, a nice big red X for unchecked and a big green checkmark when the checkbox is checked.

      Does anyone know where I can find a tutorial on how to do this? I thought I saw one a while back but now I can't find anything!

      TIA!
    • Last Edit: 17 years 6 months ago by Donna Vincent.
  • Re: Checkbox image

    Posted 17 years 6 months ago
    • I found it on codingforums.com, in a post from Aug. 2002!

      In case anyone else is looking for it, too, this one is for radio buttons using two images called radio1.gif and radio2.gif:
      <img src="radio1.gif" onclick="this.src=(this.src.indexOf('radio1')!=-1)?'radio2.gif':'radio1.gif'">

Time to create page: 0.035 seconds