Help - Search - Members - Calendar
Full Version: anyone can help me thks =)
Forums > Resource Center > Support Center > Blogger Support > Blogger Resolved Topics
wintergurl
hello XD.gif

i was looking for music player that can contain many songs

and when u select n click play it the songs will play...

erm may i knw where to get this code

thanks biggrin.gif
moorepocket
here one i think you need.

http://www.createblog.com/forums/index.php?showtopic=124304
Jezxion
I tried using the script from Xanga. I knew that it can also be use for blogger. I'm using blogger. But then the darkplayer doesn't plays the song. Is there anything wrong with the script ? ermm.gif

[color=#6600CC]<!-- begin code provided by createblog.com -->
<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>
<form name="form">
<select name="playlist" size="1">

<!-- Add song info here -->
<option value="0">Artist Name - Song Title</option>
<option value="1">Artist Name- Song Title</option>
<option value="2">Artist Name- Song Title</option>
<option value="3">Artist Name- Song Title</option>
<option value="4">Artist Name - Song Title</option>

</select>
<input TYPE="BUTTON" NAME="darkplay" VALUE="play" OnClick="play(document.forms['form'].playlist);">
</form>

<script language="JavaScript">
<!--
var playstate = 1;
shuffle = 1; // Set to 0 to always play first song in list
// Set to 1 to randomly choose the first song to play
songs=new Array();

// Add song URLs here
songs[0]="http://www.wtt8.com/play.asp?id=108054&art=3415";
songs[1]="http://www.8ka.com/play.asp?id=108055&art=3415";
songs[2]="http://www.8ka.com/play.asp?id=108056&art=3415";
songs[3]="http://61.145.75.242:8899/...006-11/68813.mp3";
songs[4]="SONG URL HERE";

if (shuffle == 1) {
var randsg = Math.floor(Math.random()*songs.length);
document.darkplayer.FileName = songs[randsg];
document.darkplayer.src = 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.src = songs[snum];
}
playstate = 1;
}
//-->
</script>
<!-- end code provided by createblog.com -->
moorepocket
songs are invalid. It must have like mp3, wav, or wma.
Jezxion
You mean something like this ? The song cannot be played still ..... _unsure.gif


http://www.leebyunghun.cn/share/mp3/m12.mp3
moorepocket
yes. That, it will play.
Jezxion
ermm.gif the song still cant be played. Why is this so ?
Jezxion
can someone help ? i still cant play the song..... cry.gif
Mulder
i'm not sure that script will work since it seems to work with xanga specifically

http://www.createblog.com/scripts/download.php?id=164

i think this will work.
Jezxion
hmm...i'm really sorry because it doesn't work too. I wonder what is wrong. It doesn't prompts the song to play. cry.gif
jocuri
http://www.createblog.com/scripts/download.php?id=164
works at me!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.