欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

event對象的方法 兼容多瀏覽器

 更新時(shí)間:2009年06月27日 20:33:25   作者:  
event對象的方法 兼容多瀏覽器 同時(shí)兼容ie和ff的寫法
復(fù)制代碼 代碼如下:

function getEvent(){ //同時(shí)兼容ie和ff的寫法
if(document.all) return window.event;
func=getEvent.caller;
while(func!=null){
var arg0=func.arguments[0];
if(arg0){
if((arg0.constructor==Event || arg0.constructor ==MouseEvent)
|| (typeof(arg0)=="object" && arg0.preventDefault && arg0.stopPropagation)){
return arg0;
}
}
func=func.caller;
}
return null;
}

相關(guān)文章

最新評論