사이트 내 전체검색
시간대별로 배경이미지 바꾸기
https://cmd.kr/javascript/395 URL이 복사되었습니다.

본문

<script language="Javascript">

day=new Date()
x=day.getHours()
//0시부터 12시사이의 시간에 나타낼 배경주소
if(x>=0 && x<12) {
   document.write('<body background="이미지주소">')
} else
//13시부터 24시까지 나타낼 배경주소
if(x>=13 && x<24) {
   document.write('<body background="이미지주소">')
}

</script>

출처 : http://www.aircon1004.com/data/bbs/board.php?bo_table=pds1&wr_id=207

댓글목록

등록된 댓글이 없습니다.

831 (1/17P)

Search

Copyright © Cmd 명령어 3.147.78.115