 |
|
|  |
|
 |
16년 전 |
<!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=euc-kr" />
<title>Untitled Document</title>
<Script Language="Javascript">
//<!--
var timer=0;
function doMove(){
timer=0;
} //마우스가 움직일때마다 타이버를 초기화
function checkmove(){ //1초마다 이함수를 호출하여 타이머를 증가
timer++;
if(timer==10){//초단위로 값을 셋팅하고 timer가 해당 값이 될 경우 함수호출
funcSetScript();
timer = 0;//함수를 호출하고 타이머 초기화
}
}
function funcSetScript(){
location.href="http://www.naver.com"
}
//-->
</Script>
</head>
<Body onload="setInterval(checkmove,1000);" onmousemove="doMove();">
바디 영역안에서 움직임이 없으면 페이지가 이동합니다
</body>
</html> |
|
추천 : 479 |
추천
목록
|
|
|  |
|