dongmo8943 2013-08-12 10:14
浏览 45
已采纳

通过更改URL和内容修复了整个网站的DIV,但固定的DIV必须保持不重新加载

I'm making a radio streaming website using PHP. I need to keep my audio-player DIV static throughout the website. I need to changing URLs and page content, but player DIV must stay without reloading. This is something smiler to HTML frames in old days. My solution must also be search engine friendly. I'm really appreciate if some can help me with this.

I search everywhere to find an exact solution for this problem. But did not able to find something that clear enough for me.

Page structure is something like this

<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>
  • 写回答

1条回答 默认 最新

  • douaipi3965 2013-08-12 10:35
    关注

    You got a few options, you could use HTML5's built in history which will only work on selected browsers and then use Ben Alman or Jquery Address as a fallback for other browsers that don't support HTML5 history

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?