<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년 전 | 4064 | |
| 29 |
아우겐나이스
|
21년 전 | 4448 | |
| 28 |
아우겐나이스
|
21년 전 | 3474 | |
| 27 | 21년 전 | 5847 | ||
| 26 | 21년 전 | 3132 | ||
| 25 | 21년 전 | 6097 | ||
| 24 | 18년 전 | 3662 | ||
| 23 | 21년 전 | 3650 | ||
| 22 | 21년 전 | 4254 | ||
| 21 | 21년 전 | 3826 | ||
| 20 | 21년 전 | 4242 | ||
| 19 | 21년 전 | 6695 | ||
| 18 | 21년 전 | 4743 | ||
| 17 | 21년 전 | 7002 | ||
| 16 | 21년 전 | 4183 | ||
| 15 | 21년 전 | 2653 | ||
| 14 | 21년 전 | 4985 | ||
| 13 | 21년 전 | 3408 | ||
| 12 |
Recluse
|
21년 전 | 3894 | |
| 11 |
아우겐나이스
|
21년 전 | 3581 | |
| 10 |
Recluse
|
21년 전 | 3405 | |
| 9 | 21년 전 | 4015 | ||
| 8 | 21년 전 | 5187 | ||
| 7 | 21년 전 | 4774 | ||
| 6 | 21년 전 | 5702 | ||
| 5 | 21년 전 | 4126 | ||
| 4 | 21년 전 | 4858 | ||
| 3 | 21년 전 | 4758 | ||
| 2 | 21년 전 | 3259 | ||
| 1 | 22년 전 | 4348 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기