ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Adding Movies to Your Web Page
Subject:   Frames, Embedded QuickTime, Passing Variables
Date:   2005-09-21 10:09:23
From:   Vidiot2002
<font face="verdana,helvetica,sans-serif" size="2">

Hi,

I have a page built on frames and want users to click the links to the quicktime movies they want to view in the left frame ("contents.html") and have the movies load in a single template webpage in the left frame ("video.html").

The template page "video.html" is the one with the embedded code for the player, which I want to use for all movies they select.

I want the links in the "contents.html" file to pass the parameters for the embedded code to the "video.html" template page.


The "index.html" code is:

<font color="blue" size="2"><frameset
cols="20%,80%"
border=0
framespacing=1
frameborder=0>


<frame
scrolling=auto
src="<font color="red">contents.html</font>"
name="<font color="green">Contents</font>">


<frame
scrolling=auto
src="<font color="red">video.html</font>"
name="<font color="green">Video</font>">
</frameset></font>


The "contents.html" code is:

<font color="blue" size="2"><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<font color="black"><base target="Video"></font>
<title>Training: Videos TOC</title>
</head>
<body>


<u>Videos TOC</u>
<ol>
<li><a href="<font color="red">video/intro.mov</font>">Introduction</a>
</ol>
</body>
</html></font>


The "video.html" code is (somewhat based upon your post):


<font color="blue" size="2"><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link href="main.css" type="text/css" rel="stylesheet">
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="NoteTab Pro">
<title>Training: Videos</title>
</head>
<body>


<h1>Training: Videos</h1>
<hr>


<object width="320" height="256"
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="<font color="red">VARIABLE</font>">
<param name="controller" value="true">
<param name="autoplay" value="true">
<embed src="<font color="red">VARIABLE</font>" width="320" height="256"
autoplay="true" controller="true"
pluginspage="http://www.apple.com/quicktime/download/">
</embed>
</object>


</body>
</html></font>


As you can see, "contents.html" has a "base target" value of "Video", which directs the linked item to be shown in the "Video" framespace.


I don't know what code to enter in both the "contents.html" links, as well as the "video.html" page's embedded code. I'm sure it has to be some sort of variable from a javascript or something, but I'm at a loss.


I replaced the values for the "src" and "value" parameters and the "src" value in the "embed" tag with <font face="courier" color="red">VARIABLE</font>, which is where I think the passed variables will need to be placed (unless I'm completely off base here).


Can you help me with this? Any help would be greatly appreciated!</font>