//Wrapper für addEventListener (W3C-Standard) und attachEvent (proprietärer Dreck aus dem Hause Microsoft)
function addEvent(element, type, listener) {
if (window.addEventListener) {
element.addEventListener(type, listener, false);
} else if (window.attachEvent) {
element.attachEvent('on' + type, listener);
}
}
addEvent(window, 'load', addHoverEventToLinks);
function addHoverEventToLinks() {
links = document.getElementsByTagName('a');
for (i = 0; i < links.length; i++) {
addEvent(links[i], 'mouseover', [i]NameDeinerFunktionDieWasBeiHoverMachenSoll[/i]);
}
}