Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 28, 2012 05:31 AM by jitendra2cool
Mar 27, 2012 12:39 PM|LINK
I want to run backgruond music continuously in my website like this www.mkscollege.com.
How can I do this?
If possible give sample code or any e.g.
Mar 27, 2012 12:49 PM|LINK
While you can do that, a word to the wise. Sometimes having a continuous background sound can annoy your user base and drive people away from the site. It's one thing on web sites I will avoid putting up for that reason. But if you really want to do this,
<embed src="bgsound.mp3" loop="true" autorun="true" hidden="true"></embed>
Mar 27, 2012 12:50 PM|LINK
Try usnig below HTML tags:
<EMBED SRC="LOONEY.MID" HIDDEN="true" AUTOSTART="true" LOOP="true">
<NOEMBED><BGSOUND SRC="LOONEY.MID" LOOP="1"></NOEMBED>
In the BGSOUND tag, set the value of the property "LOOP" to "-1" representing an infinite loop.
Mar 27, 2012 12:55 PM|LINK
The code below will automatically launch background music and will play through the song file in a continuous loop. It will also embed a player into the page so that the visitor can stop the music if they want to. Keep in mind that many website visitors
find continuous background music very annoying, so use this code as tactfully as possible.
<embed src="yourfile.mid" autostart="true" loop="true" width="130" height="40"> </embed>
<noembed> <bgsound src="yourfile.mid" loop="infinite"> </noembed>
Mar 27, 2012 01:54 PM|LINK
Html5 Audio Tag in continous loop - http://www.catswhocode.com/blog/mastering-the-html5-audio-property
Mar 27, 2012 02:00 PM|LINK
There is no way to play an audio or video continously through the whole site unless it's playing in a different window (popup may be). But take in mind that background music sucks big time specially when there is no way to stop it! What if your users
Please 'Mark as Answer' if this post helps you.
Mar 27, 2012 02:53 PM|LINK
How to Embed MP3 to a Website and Play Continuously without Interruption Across Pages
Mar 27, 2012 02:57 PM|LINK
That link is for wordpress, not asp.net friend.
Mar 27, 2012 03:41 PM|LINK
Sorry for that link Just use an i-frame. It's easy and will work.
Mar 27, 2012 03:44 PM|LINK
I can understand wanting to do this, but I must pass along a great site that teaches good design by showing off bad design in practice and perhaps some of you have visited this site before:
One of the things they mention is sound on the web page, FWIW :)