Victor Kimura
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><para m name="allowscriptaccess" value="always"></param><em bed src="http://www.youtube.com/v/7HpQTFwL_Mg&hl=en_US&fs=1&" type="application/x-shockw ave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></obj ect>
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
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><para
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you.
ASKER
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