マウスの後に続くオブジェクトがあります。マウスがウィンドウの外に出たら、非表示にします。これは他のブラウザでは問題なく機能しますが、IE8ではイベントをトリガーしません>。<
私だけがそれをトリガーできれば、それは大丈夫だと思います。
function mouseport(e){
//alert('event triggered');
if (document.all) { //IF IE
mouseX = event.clientX;
mouseY = event.clientY;
} else {
mouseX = (window.Event) ? e.clientX : event.clientX;
mouseY = (window.Event) ? e.clientX : event.clientY;
}
if ((mouseY > 0 && mouseY < window.innerHeight)
&& (mouseX > 0 && mouseX < window.innerWidth)){
return false;
}else{
if (follow) hidett() //that's my hide function
}
}
// for IE compatability
if (!window.addEventListener) {
window.attachEvent("mouseout", mouseport);
}
else {
window.addEventListener("mouseout", mouseport, false);
}
if (window.Event) {
if (window.captureEvents) { //doesn't run if IE
document.captureEvents(Event.MOUSEOUT);
}
}
それがトリガーされないという私が間違いを犯した場所を見つけるのを手伝ってください...