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:
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.
Author
Posts
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘CSS’ is closed to new topics and replies.