跨浏览器侧边栏组件

发布于 2024-07-18 12:18:06 字数 492 浏览 3 评论 0原文

我想为网站创建一个跨浏览器侧边栏。 具有以下功能

  • 需要能够获取主页的 URL - 如果仅适用于
  • 主网站域上托管的
  • 当前站点,则不需要更改主网站页面本身(但可以将代码添加到全局加载的 .js 中)文件)
  • 在主要浏览器中工作(例如firefox有几种方法)。 和 target=_search 已基本上被弃用 - 效果很好。
  • 理想情况下不需要下载(例如不是 firefox 扩展或 BHO)
  • 理想情况下不会在每个页面加载时重新加载(即不在每个页面中注入 iframe - 闪烁)
  • 理想情况下不是框架集 - url 浏览器地址栏不会改变。

想不出一个很好的简单方法来做到这一点。 有什么建议么? (我认为我已经排除了满足要求的主要方式 - 但以防万一遗漏了某些内容)

(它用于显示当前页面的相关信息,作为可选插件,供需要它的人使用)

感谢您的任何想法!

I want to create a cross-browser sidebar for a website. With the following features

  • needs to be able to grab URL of main page - ok if only works for the current site
  • hosted on the main website domain
  • require no change to the main website pages themselves (but code could in added to a globally loaded .js file)
  • work in major browsers (eg firefox has a few ways). and target=_search has been largely deprecated - which worked quite well.
  • ideally require no downloads (eg not a firefox extension or BHO)
  • ideally not get reloaded on each page load (ie not injecting a iframe in every page - flickers)
  • ideally not a frameset - url browser address bar doesnt change.

Can't think of a nice simple way to do this. Any suggestions? (I think I have ruled out the main ways with the requirements - but in case something missed)

(Its to display related information to the current page, as an optional addon, for people who want it)

Thanks for any ideas!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

﹏雨一样淡蓝的深情 2024-07-25 12:18:06

您可以考虑使用跨浏览器扩展程序之一 (google-gears/silverlight/adobe-air/jnext )来渲染这个栏。 我的意思是,您可以将 UI 添加到任何现有 DOM 中,并使用此平台向您的“侧边栏”添加功能,而不是实现因浏览器而异的“真实”侧边栏

you may consider using one of the cross-browser extensions (google-gears/silverlight/adobe-air/jnext) to render this bar. I mean, instead of implementing a "real" sidebar which varies between browser, you can add your UI to any existing DOM and have one this platforms to add capabilities to your "side-bar"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文