PDA

View Full Version : help needed plz



joker
02-09-2005, 08: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??

darco9x2
02-11-2005, 11:40 PM
<script>
<!--
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
else
x=sound3
if (navigator.appName=="Microsoft Internet Explorer")
document.write('<bgsound src='+'"'+x+'"'+' loop="infinite">')
else
document.write('<embed src='+'"'+x+'"'+'hidden="true" border="0" width="20" height="20" autostart="true" loop="true">')
//-->
</script>

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".