<script language="JavaScript">
<!--
<!--
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
function clock(){
var today = new Date();
var today_sec = today.getSeconds();
//alert(today_sec);
if(today_sec<=2){
document.main_img.src='image URL1';
}
else if((today_sec<=4)){
document.main_img.src='image URL2';
}
else if((today_sec<=6)){
document.main_img.src='image URL3';
}
else if((today_sec<=8)){
document.main_img.src='image URL1';
}
else if((today_sec<=10)){
document.main_img.src='image URL2';
}
else if((today_sec<=12)){
document.main_img.src='image URL3';
}
else if((today_sec<=14)){
document.main_img.src='image URL1';
}
else if((today_sec<=16)){
document.main_img.src='image URL2';
}
else if((today_sec<=18)){
document.main_img.src='image URL3';
}
else{
document.main_img.src='image URL1';
}
}
-->//-->
</script>
<!--
<!--
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
function clock(){
var today = new Date();
var today_sec = today.getSeconds();
//alert(today_sec);
if(today_sec<=2){
document.main_img.src='image URL1';
}
else if((today_sec<=4)){
document.main_img.src='image URL2';
}
else if((today_sec<=6)){
document.main_img.src='image URL3';
}
else if((today_sec<=8)){
document.main_img.src='image URL1';
}
else if((today_sec<=10)){
document.main_img.src='image URL2';
}
else if((today_sec<=12)){
document.main_img.src='image URL3';
}
else if((today_sec<=14)){
document.main_img.src='image URL1';
}
else if((today_sec<=16)){
document.main_img.src='image URL2';
}
else if((today_sec<=18)){
document.main_img.src='image URL3';
}
else{
document.main_img.src='image URL1';
}
}
-->//-->
</script>
'인터넷관련' 카테고리의 다른 글
지금까지 살아온 날 계산해 주는 스크립트 (0) | 2008.01.29 |
---|---|
핸드폰으로 자신의 컴퓨터 원격부팅하기. (0) | 2008.01.29 |
폴더 안에 들어있는 목록을 텍스트로 저장 (서브 폴더까지...) (0) | 2008.01.29 |
이미지클릭 >> 배경이미지 전환 스크립트 (0) | 2008.01.29 |
WOL(내 컴퓨터 원격부팅하기) Wake On Lan (0) | 2008.01.29 |
프레임셋 프레임 감추었다 보이기 (0) | 2008.01.29 |
여러장의 이미지가 부드럽게 바뀌게 만들어봅시다 (0) | 2008.01.29 |
스크롤바가 생겼다 없어졌다 하게 만들자. (0) | 2008.01.29 |