I’m a beginer in the javascript world and I’m trying to make a navigation, like this websites, that has a rollover effect, and shows the current page or sub-page that you are one. So far my javascript looks like this
$(document).ready(function()
{
var currentLocation = window.location.href;
if (currentLocation = ‘file:///C:/OASIStask/test.htm ‘)
{
$(“#dashboard li”).css(“color”, “white”);
console.log(‘no navigation highlight1’);
};
)};
I’m having trouble with what to use to change the background color of the navigation. I’ve tried background, color, background-color, etc. and have had no success.
Not sure where to go from here.