View Full Version : help with video drop down menu

Nov 29th, 2005, 02:29 PM
hey there, just wandering if some one can help me. im trying to create a drop down menu on my website. sounds simple enough, i know. but when you select something from the drop down list it starts to play a video in the media player above. if u dont under stand me check out this link.


thanks v. much

Nov 29th, 2005, 02:50 PM
<Script type="text/javascript">

function playVideo(URL){

if (URL != ""){document.Player.filename = URL}

<Table align='center' cellpadding='5'>
<TD align=center>
<Select name='videoList' onchange="playVideo(this.value)">
<option selected value="">Choose One</option>
<option value="media/PlayList.wvx"> Play All </option>
<option value="media/video1.mpeg"> First </option>
<option value="media/video2.mpeg"> Second </option>
<option value="media/video3.mpeg"> Third </option>
<option value="media/video4.mpeg"> Fourth </option>
<TD align="left">
<OBJECT ID="Player" WIDTH=287 HEIGHT=225
<PARAM NAME="BufferingTime" VALUE="30">
<PARAM NAME="AudioStream" VALUE="-1">
<PARAM NAME="AutoSize" VALUE="-1">
<PARAM NAME="Volume" VALUE="-400">

To create the PlayList.wvx fire:
Copy and paste the below code to a blank NotePad document, adjust the number of Entries as necessary, then save the file as PlayList.wvx

<ASX version ="3.0">
<Ref href="URL/video1.mpeg"/>
<Ref href="URL/video2.mpeg"/>
<Ref href="URL/video3.mpeg"/>
<Ref href="URL/video4.mpeg"/>