Jump to content

Recommended Posts

Posted

:( 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>


Posted

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.mp3

and so forth

Posted

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.

Posted

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. :}

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...