webmaster1 Posted March 9, 2009 Share Posted March 9, 2009 I know how to embed a music file when a page loads. Is their any way using php that I can play the song uninterupted when the user navigates the site. I'm guessing I might be able to choose what element of the page I don't want reloaded using the include command perhaps? As it stands the the song restarts every time a new page is loaded. Quote Link to comment Share on other sites More sharing options...
Mchl Posted March 9, 2009 Share Posted March 9, 2009 PHP runs on server. Playing music is for client-side technologies (HTML, Ajax, Flash...) Quote Link to comment Share on other sites More sharing options...
webmaster1 Posted March 9, 2009 Author Share Posted March 9, 2009 Righto. Barking up the wrong tree here I guess but thanks. Quote Link to comment Share on other sites More sharing options...
Psycho Posted March 9, 2009 Share Posted March 9, 2009 The only solution I can think of would be to use (ick!) frames. Have the site load in a parent document that loads two frames - one for the music to play in and one for the content. Quote Link to comment Share on other sites More sharing options...
blueman378 Posted March 10, 2009 Share Posted March 10, 2009 The only solution I can think of would be to use (ick!) frames. Have the site load in a parent document that loads two frames - one for the music to play in and one for the content. lol thats what i did on the very first site i built the music frame had no size at all. Quote Link to comment Share on other sites More sharing options...
redarrow Posted March 10, 2009 Share Posted March 10, 2009 wonder if it passable, to set the player to a session so that everywhere the user goes the music continues to play. or maybe set the player as a cookie wonder if it will work. Quote Link to comment Share on other sites More sharing options...
Mchl Posted March 10, 2009 Share Posted March 10, 2009 Just how are you going to set en external application or a browser plugin to a session? Quote Link to comment Share on other sites More sharing options...
blueman378 Posted March 10, 2009 Share Posted March 10, 2009 and even if you did get the session idea to work, it would still pause between page loads. Quote Link to comment Share on other sites More sharing options...
grissom Posted March 10, 2009 Share Posted March 10, 2009 The frames idea suggested above is the only one I can think of. Quote Link to comment Share on other sites More sharing options...
premiso Posted March 10, 2009 Share Posted March 10, 2009 Simple answer, it would have to popup in a new window. That window would play the song un-interrupted while the user browses. Better yet, they can even close the window if it gets annoying to them! Quote Link to comment Share on other sites More sharing options...
Mchl Posted March 10, 2009 Share Posted March 10, 2009 Simple answer, it would have to popup in a new window. That window would play the song un-interrupted while the user browses. Better yet, they can even close the window if it gets annoying to them! I actually used this solution on my first webpage... then I grew up and decided I don't actually want midi music on my site... Quote Link to comment Share on other sites More sharing options...
premiso Posted March 10, 2009 Share Posted March 10, 2009 then I grew up and decided I don't actually want midi music on my site... Thats the key. It is annoying as all hell. Quote Link to comment Share on other sites More sharing options...
blueman378 Posted March 10, 2009 Share Posted March 10, 2009 although entertaining if the right songs are played... buring ring of fire on a funeral website?!? Quote Link to comment Share on other sites More sharing options...
Psycho Posted March 11, 2009 Share Posted March 11, 2009 Or better yet, create a really cool flash navigation menu that makes the use wait 30 seconds before they can actually navigate to another page. Ah, the good old days of the <BLINK> tag, where have you gone? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.