Synchronizing Two Plug-Ins : PlugIn : Development : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
C++
PHP
JavaScript DHTML Home »  Development   » [  PlugIn  ]   
 



Synchronizing Two Plug-Ins

Please note that some example is only working under IE or Firefox.


/*
Mastering JavaScript, Premium Edition
by James Jaworski 

ISBN:078212819X
Publisher Sybex CopyRight 2001
*/

<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 Mars</H1>
<EMBED SRC="mars.avi" NAME="video" AUTOSTART="TRUE"
 WIDTH="350" HEIGHT="240">
<EMBED SRC="mars.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.  The About Plug-Ins Script
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
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.