It's fairly easy, especially in html5, but I'm developing for a mobile based community and I realised it's no use, because Safari on iOS doesn't allow to play background music (if you put in a link, it launches the Quicktime player), and Android only supports it since the Gingerbread build. Regarding the Opera mini, things are getting worse...
Anyway, thanks for the info!