Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use your code editor ( Such as: Notepad or the Text Editor within the Hands - on - Practices ) to open the project 0

Use your code editor (Such as: Notepad or the Text Editor within the "Hands-on-Practices") to open the project02-03_txt.html and project02-03_txt.js files from the js02 project03 folder. Enter your name and the date in the comment section of each file and save them as project02-03.html and project02-03.js, respectively.
Go to the project02-03.html file in your code editor and in the head section add a script element to load the project02-03.js file, deferring the loading of the external script file until the entire page is loaded. Review the contents of the HTML file and note that the three shapes are placed within div elements with the ids square,triangle, and shape. There is also an empty paragraph with the id feedback. Save your changes to the file.
Go to the project02-03.js file in your code editor. Attach an onmouseover event handler to the element with the id square. In response to the event run an anonymous function containing a statement that changes the innerHTML property of the element with the id feedback to the text string You re hovering over the square.
Attach an onmouseout event handler to the element with the id square. In response to the event run an anonymous function containing a command that changes the innerHTML property of the element with the id feedback to an empty text string.
Repeat Steps 3 and 4 for the element with the id triangle.
Repeat Steps 3 and 4 for the element with the id circle.
Save your changes to the file and then open project02-03.html in your browser. Verify that as you hover your mouse pointer over each shape, a message indicating the shape is displayed on the page and when you move your mouse pointer away from the shape the message disappears.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

=+is irrational.

Answered: 1 week ago