<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년 전 | 4036 | |
| 29 |
아우겐나이스
|
21년 전 | 4431 | |
| 28 |
아우겐나이스
|
21년 전 | 3454 | |
| 27 | 21년 전 | 5816 | ||
| 26 | 21년 전 | 3088 | ||
| 25 | 21년 전 | 6068 | ||
| 24 | 18년 전 | 3642 | ||
| 23 | 21년 전 | 3628 | ||
| 22 | 21년 전 | 4238 | ||
| 21 | 21년 전 | 3811 | ||
| 20 | 21년 전 | 4210 | ||
| 19 | 21년 전 | 6670 | ||
| 18 | 21년 전 | 4728 | ||
| 17 | 21년 전 | 6974 | ||
| 16 | 21년 전 | 4163 | ||
| 15 | 21년 전 | 2618 | ||
| 14 | 21년 전 | 4961 | ||
| 13 | 21년 전 | 3393 | ||
| 12 |
Recluse
|
21년 전 | 3865 | |
| 11 |
아우겐나이스
|
21년 전 | 3560 | |
| 10 |
Recluse
|
21년 전 | 3387 | |
| 9 | 21년 전 | 3969 | ||
| 8 | 21년 전 | 5154 | ||
| 7 | 21년 전 | 4753 | ||
| 6 | 21년 전 | 5667 | ||
| 5 | 21년 전 | 4104 | ||
| 4 | 21년 전 | 4824 | ||
| 3 | 21년 전 | 4733 | ||
| 2 | 21년 전 | 3231 | ||
| 1 | 22년 전 | 4333 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기