View Full Version : help needed plz

02-09-2005, 09:30 PM
hi guys i am running an msn group and are looking for help with html!.. the problem is this... i have various mps songs uploaded in my group and wish to have them play automatically when a page is opened,the page i have been told has to be stored in documents. so therefore the html code including the songs would have to be prepared in notepad,then saved,then uploaded to my docs for it to work! where do i start??

02-12-2005, 12:40 AM
var sound1="your url here"
var sound2="your url here"
var sound3="your url here"
var x=Math.random()*10
if (x<=3) x=sound1
else if (x<=6) x=sound2
if (navigator.appName=="Microsoft Internet Explorer")
document.write('<bgsound src='+'"'+x+'"'+' loop="infinite">')
document.write('<embed src='+'"'+x+'"'+'hidden="true" border="0" width="20" height="20" autostart="true" loop="true">')

this goes in the head, however there are a few things you'll need to modify.

also, this is an old code, so you'll need to "make it new".