日期:2014-05-16 浏览次数:20526 次
function AttachEvent(target, eventName, handler, argsObject) { var eventHandler = handler; if(argsObject) { eventHander = function(e) { handler.call(argsObject, e); } } if(window.attachEvent)//IE target.attachEvent("on" + eventName, eventHander ); else//FF target.addEventListener(eventName, eventHander, false); } function mouseeventover() { if(this.obj.className == "main_menu jt_u") { this.obj.className = "main_menu s_menu_bg"; this.oldobj.className = "jt_s"; } if(this.obj.className == "main_menu jt_u_inblock") { this.obj.className = "main_menu s_menu_bg"; this.oldobj.className = "jt_s_inblock"; } } var args = new Object(); args.obj = obj; args.oldobj = oldobj; AttachEvent(obj,"mouseover",mouseeventover,args);
?