Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

bell sound

Posted on 1997-08-29
4
Medium Priority
?
849 Views
Last Modified: 2008-03-04
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!
0
Comment
Question by:leta
4 Comments
 
LVL 1

Expert Comment

by:909233
ID: 1269214
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...

0
 

Author Comment

by:leta
ID: 1269215
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...
0
 
LVL 3

Expert Comment

by:RM032397
ID: 1269216
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.
0
 
LVL 4

Accepted Solution

by:
rembo earned 200 total points
ID: 1269217

You cannot do a ^G type of thing, unfortunately.
However, there are a couple options besides plugins.

IE supports the <BGSOUND> tag and Mosaic
supports the <SOUND> tag, both of  which you
could use without plugins.  You could also use
LiveConnect to access the Java VM.  You can
use the AudioClip methods to play a short clip
that's sitting on the server.  You could, actually,
create a zero size Java applet that you could
embed in your page which loads a beep audio
clip and then plays the clip whenever you need
it to.  I could give you code for such a thing
if you need it.  

Outside of that, there's really no way to do it.  

Hope that helps,

-Tony


0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question