Due to the readability issues of the navigation color against a specific image, I am looking to modify it for a particular page. Below is the HTML code:
<div id='nav'>
<ul>
<li id='navBiog'><a href="javascript:void(0)" onclick="imageChange(1, 400)" class="navItem">biography</a></li>
<li id='navConductor'><a href="javascript:void(0)" onclick="imageChange(2, 400)" class="navItem">conductor</a></li>
<li id='navOrchestrator'><a href="javascript:void(0)" onclick="imageChange(3, 400)" class="navItem">orchestrator</a></li>
<li id='navGallery'><a href="javascript:void(0)" onclick="imageChange(4, 400)" class="navItem">gallery</a></li>
<li id='navContact'><a href="javascript:void(0)" onclick="imageChange(5, 400)" class="navItem">contact</a></li>
</ul>
</div>
CSS
a.navItem:link,a.navItem:visited{
font-family:"Helvetica", "Arial", sans-serif;
font-size:20px;
text-align:right;
padding:4px 6px 4px 6px;
text-decoration:none;
color:#333;
transition:color 1s;
-moz-transition:color 1s; /* Firefox 4 */
-webkit-transition:color 1s; /* Safari and Chrome */
-o-transition:color 1s; /* Opera */
}
#navBiog a.navItem:hover,a:active {color:#cc0099;}
#navConductor a.navItem:hover,a:active {color:#ff9900;}
#navOrchestrator a.navItem:hover,a:active {color:#66cc66;}
#navGallery a.navItem:hover,a.navItem:active {color:#6699ff;}
#navContact a.navItem:hover,a.navItem:active {color:#FF0;}
Additionally, jQuery code has been used:
switch (i)
{
case 0:
$('.content').fadeOut(500);
$('a.navItem:link').animate({color: "#333"});
$('#navBiog a.navItem:hover,a:active',
'#navConductor a.navItem:hover,a:active',
'#navOrchestrator a.navItem:hover,a:active',
'#navGallery a.navItem:hover,a:active',
'#navContact a.navItem:hover,a:active').css({'color': ''});
break;
case 1:
...
[Code continues with additional cases]
...
default:
break;
}
I appreciate your assistance in advance and apologize if this question seems overly complex or redundant.