General
If you have a number of videos to show off, a select list is a good option. Use this script to display videos in a popup window, using the video links from the list. This method saves a large amount of space on the page.
Notes
- Created by: Patrick Hunlock
- Web Site: http://www.hunlock.com/
- Posted: September 17, 2008
Note: If "true" is added to the second argument, the video will appear over a gray screen:
<a href="http://www.video.com/link"
onclick='return popVideo("vid2",true)'>A Nice Video</a>
Additional information can be found in this article.
Source Code
Paste this source code into the designated areas.
External file
Paste this code into an external JavaScript file named: video.js
Head
Paste this code into the HEAD section of your HTML document.
Body
Paste this code into the BODY section of your HTML document
Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.
