hi , I'm desinging a portfolio website and I want to put a background music but the problem that I have to put it in every single page and that will make the music repeat from the begging when you load every page. my question is how to make the background music plays while you're browsing the site? thanks in advance
<embed src="example.mp3" width="360" height="165" /> Code (markup): Adjust your width and height you can make it so people can't stop the music and must listin but that would be annoying just change width="0" height="0". I also found these attributes that may be useful to you as well. autostart="false" -This would start the player soon as page fully loads. loop="false" -This would restart the music once the song ends. volume="60" -Use 0-100 for the the volume. Code (markup): So say you wanna add the autostart feature to your music code just simply place it in like below. <embed src="example.mp3" autostart="false" width="360" height="165" /> Code (markup): Any further problems PM me. I'm not the best with HTML but this should work. This will make your page load a bit slower.
thanks but I know these code.. I think you didn't understand my problem.. the problem that if I added these code to the homepage the visitor will just listen to the music in the homepage and when he go to any other page like "about me" the song will stop and if I added the same code in "About me" page the song will start from the begging again .. what I want is that the song never stop and start again when the visitor browse my site.. I wish you could help me
use iframe then, put it somewhere in header or footer and make it seamless with the rest of your site
alan_smithee is right, an iframe is your best option, but maybe to stop the page loading slowing you should incorporate a flash streaming mp3 player. This will be smooth as...I can assist you for a fee, pm if you are interested.