Advertisement

CS 101 Introductions to Computing Assignment # 7

Upload Instructions
Please view the assignment submission process document provided to you by the Virtual University to upload the assignment.
Rules for Marking
1. You have to develop the assignment in Notepad. If you use any tool other than Notepad. Your marks will be deducted.
2. You have to submit the .html or .htm file. None of the other files will be acceptable.
3. The assignments will not be graded if it will be submitted after the due date mentioned above.
4. The assignment will not be graded if the solution file will not be opened.


Objective
This assignment has been designed to provide you some hands-on experience on Java script and HTML.

Question

1. You have to develop a web page visible in the snap shot using notepad, HTML and JAVA SCRIPT.

2. On page load a message should display “Welcome from roll no” : Please specify your roll number here, for example, if your roll no is mc040700xxx, it should display a message “Welcome from mc040700xxx”. Put your own ID instead of mc040700xxx.

3. At the top centre of the page, time should be displayed with postfix AM or PM. Please refer to the snap shot for correct format.
Hint: var date=new Date();

4. Display the centre aligned text “Please, Click on your favourite colour”.

5. Choose any five colours of your choice, and develop one button for each colour.
6. When someone clicks on the button, background colour of the webpage should change accordingly. For example, if you click on button “red”, colour of the background should change to red. Use only on click event. On mouse over is not acceptable.

7. On page unload display “Thanks for visiting”.


0 Responses