<body>
<p align=center>
<font style="color:#787878;font-size:9pt">
페이지 자동 새로고침 예제 입니다 <br><br>
아래의 상태바에 안내문이..
</font>
<script language="javascript">
var limit="0:10"
if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+" minutes and "+cursec+"초 후에 자동으로 페이지를 새로고침 합니다!"
else
curtime=cursec+"초 후에 자동으로 페이지를 새로고침 합니다!"
window.status=curtime
setTimeout("beginrefresh()",1000)
}
}
window.onload=beginrefresh
</script>
</body><input type=button name=simabuttonviewsource value="View Source" onClick='window.location="view-source:"+window.location.href'>
[출처] : http://www.happyscript.net
기재되어 있는 소스중에서 var limit="0:10" 값을 적절히 조절하시면 됩니다.
만약, 20초마다 자동으로 브라우저를 refresh하고 싶다면, var limit="0:20" 과 같은 형식으로 수정하세요.<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
<p align=center>
<font style="color:#787878;font-size:9pt">
페이지 자동 새로고침 예제 입니다 <br><br>
아래의 상태바에 안내문이..
</font>
<script language="javascript">
var limit="0:10"
if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+" minutes and "+cursec+"초 후에 자동으로 페이지를 새로고침 합니다!"
else
curtime=cursec+"초 후에 자동으로 페이지를 새로고침 합니다!"
window.status=curtime
setTimeout("beginrefresh()",1000)
}
}
window.onload=beginrefresh
</script>
</body><input type=button name=simabuttonviewsource value="View Source" onClick='window.location="view-source:"+window.location.href'>
[출처] : http://www.happyscript.net
기재되어 있는 소스중에서 var limit="0:10" 값을 적절히 조절하시면 됩니다.
만약, 20초마다 자동으로 브라우저를 refresh하고 싶다면, var limit="0:20" 과 같은 형식으로 수정하세요.<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 30 |
아우겐나이스
|
21년 전 | 4049 | |
| 29 |
아우겐나이스
|
21년 전 | 4436 | |
| 28 |
아우겐나이스
|
21년 전 | 3463 | |
| 27 | 21년 전 | 5833 | ||
| 26 | 21년 전 | 3109 | ||
| 25 | 21년 전 | 6080 | ||
| 24 | 18년 전 | 3649 | ||
| 23 | 21년 전 | 3640 | ||
| 22 | 21년 전 | 4247 | ||
| 21 | 21년 전 | 3817 | ||
| 20 | 21년 전 | 4225 | ||
| 19 | 21년 전 | 6678 | ||
| 18 | 21년 전 | 4733 | ||
| 17 | 21년 전 | 6989 | ||
| 16 | 21년 전 | 4170 | ||
| 15 | 21년 전 | 2631 | ||
| 14 | 21년 전 | 4977 | ||
| 13 | 21년 전 | 3399 | ||
| 12 |
Recluse
|
21년 전 | 3878 | |
| 11 |
아우겐나이스
|
21년 전 | 3568 | |
| 10 |
Recluse
|
21년 전 | 3392 | |
| 9 | 21년 전 | 3988 | ||
| 8 | 21년 전 | 5171 | ||
| 7 | 21년 전 | 4761 | ||
| 6 | 21년 전 | 5684 | ||
| 5 | 21년 전 | 4114 | ||
| 4 | 21년 전 | 4838 | ||
| 3 | 21년 전 | 4740 | ||
| 2 | 21년 전 | 3243 | ||
| 1 | 22년 전 | 4340 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기