hyperlink to video in new window dimensions?

J

Joel

I want to allow a user to click on a hyplink of a video
that is 320 x 480, and for that to open in a new window of
that size.

Currently, the hyperlink opens the video in the middle of a
blank white page. How do I program it so that it opens in
a new window, but of the same dimensions as the video?

Thanks!

Joel
 
L

Luke Nyswonger [MSFT]

Hi Joel,

One way to do this is to use javascript. Here is a sample. There are many on the web for this.

Put this in your head tag

<Script Language="JavaScript">
<!-- Show Video
function showVideo()
{
var showVideo = window.open('yourpage.htm','','scrollbars=no,
menubar=no,height=320,width=480,resizable=no,toolbar=no,
location=no,status=no');
}
// -->
</Script>

Then your link would look like this
<a href="javascript:showVideo()">Open Video</a>

Then put the video on that page you are opening.

Regards,
Luke [MSFT]

**This posting is provided "AS IS" with no warranties, and confers no rights. You assume all risk for your use. © 2003
Microsoft Corporation. All rights reserved.**
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top