| re: mouseover image and object sound and preset volume level?
murrayatuptowngallery wrote:
[color=blue]
> <object
> height="50%"
> width="50%"
> classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
> <param name="AutoStart" value="1" />
> <param name="FileName" value="sound.wav" />
> </object>
> "
> Plays the sound without needing click on a player button.[/color]
Provided that there is a player plugin set up for the used user agent.
[color=blue]
> [...]
> 1) What does the clsid: part refer to ?[/color]
The CLSID (class ID) of the respective ActiveX control/COM class object.
You can find out which CLSID refers to which object by having a look into
the `HKCR\CLSID' or `HKLM\Software\Classes\CLSID' Windows Registry
subtrees.
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/hkey_classes_root_key.asp>
[color=blue]
> It doesn't work if that line is removed.[/color]
It probably does not work _in IE for Windows_ if the `clsid' attribute is
removed, since IE probably requires the signature of a control, depending
on the Security Level set for it.
This was not a JS question.
[color=blue]
> 2) What is the simplest way to play the sound with a mouseover the
> image?[/color]
<img ... onmouseover="referenceToPlayMethod(...)"
See e.g. MSDN Library for details.
[color=blue]
> 3) Is is possible to preset the playback volume with the 'object'
> method? The default seemed obnoxiously loud to me.[/color]
Probably, but since there is no standardized plugin interface yet, it will
not work cross-browser and therefore has to be feature-tested before used.
See MSDN Library for that, too. Google is your friend. [psf 6.1]
PointedEars |