Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make a sound file loop

Status
Not open for further replies.

thebach

Technical User
May 24, 2001
12
0
0
US
How do you make a sound file loop in Dreamweaver? Been trying to figure it out for 2 days now, thanks!
 
You have to decide on what sort of sound loop you want, and then determine that you really DO want to annoy the heck out of the people visitng your site.

For loops most people use wavs and midis, for longer bits you would use streaming audio such as real audio or mp3, etc.. there are lots of file types.

You have to find your target audience and determine what type of plug-in they would already have and then go to those sites and follow their directions for installing the sound clip.

You can even use Flash and embed a wav.

Here is a way to embed a midi, which is what you hear on most sites, this script goes in head, not body:

<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
<!--
if(navigator.userAgent.indexOf(&quot;MSIE&quot;) != -1)
document.writeln ('');
else
document.writeln ('<EMBED SRC=&quot; AUTOSTART=&quot;true&quot; HIDDEN=&quot;true&quot; VOLUME=&quot;80%&quot;>');
//-->
</SCRIPT>

hope this points you in the right direction When in doubt, deny all terms and defnitions.
 
Add the attribute loop=&quot;true&quot; to the embed tag and it loops forever. check it out at

Ranjan
 
BTW: If you have the ability to create a .ra file (and I don't mean &quot;Real Audio&quot;), almost every browser can play those files, since it's a legacy audio file from the early days of the Internet.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top