We've recently discovered how to incorporate a music player created with Web JukeBox into the now-ubiquitous MySpace. It requires some slight modifications, but once you understand the concept, it's not really that difficult.

MySpace requires all URLs to be absolute, but Web JukeBox creates relative links within the files. (Read this article to learn the difference between absolute and relative links.) So, in order for the player to display correctly on MySpace, you'll have to change the paths for any outside file to an absolute URL (the exact full address on the server) in both the HTML code and the XML file.

Another difference is that MySpace only uses the <embed> tag, so you can completely omit the <object> tag when inserting your code. Here are examples of the code generated by our software and what MySpace will accept:

JukeBox HTML Code

<object style="WIDTH: 231px; HEIGHT: 47px;" classid= "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="CoffeeCup" align="middle"> <param name="movie" value="myjukebox.swf"/> <param name="quality" value="high"/> <param name="scale" value="noscale"/> <param name="salign" value="lt"/> <param name="bgcolor" value="#ffffff"/> <embed style="WIDTH: 231px; HEIGHT: 47px;" src="myjukebox.swf" quality="high" bgcolor="#ffffff" name="CoffeeCup" scale="noscale" salign="lt" align="middle" type= "application/x-shockwave-flash"pluginspage="http://www.macromedia.com/go/getflashplayer"/></object>

MySpace HTML Code

<embed src="https://www.yourdomain.com/myjukebox.swf" quality="high" bgcolor="#ffffff" width="231" height="47" name="CoffeeCup" scale="noscale" salign="lt" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

JukeBox XML File

jukebox bkimg="myjukebox_files/body.jpg"
rewindbutton btnupimg="myjukebox_files/1.jpg"
ffbutton btnupimg="myjukebox_files/4.jpg"
playbutton btnupimg="myjukebox_files/2.jpg" btndownimg="myjukebox_files/3.jpg"
node file="myjukebox_files/Track 3.mp3"

Edited JukeBox XML for MySpace

jukebox bkimg="http://www.yourdomain.com/myjukebox_files/body.jpg"
rewindbutton btnupimg="http://www.yourdomain.com/myjukebox_files/1.jpg"
ffbutton btnupimg="http://www.yourdomain.com/myjukebox_files/4.jpg"
playbutton btnupimg="http://www.yourdomain.com/myjukebox_files/2.jpg" btndownimg="http://www.yourdomain.com/myjukebox_files/3.jpg"
node file="http://www.yourdomain.com/myjukebox_files/Track 3.mp3"

Once you have made these edits, your music player will display and play correctly on MySpace! Check out an example of CoffeeCup Web Jukebox at Cesar's MySpace, and the XML file here.