One way to do this would be to use ajax to refresh parts of the page. Clicking to a new page will interrupt the song. Mind, if the part refresh is a heavy load, you may find that your song is interrupted anyway. This means that you have one page only (index.php).
Another way (much frowned upon), would be to use frames, where only say the main frame was changed, leaving your song player object/whatever in the sidebar or the banner.
I really don't like suggesting the latter as we should be killing off frames not encouraging their use.
What happens if your visitors stay on the site for 20 minutes - will the song loop and loop and loop? Unless you're promoting/selling the music itself, ask yourself whether you really need it.
If you music is going to play automatically on index page load -
I find other people's taste in music does not match my own and usually reach for the mute button. Equally, I may be listening to Spotify or Internet radio when all of a sudden some webpage music ruins my day. This can be countered by giving the users a choice - i.e. "click to listen".
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
But I want to know if I can put the music from the beganing (index) 'till the visitor leave the pages. Yes, maybe loop and on each page I'll put a button from where any time the music can be stop et.
*sigh* Thought I answered that:One way to do this would be to use ajax to refresh parts of the page. Clicking to a new page will interrupt the song. Mind, if the part refresh is a heavy load, you may find that your song is interrupted anyway. This means that you have one page only (index.php).
Another way (much frowned upon), would be to use frames, where only say the main frame was changed, leaving your song player object/whatever in the sidebar or the banner.
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
It's not difficult - just unnecessary in my opinion. However, for a quick fix, you can load your entire site into a frame and have a small (even invisible frame) with your player embedded into it hold the rest of it. This should work.
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
dont do it, there are too many annoying sites
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
dont do it, there are too many annoying sites
With you here.
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080