Hello Im trying to make a simple embedded mp3 player on a page of my website. Javascript is not my strong point so i think this will be very easy for anyone with a basic grasp of the language. I have got the embedded system working but if i want to play more than 1 song on my page, i need to use more than one player - what i want if a simple addidtion to my playsong() function which will tell the embedded player which track has been requested for listening. My very simple code: HTML: --------- function playsong(song_id) { document.embeds[song_id].play(); }
play 1 play 2 play 3
--------- I would be greatfull if somebody could tell me how to do this or point me in the direction of a resource that could help. Ive looked at alot of mp3 scripts but none that allow you to play several songs from one player without the aid of flash - id like to write this code from scratch
More...