How to keep audio playing while navigating through pages?

后端 未结 5 1996
野性不改
野性不改 2020-12-06 07:51

I am making a website for my friends band. I would like to know if its possible (apart from using Ajax) to keep audio playing after clicking on a link to another page on the

相关标签:
5条回答
  • 2020-12-06 08:22

    It might be troublesome to implement it differently than via AJAX, however you can either use IFrames, where the music would be played in the main one and the content is displayed in the child on or you can always make it a Flash webpage.

    0 讨论(0)
  • 2020-12-06 08:25

    Of course you could also pop up the player in another window/tab. (For now) It won't be possible without frames or javascript.

    0 讨论(0)
  • 2020-12-06 08:31

    Use Ajax to load content and History API’s pushState() to alter URL without page reload.

    For consistent behavior across browsers, consider using a wrapper library like History.js.

    0 讨论(0)
  • 2020-12-06 08:40

    Sites like Facebook use JavaScript/AJAX for these kind of things. If you don't want to use it, you can use frames (not recommended). Divide the page in two frames: the player and the website itself. This way you can easily turn it off too, just open the site without frames.

    Good luck!

    0 讨论(0)
  • 2020-12-06 08:42

    Build it in Wordpress and use the AnythingSlider plugin to have the pages shift within the main page. This way you can have tabbed navigation and never leave the actual page. No need to write too much code. The AnythingSlider uses html for the slides.

    You can also not use wordpress and just use the AnythingSlider code.

    http://css-tricks.com/anythingslider-jquery-plugin/

    and

    http://wordpress.org/extend/plugins/anythingslider-for-wordpress/

    and

    http://css-tricks.com/examples/AnythingSlider/

    0 讨论(0)
提交回复
热议问题