Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6208709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:51:13+00:00 2026-05-24T05:51:13+00:00

Is there a good article or how can have an iframe or frame work

  • 0

Is there a good article or how can have an iframe or frame work asynchronously with every page? I have a bottom/fixed div wrapped in jquery to slide up on hover containing an mp3 player. I referenced the player with an iframe. I renderes fine, but how can it keep playing without a reload on page refresh or navigation to another page? I want it to be fixed at the bottom of every page and play continuously without refresh. I tried putting the iframe in each page, but that still didn’t work. Any ideas? Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T05:51:14+00:00Added an answer on May 24, 2026 at 5:51 am

    If it must stay in the browser ( not downloading an application or read stream in a music/video player ), the only way should be to don’t really change page, and load content that must change with ajax or javascript ( or have it itself in a (i)frame ).

    But it would be a lot easier to do a page with only the lector and put a link on your website to open it in another tab :

    <a href="/music-player.htm" target="musicPlayer">Text or what you want</a>
    

    Edit :

    So with javascript it would be the same result than ajax, but that means not changing page so for the SEO if it’s somewhat important it’s not good.

    What I meant by javascript was for example if you click on link “home” just adding dynamically a <script type="text/javascript" src="/homepage.js"></script> wich modify content of the page ( while keeping the mp3 player ).

    Otherway, maybe with a cookie if it’s possible with the player to know by javascript :

    • at know to wich mp3 file the player is
    • at wich time in the mp3 playing the player is
    • to go at a specified mp3 file
    • to go at a specified time in an mp3
    • (and if it is possible to pause the player, there should to be the ability to know if the player is playing or not )

    It would be possible when changing page to get at the good time ( but there will be the time to load the page and mp3 player without music ).

    Or there could be mp3 player which can save a the time at wich we are, and begin at this time on another page ( but still while changing page no sound for several seconds ).

    With these methods there would be too the issue of opening several pages.

    Edit :

    I tried the way with the content of the page in iframe, it works rather well but needs the membre to switch in the mp3 mode.

    Here is mp3.html ( to put in root folder, if it’s not possible it would need some changes ) :

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <title>MP3 Player</title>
      <style type="text/css">
            html { 
            font-size: 100%; 
            } 
            body { 
                margin: 0; 
                padding: 0em;
            }
            #frame { width: 100%; height: 100%; border: none; }
            #player { position: absolute; right: 20px; bottom: 20px; }
        </style>
        <script type="text/javascript">
            if ("onhashchange" in window) {
                var h='';
                var command= false;
            window.onhashchange = function(){
                    if(location.hash==h) return;
                    command= true;
                    window.frames['frame'].location.replace(location.hash.replace(/^#/,""));
                    h= window.location.hash;
                }
            }
        </script>
    </head>
    <body>
        <iframe id="frame" onLoad="if(this.src=='')return;if(command)command=!1;else window.location.replace(h='#'+window.frames['frame'].location.href.replace(new RegExp('^'+document.location.origin),''));document.title=window.frames['frame'].document.title;"></iframe>
        <script type="text/javascript">
            document.getElementById("frame").src=document.location.hash.replace(/^#/,"");
        </script>
        <div id="player">
            <object type="application/x-shockwave-flash" data="http://s301826463.onlinehome.fr/so/dewplayer.swf?mp3=http://s301826463.onlinehome.fr/so/Tokyo.mp3" width="200" height="20" id="dewplayer"><param name="wmode" value="transparent"><param name="movie" value="http://s301826463.onlinehome.fr/so/dewplayer.swf?mp3=http://s301826463.onlinehome.fr/so/Tokyo.mp3"></object>
            <a href="javascript:document.location.href=document.location.hash.replace(/^#/,'')">remove mp3 player</a>
        </div>  
    </body>
    </html>
    

    And to put a link that open the current page in an iframe and with an mp3 player, it only needs a link :

    <a href="javascript:parent.location.href='/mp3.html#'+document.location.href.replace(new RegExp('^'+document.location.origin),'')">add mp3 player</a>
    

    An example using that here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any good article, tutorial or similar references on interpreting the Execution Plan
I am new to Liferay , is there any good article available for Creating
Are there good reasons why it's a better practice to have only one return
Is there a good ruby gem for a WYSIWYG editor that will easily work
Is there a good way to create a form in VB6 that can easily
Are there good efficiency savings using Sql Server 2005 over Sql Server 2000? Or
Is there good example code or a test project for explaining the Model–view–presenter (MVP)
What are the tensions between multithreading and exception-safety in C++? Are there good guidelines
Is there any good way to deal with the class renaming refactor from Resharper
Is there a good way for displaying unicode text in opengl under Windows? For

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.