English 中文(简体)
连续背景
原标题:Continuous Background Sound

当用户从一页移动到另一页而不使用 iframe 时, 我如何在页面中安装不中断的连续背景声音?

问题回答

使用一个把戏, 如果有框架集对您不是问题, 请用一个框架集构建您的页面, 并使用一个背景框架( 无大小) 来播放声音和其他( 完全 100%x100%), 这样您就可以NAviate 。 这还具有隐藏您的导航 URL 的好处, 只留下 Nav 栏上的站点 URL 。

如果您是疯子, 您可以在 < code> 时间更新 < / code > 事件上设置事件倾听器, 显示 < code_ lt; audio> 元素, 并将 < code> currentTime 存储到本地Storage( 或一个 cookie) 。 然后, 当你加载一个页面时, 读读该值, 并再次设置 < code> current 。 然而, 我想象每秒写数十次给本地Storage可能不好( 但我要测试它之前, 我将不做任何业绩申报! ) 。

然而,这一解决方案需要一个具有 audio localStorage 支持的模拟浏览器。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签