open video in new window with javascript

Hi,

I'm learning javascript and would like to add javascript to open a new window for playing video files and displaying an image similar to what shadowbox has. I'm using this as a learning tool.

For example, I'd like to add something like this:
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/7HpQTFwL_Mg&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/7HpQTFwL_Mg&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>

when they click on an image. The youtube video will open in a new window and play at it's original size (480x385).

I'd like to eventually add in an effect for smooth transition for opening the window.

Can someone show me some working js code for this?

Thank you,
vkimura
Victor KimuraSEO, Web DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Victor KimuraSEO, Web DeveloperAuthor Commented:
I have this page set up:
http://tutorialref.com/test/open_new_window_js.html

Click on the "New Window" button. But the new window is showing all the extraneous window such as the address bar and the bottom area of the window.

vkimura
0
MaartenHensenCommented:
I don't think you really want to open a new "window" but an overlay.

For an overlay, check out jquery.  It makes live a lot simpeler ;).

For a new window, check out http://www.javascripter.net/faq/openinga.htm to set window properties on and off.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
leakim971PluritechnicianCommented:
0
leakim971PluritechnicianCommented:
another one : http://videobox-lb.sourceforge.net/
google for video lightbox you will found a lot
0
Victor KimuraSEO, Web DeveloperAuthor Commented:
Thank you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.