Slideshow scroller from folder - html/js

Can someone help me with slideshow that fetch a folder instead of <img src="">?

The page is on sharepoint server so, I built it with webpart of javascript that uses js/css files

Thanks for all


<script src=""></script>
<link rel="stylesheet" type="text/css" href="http://Tests/Shared%20Documents/fadein.css" />

<script type="text/javascript" src="http://Test/Shared%20Documents/fadein.js"></script>

<div class="fadein">
<img src="">
<img src="">
<img src="">


$('.fadein img:gt(0)').hide();
$('.fadein :first-child').fadeOut()

Hi @gaicohen85, no you can’t request the contents of a folder with JS, only specific resources. What you might do though is write a backend endpoint that gives you the folder contents as JSON, and then loop over these with JS and fetch each image separately.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.