Toxic_2 Posted May 1, 2005 Share Posted May 1, 2005 Hi everyone i'm new here and new to java script ,i've been working on this script for over the past few weeks and can't seem to get the hang of it. Need some guidence in what i'm doing wrong...i've tryed to put a script together for multiple songs so when ppl come to my site they would beable to click on the song they wont to hear. can some please help,your help would be very much apprecated thanks, here's is what i have. <BODY><center><table border=5 cellspacing=0 cellpadding=0 width="144" height="16"><tr><td><embed src="windowsmedia.com\U Make Me Wanna.mp3" autoplay=false "audio/mp3"volume=50% height=16 width=144 bgcolor="#000000" controls=smallconsole></tr></table></center><HTML><Head><script Language=JavaScript>function playIt(isChoice){isSelection = isChoice;embedStr = "<Embed Src="+isSelection+" Width=0 Height=0>"document.getElementById('isMP3').innerHTML = embedStr;}</Script></Head><Body><Div id='isMP3'></Div><SELECT name=mp3List onChange="playIt(mp3List.value)"><Option selected>Make a selection</option><OPTION value='http://windowsmedia.com/media/U Make Me Wanna.mp3'>U Make Me Wanna<OPTION value='http://windowsmedia.com/media/Hoobastank - The Reason.mp3'>The Reason</option><OPTION value='http://windowsmedia.com/media/Don't Worry.mp3'>Don't Worry</option><OPTION value='http://windowsmedia.com/media/Baby Bash.mp3'>I'm Back-Ft Akon</option><OPTION value='http://windowsmedia.com/media/When Will I Be Love.mp3'>When Will I Be Love</option><OPTION value='http://windowsmedia.com/media/Bally Baby.mp3'>Bally Baby</option><OPTION value='http://windowsmedia.com/media/Confession Part I.mp3'>Confession Part I</option></SELECT></Body></HTML> Link to comment Share on other sites More sharing options...
un4given1 Posted May 1, 2005 Share Posted May 1, 2005 I see one problem right off... you can't have spaces in URLs. A space is equivalent to %20 so you should have U%20Make%20Me%20Wanna.mp3and so forth Link to comment Share on other sites More sharing options...
matrix0978 Posted May 1, 2005 Share Posted May 1, 2005 this is something little but for <embed src="windowsmedia.com\U Make Me Wanna.mp3"put a http:// infront of windowsmedia.com and slant the '\' the other way '/'<embed src="http://windowsmedia.com/U%20Make%20Me%20Wanna.mp3" Link to comment Share on other sites More sharing options...
Toxic_2 Posted May 1, 2005 Author Share Posted May 1, 2005 Thanks un4given1,matrix0978 i'll give it a try and hopefully it will work keeping my fingers cross. i'll check back to let you no how i did. Link to comment Share on other sites More sharing options...
Toxic_2 Posted May 1, 2005 Author Share Posted May 1, 2005 well i clean it up and it still didn't work there must be something wrong with the script not getting any sound at all, but thanks for the help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now