-1

Possible Duplicate:
How do I make Javascript beep?

I'm using PHP for my new project. My client needs a beep sound when someone enters data in a mysql table.

Is it possible to create a sound/beep in PHP or Javascript?

Community
  • 1
  • 1
Arif
  • 1,222
  • 6
  • 29
  • 60
  • Duplicate: http://stackoverflow.com/questions/879152/how-do-i-make-javascript-beep or http://stackoverflow.com/questions/450033/playing-sound-notifications-using-javascript – Michal B. Mar 13 '12 at 13:06
  • See a previous question D:). I think its help you. http://stackoverflow.com/questions/879152/how-do-i-make-javascript-beep – 4b0 Mar 13 '12 at 13:09

2 Answers2

1

Something like this...

<a href="#" onMouseOver="PlaySound('success.wav')">Move mouse here</A>
  Move mouse here.
 <img src="play.gif" onClick="PlaySound('success.wav')">

   <form>
   <input type="button" value="Play Sound" onClick="PlaySound('success.wav')">
     </form>

Or

<bgsound id="sound">
   <script>
    function PlaySound(url) {
     document.all.sound.src = url;
  }
     </script>
Axle
  • 181
  • 1
  • 1
  • 16
0

See My Answer here: How to play sound when new record added to database

Sound Manager 2

http://www.schillmania.com/projects/soundmanager2/

Community
  • 1
  • 1
Dutchie432
  • 28,798
  • 20
  • 92
  • 109