...add more to your ZyWeb site
 
 
Home
ZyWeb
ZyWorld
Tutorial
Contact Us
 

How to add music and sound effects to your website

With a snippet of HTML code added to your site, it is possible to play music files on your pages, from simple midi files to wav and MP3s.

The first step in adding a music/sound file to your site is to upload the tune in question to your Filestore. On the left of your Filestore screen, you will see the menus. In the upper menu you will the button called 'Upload'. Clicking on this will bring up the upload form. Click any one of the 'browse' buttons, and then find the file as you would normally, using Windows Explorer. After you've done this, you'll see the exact location of the file displayed in a white box next to the browse button. Click on the 'Get Files' button underneath the set of boxes to upload the file to your Filestore.


Then click the box under your sound file and click the publish button in the lower Actions menu to publish it to the Web Server.

ZyWeb

Next you must choose the page to which you wish to add the music or sound. From the page editing screen, choose to add an HTML object, then place the following code in the editing box:

<EMBED SRC="http://www.zyworld.com/username/music_filename.mid" AUTOSTART="true" HEIGHT=0 WIDTH=0 VISIBLE=FALSE AUTOLOAD="true" loop="true">

You will then have to tailor the EMBED SRC address to match the file that you have uploaded for your own use - the username and music_filename.mid fields here will differ depending on your username and the filename and extension of the music file that you uploaded.
The EMBED command can have a number of parameters depending upon the browser plug-in that will be used to play the filetype. It's impossible to list them all here and if you want to experiment then we suggest using a Search Engine for the words EMBED and the filename extension that you are uploading.

Try and choose the smallest music file you can - Midi files are the best.

REMEMBER TO PUBLISH THE MUSIC FILE AS IT WON'T BE PUBLISHED AUTOMATICALLY

This will result in IE displaying the page up to the faulty tag but Netscape refusing to display anything. The real problem however is that because you use the web browser during the editing process you would not see the faulty code and thus be unable to edit and correct it in our system - all you can do is delete the page and start again.

TIP You should test your HTML code on your computer first by creating a local test HTML file and loading it in your browser to make sure that the code is correct.



[Page visit counter]
Built by ZyWeb, the best online web page builder. Click for a free trial.