For this Lab #9 we had to make two buttons that would change the background of the webpage from day to night. We also had to display the current date and time on the webpage. To do this first I used Adobe Photoshop CS6 to make the backgrounds of the page. This was pretty straight forward because I just made a night time scene and a day time scene. After doing this we had to use the day time image as the background of the webpage. Then when we the night button was pressed the background of the page would turn into a night scene.
To have the current date and time displayed on the webpage I used the function UpdateTime and UpdateDate which gets the current date and time from the computer being used and displays it to the user. I used the script tag to make the buttons work and change the background. This lab will help me in my future because it has helped me understand JavaScript more and has gave me more practice with it. Also it helped me use my photoshop skills to make the background which is always good to use in my work.




