W3C home > Mailing lists > Public > www-html@w3.org > September 2002

How to control embed (for midi and wave plugin) by JavaScript?

From: Björn Eberhardt <superbjoern@web.de>
Date: Wed, 18 Sep 2002 18:31:00 +0200
Message-ID: <000801c25f31$0f6b9460$0061fea9@aldipc2002>
To: <www-html@w3.org>

How can I control embed by JavaScript?
I've made a test-page with that code:

<embed src="test.mid"
  width="200"
  height="200"
  autostart="false"
  id="music1"
  name="music1">
</embed>
-----
<script language="JavaScript1.2" type="text/JavaScript1.2">
   document.all.music1. [???]    //<----------
</script>

What controls are there avaible for midi-files? (and for wave-files?)

And I need to know how to change the volume by JavaScript.
This is only a test-code but I want to fade in and out when some actions are
happening.
Received on Wednesday, 18 September 2002 12:37:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:52 GMT