Jump to content
xisto Community
destinedskater

Music On A Website How?

Recommended Posts

Ok on my website (not the one listed on sig) i have a really cool load up page which takes about a minute. What i want to do is have a piece of music playing in the background but without the user having to click on anything. Like say they enter my website then imediatly the music plays 1.Is this possible2.If so HOW??thanks :)

Share this post


Link to post
Share on other sites

Yes it is possible:

<embed src="yourmusicfile.mid" autostart="true" loop="true"width="2" height="0"></embed><noembed><bgsound src="yourmusicfile.mid" loop="infinite"></noembed>

Change yourmusicfile.mid you what ever you want.

Share this post


Link to post
Share on other sites

I don't think this works with the Netscape family of browsers. Probably the best way to ensure that all browsers play your music is to use Flash. I'm sure there are some kits on the Internet you can download for free that allow you to just add your own music into the SWF and then place it on your page. They also typically have "play" and "stop" buttons so that the user can control the music (a lot of people listen to music while they browse, so they might not want your music to interfere with their own music).Personally, I do not like background music on websites because I am one of those people who listens to music while on the Internet. Plus, most of the background music on the Internet is not good. Your visitors may not appreciate the music.

Share this post


Link to post
Share on other sites

The code i posed does work with netscape i have personal tesed it opera, ie, mozzila and netscape, and it works in all. But opera it messes up a bit every once in a while.

Share this post


Link to post
Share on other sites

Ok thanks for the code that wbe very useful.Also what you said about people not wanting it there i must agree like you i listen to music and so does everyone else i know so haveing you say that has made me realise that !! i will not use it .Thanks all!!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.