jeudi 23 novembre 2023

How can I change multiple images each day to different ones from the same folder using JavaScript?

Im gunna try this again in more detail so I have a website with multiple images on the home page which I change manually each week from my images folder which has over 500 images, is there a way I can do this using javascript so each day it changes so a different image, kind of like storing all the image links in a javascript file, does this make sense?

here is the code to display each section take a look at the website page so you can understand more what I mean wealthybones dot com

<h3 class="no-title">Recently Added</h3>
        <div class="no">
            <img src="images/move.png" alt="">
            <a href="files/jamaledwards"><img src="images/deadhome/jamaledwards.png" alt=""></a>
            <a href="files/margaretjohn"><img src="images/deadhome/margaretjohn.png" alt=""></a>
            <a href="files/michaelgambon"><img src="images/deadhome/michaelgambon.png" alt=""></a>
            <a href="files/halroach"><img src="images/deadhome/halroach.png" alt=""></a>
            <a href="files/genekelly"><img src="images/deadhome/genekelly.png" alt=""></a>
            <a href="files/petercushing"><img src="images/deadhome/petercushing.png" alt=""></a>
            <a href="files/jimhenson"><img src="images/deadhome/jimhenson.png" alt=""></a>
            <a href="files/hennyyoungman"><img src="images/deadhome/hennyyoungman.png" alt=""></a>
            <a href="files/donaldpleasence"><img src="images/deadhome/donaldpleasence.png" alt=""></a>
            <a href="files/brookemccarter"><img src="images/deadhome/brookemccarter.png" alt=""></a>
            <a href="#search22"><img src="images/search.png" alt=""></a>
        </div>
    </div>



Aucun commentaire:

Enregistrer un commentaire