nope, not on mouseOver, permantly. I've got a CSS and script working that has one image for when it's normal (a:link, a:visited), one image for mouse over (a:hover) and one for when clicked (a:active), what I want to happen is when it's clicked, the a:link and a:visited change to the a:active and vice-versa, I just don't know the syntax.
javascript:
var button;
function restore(button) {
y = document.getElementById(button).className;
if (y == 'unpressed') {
y = pressed;
}
else {
y = 'unpressed';
}
}
I've got all the CSS how I want it and I've got one button starting with the class pressed and one starting as unpressed, but they're just not switching, any idea why?
Bookmarks