Launching a .wav with a mouseclick
Posted on 1997-05-20
Okay, this shouldn't be too difficult. I just need another idea how to do it most effectively. I need to play a short .wav file when someone clicks on a link (this is an image, and I will be using 'onclick= ...' but I don't want to have it open a new window every time. Should I create a frame with a size of 0,0 and target the .wav there? Or is there a way to make it play without bringin' up a new window. I was hoping for something like "onclick=PlaySound("soundfile.wav");return true;"
Any suggestions? I'll make this one 100 points, as I am anxious for a response, and I was hoping for a really clean method that would work on netscape and explorer both. :)