Assignment 9
Images
Due Date: Week 11 Day 1
50 points (Layout: 10, Content: 40)
DO NOT USE ANYTHING THAT WE HAVE NOT LEARNED YET. THE LESSONS STOP AT WEEK 10. We want to learn step by step, i.e. be able to use what we have learned during the first 10 weeks.
Think along the line of your business, hobbies, or personal Web site.
Redo the homepage to add banner ads and the last time the user visited. Update index.html to do the following:
- Create an object Ads that has the following properties:
- Banner: this will be the image for the ads.
- URL: this is the Website associated with the ads.
- ID: this is your account ID for the advertisers to pay you.
- Create an array of at least 5 ads.
- Randomly display the ads every 5 seconds (you can test to make it every second).
- When the user clicks on the banner ads, load the Website on a new window by passing the ID as hidden (input type=hidden). So you need to create a form using the banner image as a button that the user can click.
- Use a cookie to store the date and time the user comes to the site. When the user comes back (test by refreshing the page), retrieve the date and time from the cookie and display "Last time visited was...(enter the date here)"). When the user first visits the page, there's nothing to display because the cookie is blank.
Make sure to read the requirements very carefully. Once your lab is submitted, it's not allowed for you to redo it. I do not regrade. One day late is 10% off. A perfect assignment with more than 2 weeks late will get a maximum of 10% only.
Email me in the format shown below to inform me that your lab is ready to be graded. I highly suggest you send yourself a courtesy copy (cc).
{Your name}
{Your Voyager account name (e.g. xyz36459}
{Class: CIS89C}
{Assignment #9}
I cannot grade if I don't receive your email.