修复了整个网站上不断变化的URL和内容的DIV,但修复的DIV必须在不重新加载的情况下保留


Fixed DIV throughout the website with changing URLs and content, but fixed DIV must stay without reloading

我正在使用PHP制作一个广播流媒体网站。我需要在整个网站上保持我的音频播放器DIV静态。我需要更改URL和页面内容,但玩家DIV必须在不重新加载的情况下保留。这是过去HTML框架的微笑。我的解决方案也必须是搜索引擎友好。如果有人能帮我,我真的很感激。

我到处寻找这个问题的确切解决办法。但没能找到对我来说足够清晰的东西。

页面结构是这样的

<div id='main_wrap'>
 <div id="header">
  <!-- Titles and other content. Different on each page. -->
 </div>
 <div id="player">
  <!-- Flash live audio streaming player. same throughout the site. Shouldn't reload for constant playback-->
 </div> 
 <div id="footer">
  <!-- Other content. Different on each page. -->
 </div>
</div>

你有几个选项,你可以使用HTML5的内置历史记录,它只适用于选定的浏览器,然后使用Ben Alman或Jquery Address作为其他不支持HTML5历史记录的浏览器的后备