View Full Version : how to make a video pop up in part of your site


bargo34
10-07-2005, 01:06 AM
hey im wondering how i can make it so that a video pops up in a certain part of my site.

if i have a three part site with a header and the middle section is labeled #content and i have the link for the video as <a href="http://www.videosite.com/myvideo.wmv" target="content">Click here</a> is there anything els ei must do, or am i doing this completely wrong? heres the code im using (the section i want the video in is in bold)

<head>
<title>Half Infamous</title>
<style type="text/css">

body
{ margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
}

#header {
margin: 2px;
padding: 1px;
height: 100px;
}
#left {
position: absolute;
left: 3px;
top: 160px;
width: 255px;
}
#content {
top: 0;
margin-left: 500px;
margin-right: 500px;
width:335px;
}
#right {
position: absolute;
right: 3px;
top: 160px;
width: 255px;
}
</style>
</head>

also must it be in .mov format ro can it still be done with .wmv?

Andy Fraser
10-07-2005, 04:50 PM
Hiya,

You could try adding a hyperlink like so:

<a href="mymovie.mov">Watch My Movie</a>

This will result in the video being launched in the appropriate player, in this case Apple QuickTime.

You could try embedding the video in a page. Edit the fields as appropriate.

<object
width="320"
height="260"
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab"
>
<param name="src" value="mymovie.mov">
<param name="controller" value="true">
<param name="autoplay" value="true">
<!-- Backwards Compatibility -->
<embed
src="mymovie.mp2"
width="320"
height="260"
autoplay="true"
controller="true"
pluginspage="http://www.apple.com/quicktime/download/">
</embed>
</object>

I'm not sure whether this works for Windows Media Video, but it works for .mov (QuickTime) files.

Good Luck.

bargo34
10-07-2005, 08:01 PM
well see i wnat it so that when you click on like my movie it will appear in a section of your site. like on this one http://www.sevenfiveseven.org

kittycat
10-07-2005, 09:10 PM
You'll want to use an iframe and target your links then
http://www.lissaexplains.com/frames.shtml#inline

bargo34
10-08-2005, 12:02 AM
thnx for the help