1. For this question, you will create sectionc.html document, in which you build: a. A select list element that has 4 options (Spring, Summer, Fall, Winter), and element with id = "season" that shows a picture of the selected season, Default is Winter as seen in Figure 1. b. Using a JavaScript function changepic (), if you change the value on the list, the picture of the season will change accordingly, e.g. if you select spring, the season div will show the image spring.jpg. c. The JavaScript function changepic () must be implemented in a file named allseasons.js which must be stored in js folder on assignment3 structure, your document referring to the external JavaScript file in the . d. Refer to the pictures in sectionc.html as . e. Once you are done, upload sectionc.html into html dir, allseasons.js into js dir, and all pictures into pictures dir in assignmet3 structure.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
1. For this question, you will create sectionc.html document, in which you build:
a. A select list element that has 4 options (Spring, Summer, Fall, Winter), and <img>
element with id="season" that shows a picture of the selected season, Default is Winter
as seen in Figure 1.
b. Using a JavaScript function changepic (), if you change the value on the list, the picture
of the season will change accordingly, e.g. if you select spring, the season div will show
the image spring.jpg.
c. The JavaScript function changepic () must be implemented in a file named
allseasons.js which must be stored in js folder on assignment3 structure, your
document referring to the external JavaScript file in the <script> tag. As <script
src="../js/allseasons.js"> </script>.
d.
Refer to the pictures in sectionc.html as <img
src="../pictures/summer.jpg">.
e. Once you are done, upload sectionc.html into html dir, allseasons.js into js
dir, and all pictures into pictures dir in assignmet3 structure.
Winter
Figure 1: AllSeason Dropdown list
Transcribed Image Text:1. For this question, you will create sectionc.html document, in which you build: a. A select list element that has 4 options (Spring, Summer, Fall, Winter), and <img> element with id="season" that shows a picture of the selected season, Default is Winter as seen in Figure 1. b. Using a JavaScript function changepic (), if you change the value on the list, the picture of the season will change accordingly, e.g. if you select spring, the season div will show the image spring.jpg. c. The JavaScript function changepic () must be implemented in a file named allseasons.js which must be stored in js folder on assignment3 structure, your document referring to the external JavaScript file in the <script> tag. As <script src="../js/allseasons.js"> </script>. d. Refer to the pictures in sectionc.html as <img src="../pictures/summer.jpg">. e. Once you are done, upload sectionc.html into html dir, allseasons.js into js dir, and all pictures into pictures dir in assignmet3 structure. Winter Figure 1: AllSeason Dropdown list
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
JQuery and Javascript
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education