The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Replace JPG with MP4
I have two thumbnails on a page that, when clicked, open in a pop-up lightbox to see larger versions of the same image. So, for example, thumb-1.jpg opens violin.jpg, while thumb-2.jpg opens jump.jpg. This is the code:
Instead of opening larger images when a thumbnail is clicked, I would like to display a MP4 file with controls.
Is that possible, please?
Note that the function is using the video src/address in the text link’s href attribute. You’d wrap the link around your thumbnail image instead of text.