I've successfully implemented a slideshow in my project, as discussed in my previous inquiry.
Although I attempted to add more slideshows using the same code and design, they are not functioning properly. Even the original slideshow has stopped working, resulting in static images being displayed.
If anyone can provide guidance on how to troubleshoot these issues and get all the slideshows working again, it would be greatly appreciated.
Below is the code snippet:
HTML
<!-- Featured ad 1 -->
<div id="SlideshowFeaturedAd1">
<div>
<img src="Img4.jpg" height="150px" width="75px">
</div>
<div>
<img src="Img5.jpg" height="150px" width="75px">
</div>
<div>
<img src="Img6.jpg" height="150px" width="75px">
</div>
</div>
<!-- Featured ad 2 -->
<div id="SlideshowFeaturedAd2">
<div>
<img src="Img7.jpg" height="150px" width="75px">
</div>
<div>
<img src="Img8.jpg" height="150px" width="75px">
</div>
<div>
<img src="Img9.jpg" height="150px" width="75px">
</div>
</div>
<!-- Featured ad 3 -->
<div id="SlideshowFeaturedAd3">
<div>
<img src="Img10.jpg" height="150px" width="75px">
</div>
<div>
<img src="Img11.jpg" height="150px" width="75px">
</div>
<div>
<img src="Img12.jpg" height="150px" width="75px">
</div>
</div>`
CSS
/* CSS styles */
body {
font-family: helvetica;
}
* {
font-size: 100%;
font-family: helvetica;
}
img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
/* Starring ads */
/* Styles for starring ads */
#SlideshowStarringAds {
/* Slideshow styles */
}
/* Featured ad 1 */
/* Styling for featured ad 1 */
#SlideshowFeaturedAd1 {
/* Styles for featured ad 1 */
}
/* Featured ad 2 */
/* Styling for featured ad 2 */
#SlideshowFeaturedAd2 {
/* Styles for featured ad 2 */
}
/* Featured ad 3 */
/* Styling for featured ad 3 */
#SlideshowFeaturedAd3 {
/* Styles for featured ad 3 */
}
Javascript in HTML Head
<!-- JavaScript code for slide transitions -->
<script src="jquery-1.8.3.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#slideshow > div:gt(0)").hide();
setInterval(function() {
$('#slideshow > div:first')
.fadeOut(1000)
.next()
.fadeIn(1000)
.end()
.appendTo('#slideshow');
}, 3000);
});
</script>
<!-- End of Java script -->
JavaScript File Download available at OneDrive