dannybrazil Posted August 19, 2008 Share Posted August 19, 2008 Hello this is my site : www.ronaldorobotika.com i have a mp3 player there as you can see , but when im navegating between the pages its starts al over again every time is it possible to make it play continously ? Danny Quote Link to comment https://forums.phpfreaks.com/topic/120419-how-can-i-make-my-music-to-keep-playing/ Share on other sites More sharing options...
lemmin Posted August 19, 2008 Share Posted August 19, 2008 Yes, using frames or iframes. You would effecively have two different pages on the same screen and only one will change with the links. http://www.w3schools.com/HTML/html_frames.asp Quote Link to comment https://forums.phpfreaks.com/topic/120419-how-can-i-make-my-music-to-keep-playing/#findComment-620612 Share on other sites More sharing options...
dannybrazil Posted August 20, 2008 Author Share Posted August 20, 2008 Hi im trying to understand but cant realy think of how im doing it. can i do it with the CSS sheet in my site? i need to make an html page only with the player and then a page with the rest all the time ? thanks Danny Quote Link to comment https://forums.phpfreaks.com/topic/120419-how-can-i-make-my-music-to-keep-playing/#findComment-621288 Share on other sites More sharing options...
lemmin Posted August 20, 2008 Share Posted August 20, 2008 Since the mp3 player is on the page directly, every time that page changes, the player has to be reloaded, causing it to restart the song. In order to keep the mp3 player from reloading, you need to keep it on a page that doesn't change. But since you want to change the content around it, you have to have the content on a separate page than the player. Here is an example of how that would work: <html> <head> <title>Music</title> </head> <frameset cols="100%,212" border=0> <frame id="fMain" src="index.php"> <frame id="fPlayer" src="player.htm"> </frameset> </html> Quote Link to comment https://forums.phpfreaks.com/topic/120419-how-can-i-make-my-music-to-keep-playing/#findComment-621482 Share on other sites More sharing options...
Mchl Posted August 20, 2008 Share Posted August 20, 2008 In previous century ;P I used to have a midi player on my webpage, that was in the pop-up window. But then for some reason people started blocking all pop-ups Quote Link to comment https://forums.phpfreaks.com/topic/120419-how-can-i-make-my-music-to-keep-playing/#findComment-621490 Share on other sites More sharing options...
dannybrazil Posted August 22, 2008 Author Share Posted August 22, 2008 Hello im trying to understand another thing now , if i have lets say two col' (one for the main page one for the player) how will the player will be ontop of the main page like its now ? www.ronaldorobotika.com Quote Link to comment https://forums.phpfreaks.com/topic/120419-how-can-i-make-my-music-to-keep-playing/#findComment-623143 Share on other sites More sharing options...
lemmin Posted August 22, 2008 Share Posted August 22, 2008 [code]That gets a little bit more complicated. The short answer is to float an iframe on top of your page; however, the page that you float it on top of also has to be in an iframe otherwise you would have the same restarting problem. <html> <body style="margin:0px;" SCROLL="no"> <iframe id="iframe1" height="300" width="200" frameborder=0 src="http://www.google.com" style="width:100%;height:100%"></iframe> <iframe id="iframe1" height="300" width="200" frameborder=0 src="http://www.ronaldorobotika.com" style="position:absolute;left:300px;top:200px"></iframe> </body> </html> [/code] Of course, the player would be statically hovering on the page that way, and if you scrolled at all, it would float around. you can get around this using javascript and dynamically repositioning it when the page moves. The easiest way to do this would just be to change your layout to allow the player to be statically placed on the side of your page. Quote Link to comment https://forums.phpfreaks.com/topic/120419-how-can-i-make-my-music-to-keep-playing/#findComment-623176 Share on other sites More sharing options...
dannybrazil Posted August 27, 2008 Author Share Posted August 27, 2008 hi again im trying to make something els like dividing the page in two rows one with the banner and player and then the rest main contant. is it possible to divide in not by % but with px ?? Danny Quote Link to comment https://forums.phpfreaks.com/topic/120419-how-can-i-make-my-music-to-keep-playing/#findComment-626531 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.