what's wrong with my code?, JAVASCRIPT: music playlist with links. |
what's wrong with my code?, JAVASCRIPT: music playlist with links. |
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! |
|
|
|
![]() |
Oct 30 2004, 11:13 AM
Post
#2
|
|
![]() 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..
|
|
|
|
jewelboxofsadness what's wrong with my code? Oct 30 2004, 10:45 AM
C.Lime.Jello. What browser are you running?
(Stupid question, ye... Oct 30 2004, 10:53 AM
jewelboxofsadness Internet Explorer 6...
The URLs are valid because... Oct 30 2004, 10:56 AM
jewelboxofsadness Well that's good news.
Something might be up ... Oct 30 2004, 11:15 AM![]() ![]() |