Assume that all the images are in a directory called img


Question :

Slideshows (or carousels) are very popular in websites. They allow web developers to display news or images on the website in limited space.

In this code challenge, you are required to complete the JavaScript function to implement a fully-functional slideshow.

The HTML part of the interface has one button and an image tag.

Assume that all the images are in a directory called "img" and there are 10 images in the directory. Each named from l to 10.

For example, the first image is 1 jpg and the second image is 2.jpg and so on. I the current image in the img tag is 3jpg, the next image will be 4.ipg, the current image is l the "next" arrow will change the image back to 1 jpg.

(Write only JavaScript function) 15 Marks] Use setAttribute0 and get fttribute0 to access the attributes of elements.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Assume that all the images are in a directory called img
Reference No:- TGS02926223

Expected delivery within 24 Hours