使用程序怎么实现呀!谢谢了键盘鼠标

解决方案 »

  1.   

    检测键盘和鼠标操作好办,但要没有提示的自动关闭当前IE窗口如今已经做不到了,除非是用window.open()打开的窗口
      

  2.   

    用windows.open打开的窗口,如何实现关闭,新手请多帮助
      

  3.   


    var out;
    document.onkeydown = document.onmousemove = function(){
    clearTimeout(out);
    out = setTimeout("history.back()",1000*600);
    };
      

  4.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <script type="text/javascript">
    var t=10;
    function closePage(){
    t--;
    if(t==0){
    window.location.href="http://www.baidu.com";
    }
    document.getElementById("test").innerHTML=t+"秒后关闭页面";
    window.setTimeout(closePage,1000);
    }
    document.onkeydown=function(){
    t=10;
    }
    document.onmousedown=function(){
    t=10;
    }
    document.onmousemove=function(){
    t=10;
    }
    window.onload=closePage;
    </script>
    </head><body>
    <div id="test"></div>
    </body>
    </html>
    ie貌似只能把鼠标放在浏览器外采可以