Click to See Complete Forum and Search --> : a little stuck


metrosoccer12
07-10-2003, 03:31 PM
okay, i dont know how to this on a code, if i do something like this:

<script>
function play(songs){
sound1.src=songs
}

function stop(){
sound1.src=""
}

</script>
<bgsound id="sound1">

<input type="button" name="music" onclick="play(http://www.songaddress);">

i dont know if thats how i do it or what? I wanted to try it out but it doesnt seem to work.

Jona
07-10-2003, 03:33 PM
<input type="button" name="music" value="Play Song" onclick="play('http://www.songaddress.com/song.mid');">


[J]ona

metrosoccer12
07-10-2003, 03:38 PM
heres the code im using yet it seems to find the song, but it doesnt play it:

<script>
function play(songs){
sound1.src=songs
}

function stop(){
sound1.src=""
}

</script>
<bgsound id="sound1">

<input type="button" name="music" value="Play Song" onclick="play('http://a.1asphost.com/profileimages/bgmusic1.mid');">

metrosoccer12
07-10-2003, 03:49 PM
okay sorry about that i got that working, but i tried to change it to a song on my computer, not on net, the location has spaces in it and its an mp3, heres the code im using now

<script>
function play(songs){
sound1.src=songs
}

function stop(){
sound1.src=""
}

</script>
<bgsound id="sound1">

<input type="button" name="music" value="Play Song" onclick="play('C:\Program Files\Kazaa\My Shared Folder\Linkin Park - In The End.mp3');">

Jona
07-10-2003, 04:02 PM
<input type="button" name="music" value="Play Song" onclick="play('C:\\Program Files\\Kazaa\\My Shared Folder\\Linkin Park - In The End.mp3');">


[J]ona

metrosoccer12
07-10-2003, 04:05 PM
thx so much!

Jona
07-10-2003, 04:07 PM
You're welcome. (You may also like to see a script I made here: http://geocities.com/god_loves_07/next_mid.html)

[J]ona

metrosoccer12
07-10-2003, 04:10 PM
yeah see im trying to make like a custom media player built in an aim expression u might wanna check it out http://www.freewebs.com/aimedia/aim.html