PDA

View Full Version : help with video drop down menu



kareemamir
Nov 29th, 2005, 03: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.

http://www.pk-productions.co.uk/videotest.html

thanks v. much

Ancora
Nov 29th, 2005, 03:50 PM
<HTML>
<Head>
<Script type="text/javascript">

function playVideo(URL){

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

</Script>
</Head>
<Body>
<Table align='center' cellpadding='5'>
<TR>
<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>
</Select>
</TD>
<TD align="left">
<OBJECT ID="Player" WIDTH=287 HEIGHT=225
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
<PARAM NAME="BufferingTime" VALUE="30">
<PARAM NAME="AudioStream" VALUE="-1">
<PARAM NAME="AutoSize" VALUE="-1">
<PARAM NAME="Volume" VALUE="-400">
</OBJECT>
</TD>
</TR>
</Table>
</Body>
</HTML>

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">
<Entry>
<Ref href="URL/video1.mpeg"/>
</Entry>
<Entry>
<Ref href="URL/video2.mpeg"/>
</Entry>
<Entry>
<Ref href="URL/video3.mpeg"/>
</Entry>
<Entry>
<Ref href="URL/video4.mpeg"/>
</Entry>
</ASX>