Embed a .pls link in HTML or Javascript?

LaResPuesta

New member
Is it possible to embed a pls link in javascript?

I tried this but doesnt seem to work, what can i do?

Code:
function Play () {
var path = '<embed src="http://www.link.com/music.pls" autostart="true" loop="false" hidden="true" height="0" width="0">';
document.getElementById (file).innerHTML = path + '<img src="images/stop.gif" style="cursor:pointer;" onclick="Stop(' + "'" + file + "'" + ')">';
}
function Stop (file) {
document.getElementById (file).innerHTML = '<img src="images/play.gif" style="cursor:pointer;" onclick="Play(' + "'" + file + "'" + ')">';
}
</script>

...and others, but nothing!

How can I create a flash music player (simple) and when I click on a .pls link on that page, it plays in it?
 
Back
Top