Code:
#menu a {
color: #000;
background: #efefef;
text-decoration: none;
}
#menu a:hover {
color: #a00;
background: #fff;
}
These could be replaced by this JS in triggered:
Code:
var menu = document.getElementById('menu');
menu.onmouseout = function(){
menu.style.color = '#000';
menu.style.background = '#efefef';
};
menu.onmouseover = function(){
menu.style.color = '#a00';
menu.style.background = '#fff';
};
menu.style.textDecoration = 'none';
menu.onmouseout();//no need to write the same code twice
Note that this is untested. Giving this only to IE could be implemented in PHP or whatever server-side script you use. If you don't use a server-side script, you could use a JS browser-detect with an if-statement around the above code instead. EDIT: My apologies; this would need to traverse the DOM and find all A elements under menu. Unfortunately, I don't have time to implement this right now.
Bookmarks