Just wondering if anybody knows a way to play music on a webpage that won't stop playing until the visitor leaves the site (rather than the music restarting on every page).
I'm currently using an iframe for the page content to achieve this but I have been told by users on my post in the 'Advertise your website' forum that frames of any sort should not be used.
Does anybody know any other ways?
Thats nonsense. If you need (i)frames to implement some functionality there is nothing wrong with it. Especially if there isn't a good alternative, like in this case. Even Google uses iframes (Hotmail too, by the way). IFrames are also a good and common way to implement AJAX functionality as an alternative to XMLHttpRequest.
It is a little annoying when new windows open, however, if you really think you need a music player, I would go this route so that the user can stop it whenever they need. However, I also believe that very few sites actually need music playing. Thankfully, yours gives the user the opportunity not to play it.