- Code: Select all
<script type="text/javascript>
var d = newDate()
theDay=d.GetDay()
switch (theDay)
{
case 0:
document.write("The day is: <b>Sunday</b>.")
break
case 1:
document.write("The day is: <b>Monday</b>.")
break
case 2:
document.write("The day is: <b>Tuesday</b>.")
break
case 3:
document.write("The day is: <b>Wednesday</b>.")
break
case 4:
document.write("The day is: <b>Thursday</b>.")
break
case 5:
document.write("The day is: <b>Friday</b>.")
break
case 6:
document.write("The day is: <b>Saturday</b>.")
}
</script>
- Code: Select all
<script type="text/javascript">
var d = newDate()
theDay=d.GetDay()
switch (theDay)
{
case 1:
document.write("The day is: <b>Monday</b>.")
break
case 2:
document.write("The day is: <b>Tuesday</b>.")
break
defualt:
document.write("It is not <b>Monday</b> or <b>Tuesday</b>.")
}
</script>
Secondly, when using an external script command, what should I type in for the actual external script? I know I cannot use the <script> tag in it, so what tags do I need to use? Thanks.


