Navigation Menu

What's New?
Alphabetical Listing
Site Contents


Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Become a Partner

Internet.commerce

Be a Commerce Partner














Internet.com

IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


Social Bookmark

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

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


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum. Do not include more than two (2) lines of code in your comments. If you have suggestions or corrections, you can submit them to us.]

    
   
       
[optional]
 
[optional]

   

Comments feed Comment Feed RSS 2.0

1. From: Tejinder Singh
About Personal Video
10/21/2008 14:27:35

Hello if i have flv video on my server how to play with this settings or quicktime , wmv video on my server ?

2. From: Lee (Admin)
10/31/2008 12:48:52

Just change the location (path) of the file in both places.

5. From: Bob Squires
Script not working as a pop-up
09/29/2008 17:28:33

Unfortunately I cant get the code I was sent to work the way it does in the example here. What happens on my system is that the page with the links on is completely replaced by a full 'You Tube' page - not by a pop-up on the original page. Also, adding the 'true' (without the quotes) parameter has no effect whatever.

Any idea what I might doing wrong to cause this? I think I've copied and pasted everything correctly. Thanks for any ideas you can give.

Regards,

Bob

6. From: Lee (Admin)
10/31/2008 15:35:20

Your question is beyond the scope of these comments. You will need to post it over on the JavaScript forum. Thanks!

3. From: Dacia Decuir
Good idea but needs to be tweaked
09/20/2008 01:12:28

I tried the script but the video pop-up window is off the browser page in both IE and Firefox. Have to drag into the browser window.

4. From: Lee (Admin)
10/31/2008 15:31:41

That's because you don't have any space at the top. You'll need to either add extra space or change the CSS settings.


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.