From: Lachlan Forrest <[EMAIL PROTECTED]>
Subject: <OBJECT> <EMBED> and Javascript
Hi all,
Firstly is there a link at real with specs on both these tags.
Secondly I want to use javascript to trigger my own events. Does it matter
wether the browser uses the <OBJECT> or <EMBED> tag, these scripts need to
work with either tag, If I need to script seperatly that doesn't matter so
long as it can all be on the one page. This script needs to work on ie4/ns4
or up and on platforms windows/mac and unix. The player is hidden on the
page and the user cannot see it. Therefore I aim to capture all the errors
that might be thrown up. I also want a play and stop button, you know
onClick() DSPlay1.play stuff. I have an example of what I've done with
windows media....
<SCRIPT LANGUAGE="Javascript" FOR="DSPlay1" EVENT="Error()">
<!--
alert(DSPlay1.ErrorDescription + "\n" + "Go to 'Launch' to check the
system requirements or" + "\n" + "Try again by refreshing the page.");
//-->
</SCRIPT>
<OBJECT ID=DSPlay.......
</OBJECT>
Lastly a script that looks at the plugins or mimetypes or something and
decides wether to use real or windows media. If both fail then look at the
platform and decide on which one they should download ie. probably real for
a mac and windows media for a pc.
If someone could give me some examples or point me to a good resource that
would be much appreciated.
Thanks!