COMS303 E-Commerce Scripting Languages

Hello!  Welcome to In Lab Exercise #1

Today's Date is:    [mm/dd/yyyy]

The Month is:  [month]

Today is:  [day of week]

Please select one of the following buttons to change the background color to your own choice

                             

 

DO NOT PRESS THE RED BUTTON!!!!

Your instructions, should you decide to accept them:

  1. Access the date object and display the current date in the formats requested.
  2. Using the current date from the date object display the day of the week.
  3. Each of the buttons should change the background color to the appropriate shade of the color indicated.  
  4. The 'Red no Blue' button should bring up an alert box warning the user to make up their mind before making such a critical decision.  The button should change the background to a shade of red and then 10 seconds later turn it a nice shade of baby blue.
  5. The Red Button should bring up an alert message with a dire warning for pressing the Red Button whenever the mouse crosses over the button. 
  6. When, not if, the user presses the read button bring up an alert box suggesting they read the instructions about not pressing the red button first.  Then another alert box stating they have 5 seconds to leave their seat.  In 5 seconds create a new window with a black background.  Write a message in LARGE, RED font  to the effect of 'BOOM!'.
  7. On the Boom Page, Access the date object and display the date and time that the page was blown up using the following format; 'This page last blown up at [day, month,yr, time].

 


contact Jeff Gullion for any questions or problems: jhgullion@dmacc.cc.ia.us