div添加onmouseover+mouseout事件就行了,mouseover设置全局遍历over为true,mouseout设置为false,blur的时候检查over是否为true

解决方案 »

  1.   


        <input type="text" onblur="checkMouseOver()">
        <div style="width:400px; height:100px; background:#ccc; margin-top:10px;"></div>
        <script>
            function checkMouseOver(){
                if($("div:hover").length > 0){
                    alert("yes");
                }
            }
        </script>