Please send questions to st10@humboldt.edu .
<html>

<!-- 
     js_switch1.html
     Playing with a JavaScript switch statement
     
     adapted from example in:
     http://www.w3schools.com/js/js_switch.asp
     a JavaScript tutorial from w3schools.com
     adapted by: Sharon Tuttle
     last modified: 8-27-06
-->

<head>
    <title> js_switch1.html: Playing with a JavaScript switch 
            statement </title>
</head>

<body>
    <h3> js_switch1.html </h3>

    <h3> ADAPTED from example in: <br>
         http://www.w3schools.com/js/js_if_else.asp, <br>
	 a JavaScript tutorial from w3schools.com <h3>

    <h4> (adapted by Sharon Tuttle, last modified 8-27-06) </h4>

    <h1>
    <script type="text/javascript">
        <!--
        // You will receive a different greeting based
        //     on what day it is. Note that Sunday=0,
        //     Monday=1, Tuesday=2, etc.

        var dt = new Date()
        theDay = dt.getDay()
        switch (theDay)
        {
            case 4:
                document.write("Thoroughly Thursday")
                break
            case 5:
                document.write("Finally Friday")
                break
            case 6:
                document.write("Super Saturday")
                break
            case 0:
                document.write("Sleepy Sunday")
                break
            default:
                document.write("I'm looking forward to this weekend!")
        }
        //-->
    </script>
    <noscript> 
        <hr> 
        Your browser does not support JavaScript, or has it disabled; <br> 
        please note that, as a result, this page will not work.
        <hr> 
    </noscript> 
    </h1>

</body>
</html>