Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Replace JPG with MP4 Reply To: Replace JPG with MP4

#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.