Question: Create an anchor element with no text (see instructions below for information on assigning the text to the anchor element) At least 1 additional image

Create an anchor element with no text (see instructions below for information on assigning the text to the anchor element)

At least 1 additional image that coincides with your company/product theme (this may be used wherever/however you like)

Any other elements you wish to use to enhance your home page (as long as they do not conflict with the minimum requirements)

Coding Requirements *HELP*

Write code that will first check to see if a cookie exists when the page loads. If the cookie does not exist, show the correct text in the div and anchor elements (you may paste from the Document Text section below). For example:

Create an anchor element with no text (see instructions below for information

*HELP* When the user clicks the anchor element to provide his/her name, display a prompt window asking for the users name. When the user provides his/her name, store it in a cookie file (set to expire in 7 days), update the second div element with the appropriate welcome text, and remove the text from the anchor element. For example:

on assigning the text to the anchor element) At least 1 additional

*HELP*if the cookie does exist when the page loads, show the correct text in the div and anchor elements (you may paste from the Document Text section below), including the name from the cookie. For example:

image that coincides with your company/product theme (this may be used wherever/however

*HELP* If the user clicks the anchor element (as shown above), display a prompt window asking for the users name. When the user provides his/her name, update the second div element with the appropriate welcome text, store the name in a cookie file, and remove the text from the anchor element (please see Figure 2).

In addition, 5 seconds after the body loads, generate a random number. Multiply the random number by 10 and round to the nearest whole number. If the rounded number is a multiple of 5, display the appropriate alert message to indicate the user has been selected for a survey (please see Document Text section below for the correct message). For example:

you like) Any other elements you wish to use to enhance your

You may copy these blocks of text into your document where applicable, but be sure you have added any necessary style settings.

h1

Thank you for choosing Sunrise Coffee Creations

div (when cookie does exists)

Welcome, . We hope you will enjoy your experience!

div (when cookie does not exist)

Want a more personalized experience on our website?

a (when cookie does exist)

Please click here if you are not .

a (when cookie does not exist)

Please click here to provide your name.

Alert message (show this if the rounded random number * 10 is a multiple of 5)

You have been randomly selected to participate in a customer satisfaction survey.

Prompt message (show this if the user clicks the anchor element to provide his/her name)

Please enter your name:

Thank You for Choosing Sunrise Coffee Creation hl element Sunrise Coffee Creations is a family-owned establishment located in Dallas, TX. We are dedicated to bringing our customers the best coffee products available. From whole beans to finely-ground espressos, we offer the highest-quality coffee around. Come into one of our coffee shops and enjoy our relaxing, friendly atmosphere. Would you rather shop in the comfort of your own home? No problem. Sit back, relax, and shop our products online. Either way, we feel confident you will enjoy the great service and products we provide. div element Want a more personalized experience on our website? Please click here to provide your name anchor element Figure 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!