Log In · Register

 
 
Closed TopicStart new topic
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.
 
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 -->
 
ace
post Jun 14 2004, 12:49 AM
Post #3


Senior Member
****

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



it has NO play/stop button.
 
ji_cabinx
post Jun 16 2004, 02:06 PM
Post #4


^_^
******

Group: Member
Posts: 1,666
Joined: Feb 2004
Member No: 4,225



i had one with an on/off button before...lemme see if i can find it again!
 
ji_cabinx
post Jun 16 2004, 02:08 PM
Post #5


^_^
******

Group: Member
Posts: 1,666
Joined: Feb 2004
Member No: 4,225



here:
CODE
<!-- begin code provided by createblog.com -->
<!-- begin code provided by createblog.com -->
<script language="Javascript">
// background music with on/off trigger by micron
// for more xanga scripts and help go to createblog.com

// url to music (streaming files recommended)
var music = "http://www.xangaskins.com/modules/04/kenshin.asf";

function turnOFF(){
document.getElementById("musicText").innerHTML = "<a href=# onClick='turnON(); return false;'>OFF</a>";
}
function turnON(){
document.getElementById("musicText").innerHTML = "<a href=# onClick='turnOFF(); return false;'>ON</a><embed src="+ music +" autostart=true loop=true hidden=true style='display:none;'>";
}
document.write("music: <span id=musicText><a href=# onClick='turnOFF(); return false;'>ON</a><embed src="+ music +" autostart=true loop=true hidden=true style='display:none;'></span>");
</script>
<!-- end code provided by createblog.com -->
<!-- end code provided by createblog.com -->


here! that should work! this is the actually url: Click here
 

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