Skip navigation
Currently Being Moderated

Is it possible to use check boxes to change images in a div?

Jan 26, 2013 6:29 PM

Tags: #dreamweaver

Hello,

 

I have been searching for hours now all the way back to MX!  And still haven't found a solution,

 

I want the image in my main content div to change (using different images) according to which buttons are checked in the check boxes.   I believe i have to make them transparent and get them to show/ hide according the options used in the check boxes using unique ID's for my images. 

 

Any pointers or tutorials, thanks. v much 

 
Replies
  • Currently Being Moderated
    Jan 26, 2013 7:47 PM   in reply to nilojones

    You could use a CSS style switcher like this

     

    http://www.sitepoint.com/css-simple-style-switcher/

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 27, 2013 12:00 PM   in reply to nilojones

    The live example below uses JavaScript and an array of background images.  View source to see the code:

    http://alt-web.com/bg-img.html

     

     

    Nancy O.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points