Skip to content

Instantly share code, notes, and snippets.

@ethangunderson
Created December 17, 2009 16:22
Show Gist options
  • Save ethangunderson/258841 to your computer and use it in GitHub Desktop.
Save ethangunderson/258841 to your computer and use it in GitHub Desktop.
function toggle_nav(id){
nav = $(id);
if(!nav.hasClassName('selected')){
$$('.splash_nav_child').each(function(e){
e.removeClassName('selected');
});
nav.addClassName('selected')
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment