open video in new window with javascript


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=""></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="" 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,
Victor KimuraSEO, Web DeveloperAsked:
Who is Participating?

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

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:

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.

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 to set window properties on and off.


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
another one :
google for video lightbox you will found a lot
Victor KimuraSEO, Web DeveloperAuthor Commented:
Thank you.
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

From novice to tech pro — start learning today.