Jump to content

how can i make my music to keep playing ?


dannybrazil

Recommended Posts

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>

[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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.