FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Adding Music or Sound to Your WebsitE

 


freeonline
There are two options to letting your visitors listen to sound from your site.

1] You can simply link to the file, and when the visitor clicks, the sound will download and play.
like easy code that anyone can do
<a href="the location of the audio file">Listen to My Song</a>

2] You can embed the sound on your site to auto play when the page loads.

The HTML tag that plays music from a website is the >EMBED< tag. Inside the embed tag, you need to define several things (attributes).

=)the source or location of the file

SRC="the location of the audio file"

=)whether you want the sound to start automatically when the page loads
AUTOSTART="true or false"


3)whether you want the sound to play continuously (repeat or loop)
LOOP="true or false"


4)whether the panel is visible or not on your site (this is where I recommended to leave it visible so people can turn it off)
HIDDEN="true or false"


5)if the panel is visible (not hidden), the size of it.
WIDTH="145" HEIGHT="30"

Here is a sample bit of code that has all of the attributes included:


<EMBED SRC="mysong.mid" AUTOSTART="true" LOOP="true" HIDDEN="false" WIDTH="145" HEIGHT="30"></embed>

So now you can edit any music on site or even on FORUM ....Just be aware of copyright problem for sure.
Hope might help
snowboardalliance
ugh, I hate background music. It's only good on band sites where they have their songs playing but you can stop it.
simplyw00x
Quote:
ugh, I hate background music. It's only good on band sites where they have their songs playing but you can stop it.

Seconded - if it's a midi, forget it. If it's not related to your site, forget it. If it's not made by you, forget it. In fact, just forget it.
Sentenza
Putting music on your website is only good using Flash... I don't think the embed tag validates anyways... and the song would take forever to load, unless it's crappy quality...
althalus
simplyw00x wrote:
Seconded - if it's a midi, forget it. If it's not related to your site, forget it. If it's not made by you, forget it. In fact, just forget it.
Thrided.. Err.. I usually have music playing when I browse around and stumbling upon a site that plays music (or sound, for that matter) is an instand "backbutton". Unless, like stated above, it's a band which plays music I like, and preferable if I chose to start the music..
DisneylandFans
Thanks for the. I just need some code for my website
komunikaze
This is the best and simplest tutorial I have found about how to add music to your website. It's very easy to understand. I think you'll all like it.

Code:

http://www.thesitewizard.com/webdesign/backgroundmusic.shtml
[/code]
simplyw00x
This tutorial is even better than the one above:

Don't
Reply to topic    Frihost Forum Index -> Miscellaneous -> Tutorials

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.