[타워팁]시간대별로 자동으로 다른 인사글 하기 > 그누4 팁자료실

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요.
나누면 즐거움이 커집니다.

[타워팁]시간대별로 자동으로 다른 인사글 하기 정보

[타워팁]시간대별로 자동으로 다른 인사글 하기

본문

<center>

<b><font color="#FF0000" size="2.5">◁</font></b>

<!----------년, 월. 일 날짜 표시이벤트------------------->

<b><font color="#00CCFF" face="굴림" size="2.5">

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
monName = new Array("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12")
dayName = new Array("일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일")
now = new Date
//  End -->
</script>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
var strDay;
if ((now.getDate() == 1) || (now.getDate() != 11) && (now.getDate() % 10 == 1))
strDay = " ";
else if ((now.getDate() == 2) || (now.getDate() != 12) && (now.getDate() % 10 == 2))
strDay = " ";
else if ((now.getDate() == 3) || (now.getDate() != 13) && (now.getDate() % 10 == 3))
strDay = " ";
else
strDay = "일 ";
document.write(

now.getFullYear()
+
"년 "
+
monName[now.getMonth()]
+
"월 "
+
now.getDate()
+
strDay
+
dayName[now.getDay()]

)
//  End -->
</script></font></b>

<!-----------년, 월. 일 날짜 표시이벤트 여기까지--------------->



<!-----------현재시간 이벤트---------------------------->

<b><font color="#00CCFF" face="굴림" size="2.5">

<BODY onLoad="clock()">
<span id="pendule"></span>
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function clock() {
if (!document.layers && !document.all) return;
var digital = new Date();
var hours = digital.getHours();
var minutes = digital.getMinutes();
var seconds = digital.getSeconds();
var amOrPm = "";
if (hours > 11) amOrPm = "";
if (hours > 12) hours = hours - 12;
if (hours == 0) hours = 12;
if (minutes <= 9) minutes = "0" + minutes;
if (seconds <= 9) seconds = "0" + seconds;
dispTime = hours + "시 " + minutes + "분 " + seconds + "초" + amOrPm;
if (document.layers) {
document.layers.pendule.document.write(dispTime);
document.layers.pendule.document.close();
}
else
if (document.all)
pendule.innerHTML = dispTime;
setTimeout("clock()", 1000);
}
//  End -->
</script>
입니다</font></b>

<!-----------현재시간 이벤트 여기까지--------------------->

<b><font color="#FF0000" size="2.5"> ▷</font></b>

<br>

<!---------시간대별로 바뀌는인사 이벤트--------------->

<b><font color="#FF0000" size="2.5">♧</font></b>

<b><font color="#FF33FF" face="굴림" size="2.5">
<script language="JavaScript">
  <!--
  today = new Date()
  if(today.getMinutes() < 10){ pad = "0"}
  else  pad = "";
  document.write ;if((today.getHours() >=6) && (today.getHours() <=7))
  {  document.write("둥근해가 떴습니다... 굿모닝^^v") }
  if((today.getHours() >=8) && (today.getHours() <=9))
  {  document.write("행복한 하루되세요.오늘도 화이팅!") }
  if((today.getHours() >=10) && (today.getHours() <=12))
  { document.write("정신없이 바쁘시죠..힘내세요") }
  if((today.getHours() >=13) && (today.getHours() <=14))
  {  document.write("점심은 맛있게 드셨나요?") }
  if((today.getHours() >=15) && (today.getHours() <=17))
  {  document.write("나른한 오후시간 음악한곡 어떨까요") }
  if((today.getHours() >=18) && (today.getHours() <=20))
  { document.write("퇴근은 하셨나요? 오늘애인과 데이트약속 잊지마세요^^") }
  if((today.getHours() >=21) && (today.getHours() <=23))
  { document.write("오늘 행복하셨나요?") }
  if((today.getHours() >=0) && (today.getHours() <=3))
  { document.write("밤이깊어네요 안녕히주무세요... 내 꿈꿔") }
  if((today.getHours() >=4) && (today.getHours() <=5))
  { document.write("아직까지 취침을 안하셨네요.. 저랑커피한잔 하실래요") }
  // -- End Hiding Here -->
  </script></b></font>

<b><font color="#FF0000" size="2.5">♧</font></b>
</center>

간단한 복사로 사용 가능 합니다.^^
추천
1

댓글 1개

전체 3,310 |RSS
그누4 팁자료실 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT