How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask TheDoctor Your Own Question
TheDoctor
TheDoctor, Professional w/Adv. Degree
Category: Homework
Satisfied Customers: 1757
Experience:  M.S. in Internet Information Systems
59032869
Type Your Homework Question Here...
TheDoctor is online now
A new question is answered every 9 seconds

http://wikisend.com/download/106182/case1.zip http://wikisend.com/download/301340/Tutoria

This answer was rated:

http://wikisend.com/download/106182/case1.zip
http://wikisend.com/download/301340/Tutorial 9 Case Problem 1.doc

Complete the following:

1. Open the contertxt.js and hangerstxt.htm files from tutorial.09\case1 folder in your text editor, enter your name and the date in the comment section of each file/ and save the files as counter.js and hangers.htm respectively.
2. Go to the hangers.htm file in your text editor, link the file to the counter.js file, and the save and close the file.
3. Go to the counter.js file in your text editor, and then add a command to run the set Counter() function when the page is loaded.
4. Create the setCounter() function. The function will be used to update the date that the page was last visited by the user, the number of times the page was visited, and the date that the page was last modified. Steps 5 through 11 occur within the set Counter() function.
5. Test for the existence of the lastVisit cookie. If the cookie does not exist, create a variable name LastVisit containing the following text string: Welcome to Cliff Hangers. If the cookie does exist, set the value of the lastVisit variable equal to the text string Last Visit: date where date is the value of the lastVisit cookie.
6. Store the current date, formated using the writeDateString() function, in the lastVisit cookie.
7. Test for the existence of the pageCount cookie. If the cookie does not exist, create a variable named pageCount, setting its initial value to 1. If the cookie does exist, set the value of the pageCount variable to 1 plus the value of the pageCount cookie. Not that you must apply the parselnt() method to convert the value retrieved from the pageCount cookie from a text string into an integer before increasing it by 1.
8. Store the value of the pageCount variable in the pageCount cookie.
9. Store the date that the page was last modified in a variable name pageUpdate. Format the date string using the writeDateString() function.
10. Create the HTML fragment

Visit Number: pageCount
lastVisit
Last Update: pageUpdate

where pageCount is the value of the pageCount variable, lastVisit is the value of the lastVisit variable, and pageUpdate is the value of the pageUpdate variable.
11. Append the HTML fragment to the rightCol element in the current document.
12. Save the file, load the hangers.htm file in your Web browser, and the verify that the page displays the date that the page was last visited and modified in a footer at the bottom of the page; and that every time you reload or refresh the document, the page counter increases by 1.
Hello again! Thank you for requesting me.

I will contact you once this is complete.

Thank you
Customer: replied 4 years ago.

Thank you once again sir.

THIS ANSWER IS LOCKED!

You need to spend $3 to view this post. Add Funds to your account and buy credits.
TheDoctor and other Homework Specialists are ready to help you

Related Homework Questions