Jump to content

How to show image between certain dates


jonesshaun
 Share

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 comment
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 comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...