dimanche 22 juillet 2018

How to display the latest image added to a folder, and how to link to the previous one in html/javascript?

Very much a newbie here, hello.

I have written a most basic webpage in html and css with the purpose of displaying my comics. What is missing is an option to shift through the comics (like in a standard comics webpage) and, if not too hard to implement, that the index page automatically displays the latest comic added to the image folder.

Is there any simple way to do this?

Thanks in advance

current body-code looks like this:

<body>
    <main>
        <div class="page-box">
            <div class="containerHead">
                <h1 class="headline center">
                TITLE
            </div>

            <div class="home-contact-etc" top="20px">
                <h2><a href=index.html>Home</a></h2>
                &nbsp;
                &nbsp;
                <h2><a href="">Contact</a></h2>
            </div>

            <img class="comics" alt="asd" src="Comics/latestcomic.png">
    </main>
</body>




Aucun commentaire:

Enregistrer un commentaire