Home › Forums › CSS › Replace JPG with MP4 › Reply To: Replace JPG with MP4
February 2, 2019 at 12:42 am
#282183
Beverleyh
Participant
It’s possible with JavaScript. Here’s a demo that loads a YouTube video (iframe embed code) into a modal popup but you can edit the HTML in the JS function so that it inserts your video markup instead of the iframe video embed markup. http://fofwebdesign.co.uk/template/_testing/video/youtube-popup-modal.htm
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.