You just need to change the class back to the original one. Also, while doing that you can optimize your JS by chaining the functions:
PHP Code:
/* This function creates listeners on the tick marks in the console page scrubber. MH */
function createListeners(){
$('.scrubberBtn')
.click(function(){
$(this).removeClass("scrubberBtn").addClass("scrubberBtnSelected").parent().siblings().children().removeClass('scrubberBtnSelected').addClass('scrubberBtn');
})
.mouseenter(function () {$('#page_display').html(this.id);})
.mouseleave(function () {$('#page_display').html("");});
}
Edit: Oh, by the way: I just noticed that you are using the ID attribute in a wrong way. An ID must be unique and can’t contain space characters. You should move these additional values like “Button” to the class attribute or, even better, remove them altogether. All these “scrubberBtn” classes are redundant, too, as you could put one ID or class to the ul element and address your spans that way without a class on each element.