Help - Search - Members - Calendar
Full Version: Multiple Music Code
Forums > Resource Center > Support Center > Blogger Support > Blogger Resolved Topics
Nickie4681
I used this code
<!-- begin code provided by createblog.com --><br />
<!-- begin code provided by createblog.com --><br />
<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"><br />
<param NAME VALUE><br />
<param NAME="ShowControls" VALUE="0"><br />
<param NAME="ShowStatusBar" VALUE="0"><br />
<param NAME="ShowDisplay" VALUE="0"><br />
<param NAME="DefaultFrame" VALUE="Slide"><br />
<param NAME="Autostart" VALUE="1"><br />
<param NAME="Loop" VALUE="True"><br />
</object><br />
<form name="form"><br />
<select name="playlist" size="1"><br />
<br />
<!-- Add song info here --><br />
<option value="0">Since U Been Gone by Kelly Clarkson<br />
<option value="1">How Great is Our God by Chris Tomlin </option><br />
<option value="2">Clothes by Barlow Girl </option><br />
<option value="3">Walk by Faith by Jeremy Camp </option><br />
<option value="4">Held by Natalie Grant </option><br />
<option value="5">Breakfast by Newsboys </option><br />
<option value="6">Redeemer by Nichole C. Mullen</option><br />
<option value="7">Pure by Superchic[k] </option><br />
<br />
</select><br><br />
<input TYPE="BUTTON" NAME="darkplay" VALUE="play" OnClick="play(document.forms['form'].playlist);"><br />
<input TYPE="BUTTON" NAME="darkpause" VALUE="pause" OnClick="document.darkplayer.pause(); playstate=2;"><br />
<input TYPE="BUTTON" NAME="darkstop" VALUE="stop" OnClick="document.darkplayer.stop(); playstate=2;"></p><br />
</form><br />
<br />
<script language="JavaScript"><br />
<!--<br />
var playstate = 1;<br />
shuffle = 1; // Set to 0 to always play first song in list<br />
// Set to 1 to randomly choose the first song to play<br />
songs=new Array();<br />
<br />
// Add song URLs here<br />
songs[0]="http://a425.v8384d.c8384.g.vm.akamaistream.net/7/426/8384/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/2/23893/30200_1_2_05.asf";<br />
songs[1]="http://www.boomermediagroup.com/praisehymnaudio/windowsmedia/6766704274D.wma";<br />
songs[2]="http://a425.v8384d.c8384.g.vm.akamaistream.net/7/426/8384/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/0/26507/30540_1_8_05.asf";<br />
songs[3]="http://www.boomermediagroup.com/praisehymnaudio/windowsmedia/767667041523D.wma";<br />
songs[4]="http://mfile.akamai.com/9139/rm/stream.wmg.com/curb/NG_09_Held.ram";<br />
songs[5]="http://www.cedarcreekministries.org/Newsboys%20%20The%20Breakfast%20Song.mp3";<br />
songs[6]="http://www.health-science report.com/music/myredeemerlivesbynicolemullen.mp3";<br />
songs[7]="http://wpccs.interwise.com/wpccs/ICCFiles/wpccs/EventPageTemplates/5010/images/Pure.mp3";<br />
<br />
if (shuffle == 1) {<br />
var randsg = Math.floor(Math.random()*songs.length);<br />
document.darkplayer.FileName = songs[randsg];<br />
document.darkplayer.scr = songs[randsg];<br />
document.forms['form'].playlist.options[randsg].selected = true;<br />
}<br />
function play(list) {<br />
if (playstate == 2) {<br />
document.darkplayer.Play();<br />
} else {<br />
var snum = list.options[list.selectedIndex].value<br />
document.darkplayer.FileName = songs[snum];<br />
document.darkplayer.scr = songs[snum];<br />
}<br />
playstate = 1;<br />
}<br />
//--><br />
</script><br />
<!-- end code provided by createblog.com --><br />
<br />
<!-- end code provided by createblog.com -->


But it didn't work it said there was an error with the code.Can someone plz help me? ohmy.gif ohmy.gif ohmy.gif ohmy.gif
talcumpowder
Ugh.... I'm not a mod here. >.< Codebox next time please.... ([*codebox][/*codebox] without the asteriks.)
And there is an error in your code. Take out the line breaks after every line. You don't need them, and they're probably what's causing the error.
fireunder_earth
probally because its a darkplayer not all darkplayers work in blogger or dont work at all



note i have not tried the code and i am not a moderater i just think its cool and also the songs only work if you use the refresh button so have a note to it on your blog/website
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.