- id="dvImage" style="height: 308px; width: 410px"> <A ipt type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"> <ipt type="text/javascript"> var images = ["Chrysanthemum.jpg", "Desert.jpg", "Hydrangeas.jpg", "Jellyfish.jpg", "Koala.jpg", "I $(function () { var i = 0; $("#dvImage").css("background-image", "url (images/" + images[i] + ")"); setInterval(function () { i++; if (i == images.length) { i = 0; } $("#dvImage").fadeOut("slow", function () { $(this).css("background-image", "url(images/" + images[i] + ")"); $(this).fadeIn("slow"); }); }, 1000); ); =ipt> shot
Added by Daniel P.
Close
Step 1
First, you need to determine the size of the screen or the container where you want the images to fit. This can be done using CSS or JavaScript. Show more…
Show all steps
Your feedback will help us improve your experience
Harriet O'Brien and 91 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
You want to add a picture of a potential new office layout to the title page of a proposal. How can you adjust the size of the image without changing its proportions?
K S.
how to insert a image in html saved in my pictures
Haricharan G.
Find each length. $$C D$$ (IMAGE CANNOT COPY)
Foundations for Geometry
Measuring and Constructing Segments
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD