本地网站:运行默认浏览器

发布于 2024-10-09 02:19:19 字数 283 浏览 0 评论 0原文

我需要从我所做的网站创建一个小册子 CD。所有资源都是html、图像和xml,所以我在访问文件系统时没有任何问题。我的问题是:一旦我在浏览器中打开我的index.html页面,我如何设置窗口的参数(例如:显示地址栏,显示状态栏等)

谢谢

(如果您有关于如何运行基于html的小册子的替代想法在 CD 上,让我知道)

编辑:规格已更改,我刚刚知道我也必须编写 xml 并上传文件。有什么想法吗?我正在考虑 Adob​​e Air,但如果我可以将整个 .NET 网站编译成 exe,那就太棒了……有类似的吗?

I need to create a brochure-cd from a website I did. All resources are html, images and xml, so i don't have any problem at all in accessing file system. My question is: once I open my index.html page in browser, how can I set the params of the window (eg: show addressbar, show statusbar, etc)

Thanks

(If you have an alternative idea of how run an html based brochure on CD just let me know)

EDIT: Specs changed, I've just knewn I must write xml and upload file, too. Any idea? I'm considering Adobe Air, but would be amazing if I can compile a whole .NET website into an exe..... Anything similar?

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

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

发布评论

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

评论(2

简单气质女生网名 2024-10-16 02:19:27

我认为你不能。您只能设置您创建的窗口的参数。因此,您必须在加载时运行一个脚本来创建一个新窗口,然后关闭初始窗口。

但是,如果有警告的话,执行此脚本是不可能的。

另一种方法是开发一个能够显示页面的可执行文件,但这可能并不容易,特别是当您想要独立于浏览器和平台时。

I think you can't. You can only set params of a window you create. So you'll have to run a script on load that creates a new window and then closes the initial window.

There is however no way that this script is executed without warnings, if at all.

An alternative would be to develop an executable that is able to display the page, but that might not be easy, especially when you want to be browser and platform independent.

月朦胧 2024-10-16 02:19:26

设置这些的唯一方法是在打开页面时进行设置,而不是在页面已经存在之后进行设置。因此,您可能需要有一个起始页,然后它会打开带有您想要的参数的新页面。

但请注意,如果您有任何 JavaScript,许多浏览器将不允许脚本在本地运行,或者在执行之前会显示一条令人讨厌的警告消息。

您可以考虑在 CD 上放置一个小型桌面应用程序,在其内部启动一个浏览器实例,假设您可以在将运行该浏览器的每台计算机上运行该浏览器。这可能会给您带来您想要的外观。

The only way you can set these is when you open the page, not after it's already present. So, you will probably have to have a start page, which then opens your new page, with the parameters you want.

Be warned though, if you have any JavaScript, many browsers won't allow scripts to run locally, or will present a nasty warning message before it will execute.

You may look into having a small desktop application on the CD that launches an instance of a browser inside of itself, assuming you can run the browser on every machine this will be run on. This will probably give you the look you're after.

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