Try to convert the different properties or methods of the IE and Dom function event objects to the DOM standard
Eventutil.formatevent = function (oevent) {
if (Isie && iswin) {//the method of judging ie slightly
Oevent.charcode = (Oevent.type = = "KeyPress")? oevent.keycode:0;
Oevent.eventphase = 2;
Oevent.ischar = (Oevent.charcode > 0);
Oevent.pagex = Oevent.clientx + document.body.scrollLeft;
Oevent.pagey = Oevent.clienty + document.body.scrollTop;
Oevent.preventdefault = function () {
This.returnvalue = false;
};
if (Oevent.type = = "Mouseout") {
Oevent.relatedtarget = oevent.toelement;
} else if (Oevent.type = = "MouseOver") {
Oevent.relatedtarget = oevent.fromelement;
}
Oevent.stoppropagation = function () {
This.cancelbubble = true;
};
Oevent.target = oevent.srcelement;
Oevent.time = (new Date). GetTime ();
}
return oevent;
};
Formatting the Event object