Log In · Register

 
Drop Down Music Player
ace
post Jun 14 2004, 12:30 AM
Post #1


Senior Member
****

Group: Member
Posts: 111
Joined: Jun 2004
Member No: 22,161



Ok, i have seen many codes for the music player....but i haven't found the right one for me yet.

anyone knows the script for the drop down menu music player with the play and stop button? you pick a song from the drop down list, and press play button to play it....stop button to stop.
 
 
Start new topic
Replies
kai1222
post Jun 14 2004, 12:43 AM
Post #2


^_^
****

Group: Member
Posts: 102
Joined: Apr 2004
Member No: 10,504



Here's the code for the drop down menu. But I'm not sure if it has the stop and play buttons. There are more music codes in the second page of the Xanga Scripts section.

CODE
<!-- begin code provided by createblog.com -->
<!-- begin code provided by createblog.com -->
<form name=choose>
Music Menu:
<select size=1 onChange="midiplay(this);">
<option value="#">Click For Music
<option value="http://url/to/america.mid">America The Beautiful
<option value="http://url/to/cannon_d.mid">Cannon (key of D)
<option value="http://url/to/entrtanr.mid">The Entertainer
<option value="http://url/to/maplerag.mid">Maple Rag
<option value="http://url/to/pete_wlf.mid">Peter & the Wolf
</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="#" 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 -->
<!-- end code provided by createblog.com -->
 

Posts in this topic


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