I have implemented a content panel switcher plugin from here, and with the help of code snippets found in previous posts, I was able to achieve active item highlighting when clicked.
For reference, you can view the implementation here: http://jsfiddle.net/n4pPy/1/
$(document).ready(function() {
jcps.fader(300, '#switcher-panel');
$('.nav_buttons a').click(function(event){
$('.nav_buttons a').css({ 'background-color' : '' });
$(this).css({ 'background-color' : 'red' });
});
});
I am now looking for a way to make the 'home' page appear as active by default when the page loads. Can anyone provide guidance on how to achieve this?
Thank you in advance.