Question:

Need help with sound in website?

by  |  earlier

0 LIKES UnLike

On my website I have a banner that drops down at the top of the page like the blocked popup notification in IE7

I’ve managed to get the blip sound to work for IE using this code

<bgsound src="../Windows Information Bar.wav" loop="0">

Is there anything like that for Firefox and other web browsers?

Thanks for your help

 Tags:

   Report

1 ANSWERS


  1. I would do it in flash.  Flash is cross browser and most people have the plugin installed for whatever browser they commonly use.  

    Give me a sec and I&#039;ll get the AS3 code for you.

    var snd:Sound = new Sound(new URLRequest(&quot;../Windows Information Bar.wav&quot;));

    var channel:SoundChannel = snd.play();

    I would change the wav to an mp3.  If you don&#039;t have flash, you can use the answers.yahoo contact interface to send me your email.  I&#039;ll send you an attachment of the swf file that you could then embed on your page.  Just a little 1x1px dot that you can put where ever.

    Good Luck

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.