Advertisement

05.05.2008 at 12:00PM PDT, ID: 23377344
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

Selectable images using Javascript/CSS (swap classes onclick)

Asked by xill2678 in JavaScript, Cascading Style Sheets (CSS), Dynamic HTML (DHTML)

Tags: , ,

I have groups of images that I'd like people to be able to select.

Image Group One:
There's four images, 3 are assigned the css class "select-off", one is assigned the css class "select-on". I have corresponding CSS written, but that's not relevant to what I'm trying to do right now. What I want is when someone clicks on one of the images, the css class is swapped. This will in turn swap the other classes for the other images as well. So only one image from the group can be selected at a time. This works exactly like the radio button of an html form.

Image Group Two:
there's four images, 3 are assigned the css class "select-off", one is assigned the css class "select-on", just as the group described above. The difference with this group, is that multiple images can be selected within the same group. Clicking the image will swap the class from the current class to the opposite. Clicking again will swap again. These work exactly like selecting/unselecting checkboxes in an html form.

Since all of the images in the different groups are different from each other, I need to be able to swap classes, not images. Also, I have many different instances of both Group One and Group Two on the same page.

Ive tried adjusting many different javascripts I've found around the Net, but with no luck. I know this is very simple, and I've come close to what I want on my own, but my js skills just arent very good. Does anyone know of a script available that I can use for this without modifications? Or does anyone perhaps already have a script they care to share? Thanks :)

A final quick note, selecting an image should NOT refresh the page. Links that require href="#" in the tag to operate properly wont help me, as that would conflict with the way I have the page already setup. I need the link tag that wraps the image to not contain href at all. The images are being selected, but not actually linking to anything.Start Free Trial
 
 
Loading Advertisement...
 
[+][-]05.05.2008 at 03:12PM PDT, ID: 21503443

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.05.2008 at 03:14PM PDT, ID: 21503457

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.05.2008 at 04:42PM PDT, ID: 21503853

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.05.2008 at 04:58PM PDT, ID: 21503904

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.05.2008 at 05:26PM PDT, ID: 21503996

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.05.2008 at 05:54PM PDT, ID: 21504088

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.05.2008 at 05:56PM PDT, ID: 21504097

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.05.2008 at 06:01PM PDT, ID: 21504111

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: JavaScript, Cascading Style Sheets (CSS), Dynamic HTML (DHTML)
Tags: Javascript, CSS, all, none
Sign Up Now!
Solution Provided By: cwolves
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.05.2008 at 06:25PM PDT, ID: 21504191

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.05.2008 at 06:25PM PDT, ID: 21504192

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628