2010.05.24 21:22
2010.05.25 06:20
2010.05.26 19:26
2010.06.02 23:27
2010.06.03 04:57
2010.06.04 23:38
번호 | 제목 | 글쓴이 | 날짜 |
---|---|---|---|
905 | 찾는 곡이 있습니다. [6] | 신나라 | 2011.04.13 |
904 | 영화 '블레이드 러너(1982)' 가지고 계신분 있으신가요? [3] | Be Strong | 2011.04.08 |
903 | 자동실행하려면.. [2] | 가을이 | 2011.04.05 |
902 | 찾는 앨범이 있씀미다,; [5] | 스투씨 | 2011.04.03 |
901 | 다운 받는 방법 좀 가르쳐주셔요 ^^ [4] | 가을이 | 2011.04.02 |
900 | 앨범을 찾습니다. [5] | 참나무 | 2011.03.14 |
899 | 찾는 곡이 있씁미다, [5] | 스투씨 | 2011.03.07 |
898 | 구걸 합니다. [6] | №| | 2011.01.22 |
897 | 이거 고쳐줄수있는지요? [3] | 고양이눈 | 2011.01.21 |
896 | 뮤직비디오는 못보나요? [4] | 고은정 | 2010.11.10 |
895 | 겜플 ICS [14] | 신나라 | 2010.09.04 |
894 | 영화 좀 보고 싶은데요....... [10] | . | 2010.08.05 |
893 | 지정 시간별 웹페이지 열기 - 자동으로 새로고침 가능 [1] | 김민혁 | 2010.06.04 |
892 | 아이언맨 2 완별자막 있으시면 부탁드려요 | 깨비 | 2010.06.04 |
891 | 도와주세요^0^ | 영화 | 2010.05.22 |
» | 자바 소스 관련해서 질문 드립니다. 믿을 곳이라곤 소미 밖에 없어서... [6] | 김민혁 | 2010.05.20 |
889 | 특정 시간에 지정 웹페이지를 열려고 합니다. [5] | 김민혁 | 2010.05.19 |
888 | 음악이 안 들립니다 [1] | 마음사랑 | 2010.05.08 |
887 | 저만 그런가요?? [2] | Requiem | 2010.05.07 |
886 | 궁금 합니다 [3] | 깜냥 | 2010.05.05 |
매초마다 시간을 체크하고 변경 할수가 없네요...몰라서
TT TT 실패한 소스자료...입니다 (참고가될지....)
<HTML>
<HEAD>
<TITLE>time</TITLE>
</HEAD>
<BODY>
<script>
var clockid=new Array()
var clockidoutside=new Array()
var i_clock=-1
var thistime= new Date()
var Year=thistime.getYear()
var Month=thistime.getMonth()+1
var day=thistime.getDate()
var hours=thistime.getHours()
var minutes=thistime.getMinutes()
var seconds=thistime.getSeconds()
if (eval(hours) <10) {hours="0"+hours}
if (eval(minutes) < 10) {minutes="0"+minutes}
if (seconds < 10) {seconds="0"+seconds}
var thistime = Year+"년"+Month+"월"+day+"일 "+hours+":"+minutes+":"+seconds
function writeclock() {
i_clock++
if (document.all || document.getElementById || document.layers) {
clockid[i_clock]="clock"+i_clock
document.write("<span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span>")
document.write("<br><br style='line-height:5px'><B><FONT COLOR=ffaaff>")
if((hours < 9) && (hours >= 6)){
document.write("6시 - 9시")
document.write("<br><img src=http://c1img.cyworld.co.kr/img/myAvatar/2007/myAvatar_17000003_1.gif>")
}
if((hours >= 9) && (hours < 10)){
document.write("9시 - 10시")
}
if((hours >= 10) && (hours < 11)){
document.write("10시 - 11시")
}
if((hours >= 11) && (hours < 12)){
document.write("11시 - 12시")
}
if((hours >= 12) && (hours < 13)){
document.write("12시 - 13시")
}
if((hours >= 13) && (hours < 14)){
document.write("13시 - 14시")
}
if((hours >= 14) && (hours < 15)){
document.write("14시 - 15시")
}
if((hours >= 15) && (hours < 16)){
document.write("15시 - 16시")
}
if((hours >= 16) && (hours < 21)){
document.write("16시 - 19시")
}
if((minutes <= 34) && (minutes <= 35)){
document.write("34좋은 밤 되세요 !")
window.open("http://www.naver.com","home","width=600,height=500,statusbar=no,scrollbars=yes,toolbar=no,top=0,left=0,resizable=1")
}
if((minutes >= 36) && (minutes <= 37)){
document.write("36좋은 밤 되세요 !")
window.open("http://www.daum.net","home","width=600,height=500,statusbar=no,scrollbars=yes,toolbar=no,top=0,left=0,resizable=1")
}
if((minutes >= 38) && (minutes <= 59)){
document.write("37좋은 밤 되세요 !")
window.open("http://www.google.co.kr","home","width=600,height=500,statusbar=no,scrollbars=yes,toolbar=no,top=0,left=0,resizable=1")
}
if((hours >= 0) && (hours < 4)){
document.write("주무실 시간이네요 건강을 생각해서 이제 주무세요")
}
if((hours >= 4) && (hours <= 6)){
document.write("상쾌한 기분으로 출발하세요!")
}
document.write("</B></FONT>")
}
}
function clockon() {
thistime= new Date()
Year=thistime.getYear()
Month=thistime.getMonth()+1
day=thistime.getDate()
hours=thistime.getHours()
minutes=thistime.getMinutes()
seconds=thistime.getSeconds()
if (eval(hours) <10) {hours="0"+hours}
if (eval(minutes) < 10) {minutes="0"+minutes}
if (seconds < 10) {seconds="0"+seconds}
thistime = Year+"년"+Month+"월"+day+"일 "+hours+":"+minutes+":"+seconds
if (document.all) {
for (i=0;i<=clockid.length-1;i++) {
var thisclock=eval(clockid[i])
thisclock.innerHTML= thistime
}
}
if (document.getElementById) {
for (i=0;i<=clockid.length-1;i++) {
document.getElementById(clockid[i]).innerHTML=thistime
}
}
var timer=setTimeout("clockon()",1000)
}
window.onload=clockon
</script>
<script>writeclock()</script>
</BODY>
</HTML>