Link to home
Start Free TrialLog in
Avatar of Victor Kimura
Victor KimuraFlag for Canada

asked on

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
Avatar of Victor Kimura
Victor Kimura
Flag of Canada image

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of MaartenHensen
MaartenHensen
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you.