Log In · Register

 
Drop Down Music Menu, seems everybodies having trouble with it
mjk1009
post Feb 6 2004, 12:04 AM
Post #1


Senior Member
****

Group: Member
Posts: 182
Joined: Dec 2003
Member No: 30



well here it goes in layman's terms...here the code first
CODE
<!-- begin code provided by createblog.com -->
<form name=choose>
Music Menu:
<select size=1 onChange="midiplay(this);">
<option value="#">Click For Music
<option value="music url">music name</select>
<option value="music url">music name</select>
<option value="music url">music name</select>
<option value="music url">music name</select>
<option value="music url">music name</select>
<option value="music url">music name</select>
</form>

<script language="JavaScript">
<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

document.write('<bgsound src="background music url" id=midijuke loop=1 autostart="true">');

function midiplay(what) {
if (document.all)  {
  document.all.midijuke.src = what.options[what.selectedIndex].value;
}

else {
  alert("Sorry, but the Music Menu is only accessible through MSIE4.0 and above.");
}
}

//-->
</script>
<!-- end code provided by createblog.com -->

hope this helps some ppl out... happy.gif
 
 
Start new topic
Replies
*Kathleen*
post Feb 8 2004, 08:11 PM
Post #2





Guest






QUOTE(mjk1009 @ Feb 6 2004, 12:04 AM)
well here it goes in layman's terms...here the code first
CODE
<!-- begin code provided by createblog.com -->
<form name=choose>
Music Menu:
<select size=1 onChange="midiplay(this);">
<option value="#">Click For Music
<option value="music url">music name</select>
<option value="music url">music name</select>
<option value="music url">music name</select>
<option value="music url">music name</select>
<option value="music url">music name</select>
<option value="music url">music name</select>
</form>

<script language="JavaScript">
<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

document.write('<bgsound src="background music url" id=midijuke loop=1 autostart="true">');

function midiplay(what) {
if (document.all)  {
  document.all.midijuke.src = what.options[what.selectedIndex].value;
}

else {
  alert("Sorry, but the Music Menu is only accessible through MSIE4.0 and above.");
}
}

//-->
</script>
<!-- end code provided by createblog.com -->

hope this helps some ppl out... happy.gif

I tried this, but it still didn't work for me. I have it under everything in my Custom Header. I have one of those blinkie things before it; does that affect it?
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: