Photo AI

A feature is to be added to an online shopping website that allows the user to click on the image of a product to see a different, larger, image of the same product - Scottish Highers Computing Science - Question 16 - 2023

Question icon

Question 16

A-feature-is-to-be-added-to-an-online-shopping-website-that-allows-the-user-to-click-on-the-image-of-a-product-to-see-a-different,-larger,-image-of-the-same-product-Scottish Highers Computing Science-Question 16-2023.png

A feature is to be added to an online shopping website that allows the user to click on the image of a product to see a different, larger, image of the same product.... show full transcript

Worked Solution & Example Answer:A feature is to be added to an online shopping website that allows the user to click on the image of a product to see a different, larger, image of the same product - Scottish Highers Computing Science - Question 16 - 2023

Step 1

Does not change to another image

96%

114 rated

Answer

The provided code only alters the size of the image with the ID 'budPic'. It does not replace the source of the image to show a different image when clicked.

Step 2

Function not called/no onClick event/code

99%

104 rated

Answer

There is no event listener or onClick function associated with the image element, which means that clicking the image does not trigger the 'changePic' function to execute.

Join the Scottish Highers students using SimpleStudy...

97% of Students

Report Improved Results

98% of Students

Recommend to friends

100,000+

Students Supported

1 Million+

Questions answered

;