Assignment #4, Due: 11:59 PM, Wed Nov 7th (100 points)
Implement JavaScript on your home page.
- Go to the JavaScript Primer page at
http://www.htmlgoodies.com/primers/jsp/ and read the
introductory material.
- Go to the
Table of Contents page and
- Read the
Primer #1: Introduction material
- Read the
Primer #2: Error Messages material
- Read the
Primer #3: Dates and Times material
- (35 points) At the very bottom of your home page,
implement the "Welcome to my page!" Javascript,
described in the primer, which is given in the
answer link on that page.
- (10 points) Use the old Javascript method 'getYear', which
returns this:
Correct the date this provides so it looks right (the same as
the 'getFullYear' method, as
described in the section entitled A known
concern.
Please Note: You are now allowed to use "getFullYear" in
your solution (except to see what it actually does). You are
supposed to create a solution, using getYear, that REPLICATES
what getFullYear does.
- (5 points) Change the color from green to match your page
(i.e. to stand out against YOUR background color).
- Read the
Primer #4: Event Handlers: onMouseOver
- (35 points) Create a link on the bottom of your home page
that functions the same as the "Click Here" link on the
Assignment 4 Answer
- (15 points) Modify the Assignment 4
Answer so that the alert message gives the current time
(Note: for full credit, this should correctly show 'AM' or 'PM'
and the hour 12 or less).
-
E-Mail the URL of your completed assignment to the
CS159 grader (not to ME, if you email me, it's a 2 point pentalty).
You must NOTuse any kind of 'page builder' program
for this assignment! You must write your own 'raw' HTML code
(you get 0 points if you use a 'page builder' or the 'save as' function
of a word processor).
Assignment #5, Due: 11:59 PM, Wed Dec 5th (100 points)
Implement JavaScript on your home page.
- Go to the
Table of Contents page and
- Read the
Primer #11: Opening New Windows material
- Complete the assignment at the bottom of the page, EXCEPT:
- (40 pts) You change the "resume" link on your home page to pop up
your resume in a new window (note: this makes it a one-window
assignment, not two)
- (20 pts) You set the size options to neatly border your resume,
whatever size it happens to be, up to a maximum height of 900.
- (20 pts) You set all the other "config" options to be "no" except for the
"menubar" option, allowing visitors to print your resume.
- (20 pts) You still implement the "Click this to close this
window" link at the bottom of your resume page.
-
E-Mail the URL of your completed assignment to the
CS159 grader (not to ME, if you email me, it's a 2 point pentalty).
You must NOTuse any kind of 'page builder' program
for this assignment! You must write your own 'raw' HTML code
(you get 0 points if you use a 'page builder' or the 'save as' function
of a word processor).
Last Day for Late Homework: Mon Dec 17th, 2:30 PM
Homework cannot be accepted after the end of the final exam.
Return to CS159 Syllabus