Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Embedding Video in a HTML page

Status
Not open for further replies.

Ajax29

Technical User
Joined
Aug 13, 2006
Messages
1
Location
US
Hello Forum

My name is Ajax29, " I am trying to build a little video contrainer program that updates and play a list of video clips. The first problem I ran into was getting the videos clips to interchange once a selection is made from the list. I used a the ‘onclick()’ event to capture the new files name in the <a href="#"> statement, then sent the new file name to my ChangeVideo function, which assign the new <Player1.URL = "fun.wmv";statement>

Here is an example of the script:

<!--
Player1.closedCaption.captioningID = "CapText";
Player1.closedCaption.SAMIFileName = "fun.smi";
Player1.closedCaption.SAMILang = "English Captions";
Player1.closedCaption.SAMIStyle = CCStyle.value;
Player1.URL = "fun.wmv";
Player1.Author =" "
-->
</SCRIPT>
function ChangeVideo(VideoFileNameChanged){
document.Player1.URL = "VideoFileNameChanged";
document.Player1.closedCaption.SAMIFileName = "CountDown.smi";
document.Player1.autostart = "true";
}
</Script></head>
Can you tell me what I am doing wrong?
height = 260 id = Player1 width = 273>
<param name = "AutoStart" value = "-1">
<param name="URL" value>
<param name="rate" value="1">
<param name="balance" value="0">
</OBJECT>
<DIV style = "width:276;height:52; background-color:black"; id = CapText></DIV>
<p>
<SELECT id = "CaptionsStyle" language = "_JScript" name = "CCStyle" onfiltered= "Player1.closedCaption.SAMIStyle = CCStyle.value">
<OPTIonfiltered= SmallTxt>Small Text
<OPTIonfiltered= BigTxt>Big Text
</SELECT> </p>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top