Archive for 九月, 2011

大量LAST_ACK 分析过程

分析的很仔细,并且我在实际中用到了~ 转过来保留 (continue reading…)


JavaScript判断窗口是否最小化

//is min browser.
function isMinStatus(){
var isMin = false;
if (window.outerWidth != undefined){
isMin = window.outerWidth <= 160 && window.outerHeight <= 27;
}else{
isMin = window.screenTop < -30000 && window.screenLeft < -30000;
}
return isMin;
}

function notifyTeacher(){
if(isMinStatus()){
window.focus();
}else{
document.focus();
}
}


Copyright © 1996-2010 Add Lives. All rights reserved.
iDream theme by Templates Next | Powered by WordPress