473,785 Members | 2,291 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

mouseover image and object sound and preset volume level?

I have looked at some mouseover/ sound object scripts and can't get
them to work. Most were more complex than needed and introduced several
new parameters for me.

I found a simple pair of html code segments that accomplish display of
an image and automatic 'display' (playback) of a .wav file, and
apparently are usable for both IE and NS,

"
<object height="100%" width="100%"
type="image/jpeg" data="picture.j peg">
</object>
"
Displays an image.
"
<object
height="50%"
width="50%"
classid="clsid: 22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<param name="AutoStart " value="1" />
<param name="FileName" value="sound.wa v" />
</object>
"
Plays the sound without needing click on a player button.

Some questions:

1) What does the clsid: part refer to ? It doesn't work if that line is
removed.

2) What is the simplest way to play the sound with a mouseover the
image?

3) Is is possible to preset the playback volume with the 'object'
method? The default seemed obnoxiously loud to me.

Thank you

murray

Nov 1 '05 #1
4 3010
murrayatuptowng allery wrote:
<object
height="50%"
width="50%"
classid="clsid: 22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<param name="AutoStart " value="1" />
<param name="FileName" value="sound.wa v" />
</object>
"
Plays the sound without needing click on a player button.
Provided that there is a player plugin set up for the used user agent.
[...]
1) What does the clsid: part refer to ?
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_ro ot_key.asp>
It doesn't work if that line is removed.
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.
2) What is the simplest way to play the sound with a mouseover the
image?
<img ... onmouseover="re ferenceToPlayMe thod(...)"

See e.g. MSDN Library for details.
3) Is is possible to preset the playback volume with the 'object'
method? The default seemed obnoxiously loud to me.


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
Nov 1 '05 #2
VK

murrayatuptowng allery wrote:
<object height="100%" width="100%"
type="image/jpeg" data="picture.j peg">
</object>
Old good <img src="myImage.gi f" name="Image01"> would be better.

<object
height="50%"
width="50%"
classid="clsid: 22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<param name="AutoStart " value="1" />
<param name="FileName" value="sound.wa v" />
</object>
"
Plays the sound without needing click on a player button.

Some questions:

1) What does the clsid: part refer to ? It doesn't work if that line is
removed.
You're inserting Windows Media Player control onto your page. The line
of question refers to the Clacc ID under which Windows Media Player
ActiveX control is registred on the client machine.
Wrom here you may guess that:
1) User system has to be Windows 98 or higher
2) Windows Media Player v.7.x has to be installed (lower and higher
versions are using sometimes different CLASSID's for registration; so
user may be asked to download ActiveX control despite she already has
Windows Media Player installed).
2) What is the simplest way to play the sound with a mouseover the
image?
Use Macromedia Flash. It's also the only one reliable way to cover
other systems besides Windows.
3) Is is possible to preset the playback volume with the 'object'
method? The default seemed obnoxiously loud to me.


The volume depends on system volume settings. You can set volume
programmaticall y within the provided system range (other words you
cannot programmaticall y turn the volume regulator on user's
loudspeakers ;-)

Use Macromedia Flash instead. If you don't want it, don't bother with
<object> as it stays Windows-exclusive anyway. It is much simplier then
to manupulate <bgsound> object (and it doesn't require Media Player
installed).

Nov 1 '05 #3
Thanks, P-E.

I thought the conglomerate mess fell under JS because of the mouseover.
My error.

I did get the hypergurl mouseover play script to work. I somehow
eliminated whatever problem I had initially had.

I DO try to search first. Sometimes the answer is tougher for me than
the question!

I guess regarding the volume, people will have their volume set to
wherever THEY are comfortable.
Thanks.

Murray

Nov 1 '05 #4
murrayatuptowng allery wrote:
I DO try to search first. Sometimes the answer is tougher for me than
the question!
ACK
I guess regarding the volume, people will have their volume set to
wherever THEY are comfortable.
I rather think that people will be most comfortable if you do not force
another sound upon them. They may have their MP3 player application
running in the background and your additional sound interferes. So
unless you deem it absolutely necessary (for example do to the nature
of the provided content), you should refrain from doing so.
Thanks.


You're welcome.

And please read <http://jibbering.com/faq/> on quoting.
PointedEars
Nov 1 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
2368
by: J. Makela | last post by:
Hallo. This should be a pretty entertaining question for you *real* javascript writers.. I, being the lowly photoshop guy at an ad agency made the mistake of actually saying "HTML" in a conversation once.. and now I have been tasked with building a big website with LOTS of fancy javascripting. Image rollovers mostly. Only problem is that I don't really know how to do it. Of course, that's of no consequence so I have to do it anyway....
2
11624
by: arkam | last post by:
Here is the code : public class AudioMixerHelper { public const int MMSYSERR_NOERROR = 0; public const int MAXPNAMELEN = 32; public const int MIXER_LONG_NAME_CHARS = 64; public const int MIXER_SHORT_NAME_CHARS = 16; public const int MIXER_GETLINEINFOF_COMPONENTTYPE = 0x3;
4
3482
by: Robert Gravereaux | last post by:
I'm putting together a C# .Net forms project on win2k. The application requires some sort of horn sound. I've never implemented any audio in .Net, so I'm not sure how best to accomplish this. It's an application that works with a wireless barcode scanner, in a warehouse environment. The user could be potentially 20 or 30 ft. from the PC. If the user scans something improperly, the app should sound a 'horn' to notify the user. I'm trying...
3
6732
by: Andreas Hecker | last post by:
Hello, when i play a sound file like mp3 or wav with MediaPlayer or anything like this, i would like to get the volume level of the sound card in real time. The data is then sent to the serial port. How do i get this data. I tried to find some samples in msdn or internet but i couldn t find any useful code. There is the winmm.dll which supports calls to waveIn and waveOut but all the samples use them to set or get the master volume. That...
3
19499
by: Annette Acquaire | last post by:
I have and image map with a dozen hotspot links on it that I'm trying to get to open a new image over existing one on mouseover of each COORD. The only thing I was able to do was swap image on mouseover entire image, I want it on each hotspot only, so an image pertaining to each link shows up. I have done it in JavaScript, but the website I'm using doesn't use JavaScript. Y'all are obviously light-years more knowledgeable then me on html...
3
2858
by: Memozio | last post by:
Is there a library in python that has methods applicable to volume(in terms of sound) of a given file? For example if it can check if the sound volume of a file is on the same level for the entire file duration?; or if the sound volume increases/decreases all the way through the entire file duration? Thank you Petro
4
4595
by: kid joe | last post by:
Hello I've got interested in learning some basic sound programming bits in C... mainly I want to know how to go about accessing the sound devices - reading from them mainly - in windows and linux... I'd kind of like to be able to do it without a whole bunch of extra garbage added in there - by this I mean that I know in windows there are a million sound programming packages that make the whole process "easier" - there are also a few in...
1
10104
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4063
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.