Link to home
Start Free TrialLog in
Avatar of leta
leta

asked on

bell sound

How can I make the monitor bell sound when I output a warning message to the status bar?  The following code
produced the text of the message, but not the bell sound...

top.status = "\007You must first select \"Violation\"!\007"; // warn the user not to select the grayed-out Comments again!
Avatar of 909233
909233

In order to use a sound you must the embed --function
in this particular case I would say use the chimes.wav file --
(You may also wish to check the copyright on this w/ Microsoft>>
however for the purpose of example the code would look like something like:::
<embed src="chimes.wav" width=2 height=2>

height/width--so it doesn't appear in full size...

A good place to get additional plug in information is
http://www.liveupdate.com--designed to play midi files

Multiple sound files are possible...

I would suggest you download Cresendo first and give it a try..
hope this helps

ps--Remember that your web server must be configured correctly
to transmit audio to the client...

Avatar of leta

ASKER

I should have made the question clearer.  I was already
aware that I could embed an audio file.  I don't want
anything with that much overhead.  I'm developing on a
Unix platform, for other Unix platform users (Intranet
application).  I want the equivalent of the Unix command

      echo "^G"

In other words, just the terminal/monitor bell, not anything
coming out of the speaker.

Perhaps this isn't possible, but I thought it should be...
I agree, if char 7 was going to work it would be done like this:

document.write(unescape("%07"),"<BR>")


But I tried it and it didn't.
ASKER CERTIFIED SOLUTION
Avatar of rembo
rembo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial