Highlight current link?
Highlight current link?
Currently on this site
http://www.jacksonwynne.com/round2/
The links have all attributes set throught css. Now I wanted it so that when the current link is clicked it will stay highlighted until another link is clicked. I achieved this by putting in the jquery
- $('a.loadset').each(function(){
- $(this).removeClass('selected');
- $(this).addClass('unselected');
- });
Selected class is the hover class too and unselected is the visited link too like this example.
- #overlay li a:visited, #overlay li a.unselected{
- #overlay li a:hover, #overlay li a.selected{
Now it all works fine except, when you click a link it highlights but when you click the next the previous doesn't unselect until you hover over it again.
Can anyone suggest how to fix this?
All help appriciated thanks :)