Log In · Register

 
 
Closed TopicStart new topic
what's wrong with my code?, JAVASCRIPT: music playlist with links.
jewelboxofsadnes...
post Oct 30 2004, 10:45 AM
Post #1


bring to catch your tear
*

Group: Member
Posts: 5
Joined: Oct 2004
Member No: 59,197



I'm putting in a music playlist with links that I found here in my Xanga.

And it doesn't work.

So I'm going to post the code I put in my "Website Stats" module, in hopes that one of the many brilliant people in this forum can tell me what's wrong with my code, so I can fix it and make it work.

The problem with it is, when I select a song, it doesn't play. I don't know if its just me or if the code I found was flawed.

CODE
<!-- begin code provided by createblog.com -->
<script>
function PlaySong(name)
{
 var text =
 "<embed src = \"" + name + "\" type = \"audio/x-bmx\" " +
 "backcolor = \"200, 200, 200\" " +
 "scrollspeed = 0 " +
 "infocolor = \"0, 140, 200\" " +
 "width = 0 height = 0" +
 ">";
 if (document.all)
 {
   // Internet explorer
   document.all.Plugin.innerHTML = text;
 }
 else
 {
   // Netscape
   document.Plugin.document.write(text);
   document.Plugin.document.close();
 }
}
</script>
<div ID = "Plugin"></div>
<div ID = "PlayList">
Choose your song:
<a href = "javascript:PlaySong('http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/1/719/23941_1_6_04.asf')" title="UNWRITTEN LAW seeing red">1</a>
<a href = "javascript:PlaySong('http://www.senrecords.net/lessons/slither.wma')" title="VELVET REVOLVER slither">2</a>
<a href = "javascript:PlaySong('http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/0/23873/23532_1_12_04.asf')" title="JASON MRAZ tonight not again">3</a>
<a href = "javascript:PlaySong('http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/0/8288/29046_1_3_04.asf')" title="MUSE our time is running out">4</a>
| <a href = "javascript:PlaySong('#')" title="Mute Music">OFF</a>
</div>
<!-- end code provided by createblog.com -->


Can anyone help me out?

Here's my xanga, if it helps you to see it. The little code I put it appears at the very bottom of the page:

http://www.xanga.com/home.aspx?user=executivepower

Thank you!
 
C.Lime.Jello.
post Oct 30 2004, 10:53 AM
Post #2


The voices talk too much... -.-u
******

Group: Member
Posts: 2,099
Joined: Aug 2004
Member No: 39,078



What browser are you running?
(Stupid question, yes, but music doesn't work on Mozilla usually.)
Other than that....
Make sure all your URLS are valid.
 
jewelboxofsadnes...
post Oct 30 2004, 10:56 AM
Post #3


bring to catch your tear
*

Group: Member
Posts: 5
Joined: Oct 2004
Member No: 59,197



Internet Explorer 6...

The URLs are valid because when I used them for a drop-down playlist, they worked fine.

I don't like that drop-down playlist, though, because I couldn't change the song that was playing, so I thought this one would be better.

Phooey.
 
xxmzkrnpunkster4
post Oct 30 2004, 11:13 AM
Post #4


my own special world...
*****

Group: Member
Posts: 465
Joined: Oct 2004
Member No: 54,648



did u say it didn't work??? well when i went to ur xanga it worked juss fine..
 
jewelboxofsadnes...
post Oct 30 2004, 11:15 AM
Post #5


bring to catch your tear
*

Group: Member
Posts: 5
Joined: Oct 2004
Member No: 59,197



Well that's good news.

Something might be up with my Media Player or something.

I'll have to check it out.
 

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