Dstraction
04-22-2006, 12:45 PM
hi all,
Hopefully this is an easy one..
In a nutshell, I want to do the following:
-autostart music (*.midi) on various pages on my site - a different single file per page (already works with IE)
-give a pause button that will pause music on individual pages within the global footer (already works with IE)
-give a drop down list in the global footer which will give the option site-wide to continue to use the default midi files, use mp3 files, or turn the music off altogether (if the music is turned off altogether, I want this to help my page load speeds so I don't want the music to load at all)
I have most of this handled with the exception of the dropdown menu.
Here is the code that I have used so far:
Within each individual page (each page has its own *.m3u file) -
<script language="JavaScript">
var NFsong = "Http://mysite.com/mm5/music/m3u/pagefile.m3u"
</script>
Within the globabl footer:
<script language="javascript">
<!--
document.write("PAUSE <embed src=\""+NFsong+"\" style=\"width:44px;height:26px\" loop=\"true\" > MUSIC");
//-->
</script>
<BR>
And lastly, within a *.m3u file (each page has its own *.m3u file but we'll assume that the name is pagefile.m3u for this example)
http://mysite.com/mm5/music/Song.mid
So basically, I have the default option for a dropdown menu done already, which is to autoload and play midi files. What I need to do is include an mp3 option, which will probably entail creating new *.m3u files which reference Song.mp3 vs. Song.mid and also an option where no music is loaded at all.
The dropdown menu should be in the global footer and apply to the entire site. One of the problems that I'm having is getting the dropdown action to do something other than just referencing a new page or email.
I hope all this made some sort of sense!!!
Please help!
Thanks in advance,
Joe
Hopefully this is an easy one..
In a nutshell, I want to do the following:
-autostart music (*.midi) on various pages on my site - a different single file per page (already works with IE)
-give a pause button that will pause music on individual pages within the global footer (already works with IE)
-give a drop down list in the global footer which will give the option site-wide to continue to use the default midi files, use mp3 files, or turn the music off altogether (if the music is turned off altogether, I want this to help my page load speeds so I don't want the music to load at all)
I have most of this handled with the exception of the dropdown menu.
Here is the code that I have used so far:
Within each individual page (each page has its own *.m3u file) -
<script language="JavaScript">
var NFsong = "Http://mysite.com/mm5/music/m3u/pagefile.m3u"
</script>
Within the globabl footer:
<script language="javascript">
<!--
document.write("PAUSE <embed src=\""+NFsong+"\" style=\"width:44px;height:26px\" loop=\"true\" > MUSIC");
//-->
</script>
<BR>
And lastly, within a *.m3u file (each page has its own *.m3u file but we'll assume that the name is pagefile.m3u for this example)
http://mysite.com/mm5/music/Song.mid
So basically, I have the default option for a dropdown menu done already, which is to autoload and play midi files. What I need to do is include an mp3 option, which will probably entail creating new *.m3u files which reference Song.mp3 vs. Song.mid and also an option where no music is loaded at all.
The dropdown menu should be in the global footer and apply to the entire site. One of the problems that I'm having is getting the dropdown action to do something other than just referencing a new page or email.
I hope all this made some sort of sense!!!
Please help!
Thanks in advance,
Joe