I got help from others about this, but their answers were a little too broad to help me ... I am new when it comes to javascript, so I cannot completely fool their answers (and all that I have tried in the last 3 days, it didnโt work.) The working site is here: http://www.studioimbrue.com/beta The problem is that with the help of thumbnails, clicking on them, it correctly adds the .selected class, but when you click on another it doesnโt can remove the .selected class from any other sketch. If you can just fix the code that I have, that would be awesome, and if you want to explain that I was wrong, go straight ahead!
$(document).ready(function(){ var activeOpacity = 1.0, inactiveOpacity = 0.6, fadeTime = 100, clickedClass = "selected", thumbs = "#list li"; $(thumbs).fadeTo(1, inactiveOpacity); $(thumbs).hover( function(){ $(this).fadeTo(fadeTime, activeOpacity); }, function(){
steve source share