Log In · Register

 
 
Closed TopicStart new topic
change color for botton on mp3 player
coldmeco
post Jul 8 2004, 11:58 AM
Post #1


coldmeco
*

Group: Member
Posts: 3
Joined: Jul 2004
Member No: 28,120



hi
Does any of you know how to change color on the media player botton "play" "Pause" and "stop", also is there any thing I can do to make the song play down the list instead of just looping in one song. cry.gif

coldmeco

my xanga
 
lcapk
post Jul 8 2004, 02:26 PM
Post #2


=]
******

Group: Member
Posts: 1,101
Joined: Feb 2004
Member No: 5,683



where i bolded it is where u change the button color:

<object id="darkplayer" codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" height="0" standby="Loading Microsoft Windows Media Player components..." width="0" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95">
<param NAME VALUE>
<param NAME="ShowControls" VALUE="0">
<param NAME="ShowStatusBar" VALUE="0">
<param NAME="ShowDisplay" VALUE="0">
<param NAME="DefaultFrame" VALUE="Slide">
<param NAME="Autostart" VALUE="1">
<param NAME="Loop" VALUE="True">
</object>
</p>
<form name="form">
<p style="text-align: center">
<select style="FONT-SIZE: 8pt; BACKGROUND:#1c1c1c; WIDTH: 160; COLOR: #00000; font-face: verdana; height:174" name="playlist" size="1">
<option value="0">NAME OF SONG</option>
<option value="1">NAME OF SONG</option>
<option value="2">NAME OF SONG</option>
</select><br>
<input TYPE="BUTTON" NAME="darkplay" VALUE="play" OnClick="play(document.forms['form'].playlist);">
<input TYPE="BUTTON" NAME="darkpause" VALUE="pause" OnClick="document.darkplayer.pause(); playstate=2;">
<input TYPE="BUTTON" NAME="darkstop" VALUE="stop" OnClick="document.darkplayer.stop(); playstate=2;"></p>
</form>

second part..:

CODE
<!-- begin code provided by createblog.com -->
<script language="JavaScript">
<!--
var playstate = 1;
shuffle = 0;  // set to 0 to always play first song in list
              // set to 1 to randomly choose the first song to play
 songs=new Array();
songs[0]="URL OF SONG"
songs[1]="URL OF SONG"
songs[2]="URL OF SONG"

if (shuffle == 1) {
var randsg = Math.floor(Math.random()*songs.length);
document.darkplayer.FileName = songs[randsg];
document.darkplayer.scr = songs[randsg];
document.forms['form'].playlist.options[randsg].selected = true;
}
function play(list) {
if (playstate == 2) {
document.darkplayer.Play();
} else {
var snum = list.options[list.selectedIndex].value
document.darkplayer.FileName = songs[snum];
document.darkplayer.scr = songs[snum];
}
playstate = 1;
}
//-->
 </script>
<!-- end code provided by createblog.com -->
 
coldmeco
post Jul 9 2004, 06:45 AM
Post #3


coldmeco
*

Group: Member
Posts: 3
Joined: Jul 2004
Member No: 28,120



well I want to change the "play" , "pause", "stop" button which the color is gray and I want to change the border color and the change the color of the font also... not the inside song selection. Casue I saw it on this site if u don't know what I am talking about click on it and look at the music player example

and also the second part is the same as what I had before it only make it shuffel when u reload the page but if u just leave it on the same page ... it keep on repeating the same song over and over. I want to make it so that it go to the next song while u are still on the page. Do you know how to do that?? cry.gif
 

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