요일 값

1902 단어 값을 얻다
weeknum = weekDay(now)

select case weeknum

 case "1"

  data=" "

 case "2"

  data=" "

 case "3"

  data=" "

 case "4"

  data=" "

 case "5"

  data=" "

 case "6"

  data=" "

 case "7"

  data=" "

 case else

  data=" "

end select




 <SCRIPT language=JavaScripta>

 today = new Date();

var hours = today.getHours();

var minutes = today.getMinutes();

var seconds = today.getSeconds();

var timeValue = "<FONT COLOR=#ffffff>" + ((hours > 12) ? hours - 12 : hours);

timeValue += ((minutes < 10) ? "<BLINK><FONT =#ffffff>:</FONT></BLINK>0": "<BLINK><FONT COLOR=#ffffff>:</FONT></black>") + minutes + "</FONT></FONT>";

timeValue += (hours >= 12) ? "<FONT COLOR=#ffffff>PM</FONT>": "<FONT COLOR=#ffffff>AM</FONT>";

function initArray() {

    this.length = initArray.arguments.length

    for (var i = 0; i < this.length; i++) this[i + 1] = initArray.arguments[i]

}

var d = new initArray("<font color=#ffffff> ", "<font color=#ffffff> ", "<font color=#ffffff> ", "<font color=#ffffff> ", "<font color=#ffffff> ", "<font color=#ffffff> ", "<font color=red> ");

document.write("<font color=#ffffff>", today.getYear(), "<font color=#ffffff> ", "<font color=>", today.getMonth() + 1, "<font color=> ", "<font color=#ffffff>", today.getDate(), "<font color=#ffffff>  </FONT>", d[today.getDay() + 1], " "); //-->



</SCRIPT>


  

좋은 웹페이지 즐겨찾기