TOP /すぐに使えるJavaScript | 一定時間操作しないと移動 |
---|
<script type="text/javascript"><!-- msec=5000; //ミリ秒 url="../index.html"; //移動先 //---------------------------------- ev="location.href ='"+url+"'"; id=setTimeout(ev, msec); function move(){ clearTimeout(id); id=setTimeout(ev, msec); } document.body.onmousemove=move; document.body.onmousedown=move; document.body.onkeydown=move; /*himajin.moo.jp*/ // --></script>