Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.