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

Embedding music on my website

 


flyfamilyguy
Hey folks!
I want music to play when someone views my page. I have tryed the
Code:
<embed src="yourmusic.mid">
<noembed> <bgsound src="yourmusic.mid"> </noembed>
within the <head> section of my html file, but it does not work!
Any ideas? The mp3 has been uploaded to the server (just in case you were wondering)

Is there something else that Im leaving out?

Thanks!
HamsterMan
<embed src="yourmusic.mid" autostart="true" loop="true">

That should do it.
flyfamilyguy
HamsterMan wrote:
<embed src="yourmusic.mid" autostart="true" loop="true">

That should do it.

That worked! BUT, after inserting the code, and then viewing the page, it displaced one of my template images.
I'm using an external style sheet. Is there something that I need to add to my CSS?

Thanks!
HamsterMan
flyfamilyguy wrote:
HamsterMan wrote:
<embed src="yourmusic.mid" autostart="true" loop="true">

That should do it.

That worked! BUT, after inserting the code, and then viewing the page, it displaced one of my template images.
I'm using an external style sheet. Is there something that I need to add to my CSS?

Thanks!

I'm not really sure, try hidden="true"
flyfamilyguy
HamsterMan wrote:
flyfamilyguy wrote:
HamsterMan wrote:
<embed src="yourmusic.mid" autostart="true" loop="true">

That should do it.

That worked! BUT, after inserting the code, and then viewing the page, it displaced one of my template images.
I'm using an external style sheet. Is there something that I need to add to my CSS?

Thanks!

I'm not really sure, try hidden="true"

After googling, I learned that we left something out.

width="144" height="60" Place this after <embed src="yourmusic.mid" and it worked!

Thanks a million my friend!
qscomputing
That will work, though please think about your users and consider *not* embedding music in your page. It's pretty tasteless and downright rude to start playing random music the user probably doesn't want.
flyfamilyguy
Yeah, I've already decided against it. How about embeding a music player? If the viewer wants music, he/she can just click play. How would I go about doing that?
Thanks!
qscomputing
flyfamilyguy wrote:
If the viewer wants music, he/she can just click play.

If the user wants music, he will already be playing his own choice of music.
Diablosblizz
qscomputing wrote:
flyfamilyguy wrote:
If the viewer wants music, he/she can just click play.

If the user wants music, he will already be playing his own choice of music.


What if the posters music is his own?
rvec
flyfamilyguy you don't have permission to put music files on your site.
If you own the rights to copy and share the music please ask for a permission here (Don't forget to read the sticky).

If the music files aren't made by you or if you didn't get permission from the maker to publish them please remove them from your site.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

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