Developing Webs logo
Google
Web DW-Main DW-Photoshop
Visit the message board for solutions or post a question Check out the Classes offered for free at Developing Webs Voice Chat submit a tutorial, resources, article, font for publication consideration and earn a one way link back to your site Get more specifics about the Developing Webs Voice chat room and its room members View the current news at Developing Webs alternative sites which are resources for your d3evelopment needs Join Developing Webs Chat Link to us on your web page to help support this resource! Check out Developing Webs At yahoo groups! Developing Webs Home Adobe Photoshop Tutorials Macromedia Flash Tutorials Jasc Paint Shop Pro Tutorials Adobe Illustrator Animation basics Some Basic PHP tutorials Perl Tutorials HTML Tutorials Cascading Style Sheets javascript Front Page Tutorials Macromedia Dream Weaver Tutorials dreamweaver Publishing your site, FTP, ChMod, Promotions
RSS Newsfeed
for your site
DW News
Calendar
DW Forum
Right click on button and copy shortcut

Add to My Yahoo!

Reminder
Remember to book mark this site!



Request a Tutorial

Inserting Midi or Wav Files on your page

1. Save your midi or wave file to the same directory where you will be playing the sound, or a sound directory which you know the URL for already,

2. Open your page up in an editor such as Notepad that will allow you to edit the code on the page.

3. Insert the following code

<embed src="your_sound_file_name.mid" height=16 width=16 autostart=true loop=true><BGSOUND src="your_sound_file_name.mid">

or

<EMBED src="file.wav" autostart=true loop=false volume=100  hidden=true><NOEMBED><BGSOUND src="file.wav"></NOEMBED>

 

Attributes:

  • Your_sound_file_name.mid will be the name of your wav or midi file and the relative or exact URL where it will be placed on the web.
  • Height and width is realive to how much of the midi player you want to show. you do not have to show it ata ll, or you can chose to show it all with all its controls by going much larger. 16X16 shows up as a little square where you can right click it and stop the midi or wav.
  • Autostart can be true or false. True means it starts right away. False means it is not started onload, but requires an action like put the play button to start.
  • Loop can be true or false. A looping sound will play continuously.

 



"Building The Web Into a Nicer Place -- One Site At A Time"
Developing Webs Group Copyright © 2001-2024 All Rights Reserved
Privacy and Legal