Synchronizing Two Plug-Ins : PlugIn « Development « JavaScript DHTML






Synchronizing Two Plug-Ins

<HTML>
<HEAD>
<TITLE>Synchronizing Plug-ins</TITLE>
<SCRIPT LANGUAGE="JavaScript"><!--
function play() {
 window.document.embeds[0].play()
 window.document.embeds[1].play()
}
function stop() {
 window.document.embeds[0].stop()
 window.document.embeds[1].pause()
}
function start() {
 window.document.embeds[0].rewind()
 window.document.embeds[1].stop()
}
function end() {
 window.document.embeds[0].forward()
 window.document.embeds[1].stop()
}
// --></SCRIPT>
</HEAD>
<BODY onLoad="start()">
<H1>The Planet yourWav</H1>
<EMBED SRC="yourfile.avi" NAME="video" AUTOSTART="TRUE"
 WIDTH="350" HEIGHT="240">
<EMBED SRC="yourfile.wav" HIDDEN="TRUE">
<FORM>
<INPUT TYPE="BUTTON" VALUE="Start" onClick="start()">
<INPUT TYPE="BUTTON" VALUE="Play" onClick="play()">
<INPUT TYPE="BUTTON" VALUE="Pause" onClick="stop()">
<INPUT TYPE="BUTTON" VALUE=" End " onClick="end()">
</FORM>
</BODY>
</HTML>
           
       








Related examples in the same category

1. Listing Plug-In Properties
2. Accessing a Plug-In
3.Determining Whether the LiveVideo Plug-In Is Installed
4.JavaScript to enumerate and display all installed plug-ins
5.Displaying Plug-In Information
6.Display PDF using plugin
7.Find pluin for Midi
8.Scan through each plug-in by provided parameters
9.Displaying a List of Navigator Plug-Ins
10.Properties of the Plugin Object