View Full Version : Looping music in HTML
MidnightGladius
07-16-2005, 6:23 AM
I'm relatively new to HTML, so I'd appreciate if anyone could show me a tag/script that would loop music, since it seems that <embed src> will only play the sound once and stop.
add this to your embed tag:
LOOP="true"
Though, as a rule of thumb, don't force sounds onto your visitors. Its always a better idea to give them a choice first -- ie put the embed up at the top of your site, or easily visible so they can see it. Sometimes music on a site can put some people off. Especially if its a bigger file like an MP3 or something.
-Neo
MidnightGladius
07-16-2005, 9:25 AM
Don't worry, it's easily visible: it's a hyperlink that says "Click here to play music" or some such.
Also, is there a tag to make the music stop?
Thanks for the help.
NOt really. The embed will show the user whatever player they have, in the past it used to show a play/stop and pause button, but I havent seen it since forever i've got no idea >_<
You could probably use javascript in someway to stop it, but I don't remember off the top of my head.
You might check http://www.dynamicdrive.com/ look for the "jukebox" scripts or w/e they are called.
-Neo
MidnightGladius
07-16-2005, 8:48 PM
Well, then again, I suppose they could just mute the music...
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.