Question
USING JAVASCRIPT Display an image of a robot near the left side of a web page. The image can be any graphics file you find
USING JAVASCRIPT Display an image of a robot near the left side of a web page. The image can be any graphics file you find on the web or create yourself. May I suggest one of the cool Android mascots from the last Google I/O conference.
Display a Start button on the page.
When the Start button is clicked:
the robot shall start moving to the right.
the Start button shall become a Stop button.
When the Stop button is clicked:
the robot shall stop moving.
the Stop button shall become a Start button.
The Start/Stop button shall work repeatedly.
After the robot exits on the right, it shall re-enter from the left. Hint: Use the window.innerWidth property.
Please dont give a solution where the robot moves from right to left, It's supposed to move diagonally and then move back using the window.innerWidth Property.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started