Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Also, as part of your weekly participation we will put in to practice concepts learned this week. Below is a small coding assignment that will

Also, as part of your weekly participation we will put in to practice concepts learned this week. Below is a small coding assignment that will help you try out some of the basic concepts taught this week. You will need to upload your code to the public_html directory/folder of your AFS account, test it and then submit the url and the code under this assignment.

This week you will need to create a script that will allow a user to toggle between (swap) two images of an sunrise and sunset. One image will be of a sunrise and the other will be of sunset. You can easily google and download the required images. Remember this assignment must be implemented using JS.

The script will use the getElementById() method to toggle the images when the image of the sunrise/sunset is clicked by the user. The video below demonstrates how the application works. The user needs to click the image of the sunrise/sunset to turn it on or off. A click anywhere else does nothing.

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

Power Bi And Azure Integrating Cloud Analytics For Scalable Solutions

Authors: Kiet Huynh

1st Edition

B0CMHKB85L, 979-8868959943

More Books

Students also viewed these Databases questions