Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Audio Looping? (https://www.warriorforum.com/programming/8267-audio-looping.html)

cyberwizard 1st September 2008 10:32 AM

Audio Looping?
 
Can someone tell me the script or way to LOOP a short wav or mp3 or midi audio on my web page... I have Impact Web Audio & web audio Plus software & no where does it tell me to LOOP so it plays over & over Thanks:)

jallen001 2nd September 2008 06:30 PM

Re: Audio Looping?
 
Here are the tags you'll need. The BGSOUND SRC tag is for Internet Explorer, the Embed tag is for Netscape Navigator:

<BGSOUND SRC="sound.wav" LOOP=INFINITE>
<EMBED SRC="sound.wav" AUTOSTART="true" HIDDEN="true" LOOP="true">

This will create an infinitely looping sound for both IE and Netscape.

To create a sound that doesn't loop:

<BGSOUND SRC="sound.wav" LOOP=0>
<EMBED SRC="sound.wav" AUTOSTART="True" HIDDEN="True" LOOP="false">

With the later versions of Internet Explorer, however, the above tag will give IE users two sound controls. To avoid that, add the NOEMBED and closing /NOEMBED tag around the BGSOUND SRC tag:

<NOEMBED>
<BGSOUND SRC="sound.wav" LOOP=0>
</NOEMBED>
<EMBED SRC="sound.wav" AUTOSTART="True" HIDDEN="True" LOOP="false">


All times are GMT -6. The time now is 06:58 AM.