Jump to content

How to show image between certain dates

Recommended Posts

I am trying to write a html code to show an image on my site but only between certain dates. Is this possible?


I use just basic html

<a href="https://website.co.uk"><img src="https://website.co.uk/selectedimage.jpg" alt="its just an image"/></a>


what would I add to this to only show the image 'https://website.co.uk/selectedimage.jpg' between 03/10/2019 - 31/10/2019?


Your help is much appreciated

Link to post
Share on other sites

You'd need to use some programming for this one.

A backend language like PHP or ASP would be optimal, but a frontend language like JavaScript could work for it.

You would need to find out what the date is, then compare it against the dates you want. Then either show or hide accordingly.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...