Home / Expert Answers / Computer Science / nbsp-nbsp-do-the-following-1-use-your-code-editor-to-open-the-project02-03-txt-html-and-pr-pa242

(Solved):     Do the following: 1. Use your code editor to open the project02-03_txt.html and pr ...



 

 

Do the following:
1. Use your code editor to open the project02-03_txt.html and project02-03_txt.js files from the js02 proje

Do the following: 1. Use your code editor 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. 2. 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 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 flle, 3. 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". 4. 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. 5. Repeat Steps 3 and 4 for the element with the id "triangle". 6. Repeat Steps 3 and 4 for the element with the id "circle". 7. 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 in displayed on the page and when you move your mouse pointer away from the shape the message disappears.


We have an Answer from Expert

View Expert Answer

Expert Answer


Explanation : Each figures have id such as a square have an id of #square and so on. Made figures using CSS only. You can refer to style section in head tag as how I have made the figures. added eventlistener ('mouseover' and 'mouseout') in every id
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe