Synchronizing Two Plug-Ins : PlugIn : Development JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Development » PlugIn »

 

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>
           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Development
» PlugIn