<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년 전 | 4080 | |
| 29 |
아우겐나이스
|
21년 전 | 4462 | |
| 28 |
아우겐나이스
|
21년 전 | 3485 | |
| 27 | 21년 전 | 5865 | ||
| 26 | 21년 전 | 3147 | ||
| 25 | 21년 전 | 6114 | ||
| 24 | 18년 전 | 3680 | ||
| 23 | 21년 전 | 3674 | ||
| 22 | 21년 전 | 4267 | ||
| 21 | 21년 전 | 3849 | ||
| 20 | 21년 전 | 4251 | ||
| 19 | 21년 전 | 6712 | ||
| 18 | 21년 전 | 4756 | ||
| 17 | 21년 전 | 7008 | ||
| 16 | 21년 전 | 4192 | ||
| 15 | 21년 전 | 2661 | ||
| 14 | 21년 전 | 4995 | ||
| 13 | 21년 전 | 3418 | ||
| 12 |
Recluse
|
21년 전 | 3903 | |
| 11 |
아우겐나이스
|
21년 전 | 3587 | |
| 10 |
Recluse
|
21년 전 | 3421 | |
| 9 | 21년 전 | 4035 | ||
| 8 | 21년 전 | 5200 | ||
| 7 | 21년 전 | 4787 | ||
| 6 | 21년 전 | 5719 | ||
| 5 | 21년 전 | 4141 | ||
| 4 | 21년 전 | 4872 | ||
| 3 | 21년 전 | 4774 | ||
| 2 | 21년 전 | 3276 | ||
| 1 | 22년 전 | 4364 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기