function Mover(event) {
event = event?event:window.event
var obj = event.srcElement event.srcElement:event.target;
if (obj.tagName=="LI") {
obj.style.borderTop = 'solid 1px #79b2d6';
obj.style.borderBottom = 'solid 1px #79b2d6';
}
if (obj.tagName=="A") {
obj.parentNode.style.borderTop = 'solid 1px #79b2d6';
obj.parentNode.style.borderBottom = 'solid 1px #79b2d6';
}
}
改三个地方
1.调用方法函数时加event参数,如aaa,event是浏览器对象
2.先根据浏览器获得event,event = event?event:window.event
3.使用parentNode属性,parentElement只支持ie