Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Follow the mouse (1/3 of points) Overview: sftwear wants to offer their customers a poster based on the location of the mouse on the

1. Follow the mouse (1/3 of points) Overview: sftwear wants to offer their customers a poster based on the location of the mouse on the screen. Requirements: Create a page containing an image that follows the mouse. When the mouse is clicked once anywhere the image stops following; it begins following when the mouse is clicked again. Along with the image, the page should display in a fixed place the current location of the mouse and whether the image is following. Helpful Hints: You will use the mousemove event for this because the mousemove event gives the mouses x and y coordinates. See lecture 7 moveimagewithoffset.html - you will a selector for the image following the mouse and use the offset function to change the top and left to move the image See lecture 7 booleanExample.html for an example of using a boolean to see if the mouse was clicked Does the image always follow? It won't stop? You need to add an if statement to the mousemove code to only call offset (thereby moving the image) when you can move the image.

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 Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions