Question: Review the script tags in the HTML file to see that this application doesn't use the slim version of the jQuery file. That way, the
Review the script tags in the HTML file to see that this application doesn't use the slim version of the
jQuery file. That way, the jQuery effects are available to this application.
Review the code in the JavaScript file to see that it's identical to the code for the Image Swap
application in chapter Now, run this application to see how it works.
Add statements to the JavaScript file that fade the caption and image out over a duration of one
second.
Modify the statements that display the new caption and image so the caption and image are faded in
over a duration of one second. Then, run the application to see that this doesn't work the way you
might expect. Instead, the new caption and image are displayed and then faded out and back in
Add a callback function to the statement that fades out the image. Then, move the statements that
display the new caption and image within this function. Now, the old caption and image should fade
out and the new caption and image should fade inkDOCTYPE
Casting the Upper Kings
alt
src imagescastingjpg alt Image Gallery area" id"image"
: p
pody
fontfamily: Arial, Helvetica, sansserif;
width: px;
margin: auto;
padding: px;
border: px solid blue;
h h ul p
margin: ;
padding: ;
h
paddingbottom: em;
color: blue;
h
fontsize: ;
padding: ;
li
padding: em;
display: inline;
#caption, #gallery
textalign: center;
ch imagegallery JS imagegallery.js
Javascript Goes here!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
