I need to pop up a modal JS-based dialog (for some reason can''t usepopup window, much less so showModalDialog()), and I''d like to imitatethe system popup titlebar according to user''s desktop settings(classic, XP, Vista). No big deal to make it work, but how do I knowthe style to display? Any chance to figure out these settingsprogrammatically either on the client (preferrable), or possibly inasp.net from something like Request["ServerVariables"] (not the bestthing but will work for this project). Would prefer cross-browsercompatibility, but can use IE-specific solution (sorry, no client sideactiveX may be used, just plain JS/DOM/DHTML). Asking the user tomanually select visual preferences is not an option.ThanksNNN推荐答案 no****@nowhere.net a écrit:no****@nowhere.net a écrit : 我需要弹出一个基于JS的模态对话框(出于某种原因不能使用 弹出窗口,很多不那么showModalDialog()),我想根据用户的桌面设置模仿系统弹出标题栏 (经典,XP,Vista) 。I need to pop up a modal JS-based dialog (for some reason can''t usepopup window, much less so showModalDialog()), and I''d like to imitatethe system popup titlebar according to user''s desktop settings(classic, XP, Vista). 而不是Mac OS? 9或10and not Mac OS ? 9 or 10 没什么大不了的,No big deal to make it work, 真的吗?字体,颜色等可能由PC用户修复 在哪里可以找到这些设置(保存的位置和方式)Really ? fonts, colors, and so on, are probably fixed by the PC userWhere to find those settings (where and how are they saved) 但我怎么知道 要显示的样式?有机会在客户端(可选)上以编程方式找出这些设置 ,或者可能在请求[" ServerVariables"]之类的 asp.net中最好的 的东西,但将适用于这个项目)。宁愿跨浏览器 兼容性,但可以使用IE特定的解决方案(对不起,没有客户端可以使用 activeX,只需简单的JS / DOM / DHTML)。要求用户手动选择视觉偏好不是一个选项。but how do I knowthe style to display? Any chance to figure out these settingsprogrammatically either on the client (preferrable), or possibly inasp.net from something like Request["ServerVariables"] (not the bestthing but will work for this project). Would prefer cross-browsercompatibility, but can use IE-specific solution (sorry, no client sideactiveX may be used, just plain JS/DOM/DHTML). Asking the user tomanually select visual preferences is not an option. Dot不明白是否需要显示一个桌面窗口,这个窗口将是不同的导航器的一个(以及更多:导航器可以被剥皮了吗? 在我看来是不稳定的 在XP或Vista中无法选择: - 操作系统演示 - 互联网演示 将此选项添加到您的项目中 - smDot not understand the need to display a desktop window that will bedifferent of navigator''s one (and more: navigators can be skinned)?It appears to me to be destabilizingIn XP or Vista wouldn''t it be possible to choice :- OS presentation- Internet presentationadding this choice to your project--sm 2008年5月3日星期六11:49:26 +0200,SAM < st ***** ****************@wanadoo.fr.invalidwrote:On Sat, 03 May 2008 11:49:26 +0200, SAM<st*********************@wanadoo.fr.invalidwrote : > no **** @ nowhere.net écrit:>no****@nowhere.net a écrit : >我需要弹出基于JS的模态对话框(出于某种原因不能使用弹出窗口,更不用说了所以showModalDialog()),我想根据用户的桌面设置模仿系统弹出标题栏(经典,XP,Vista)。>I need to pop up a modal JS-based dialog (for some reason can''t usepopup window, much less so showModalDialog()), and I''d like to imitatethe system popup titlebar according to user''s desktop settings(classic, XP, Vista). 而不是Mac OS? 9或10 and not Mac OS ? 9 or 10 Mac用户不是目标用户群。该规范要求在IE6 +上提供完整的 功能,至少在FireFox上的核心功能,以及 并不关心其他浏览器,包括但不限于 Safari。如果Mac用户真的想要使用建议的网站,他们将需要在FireFox或IE / Windows仿真上运行它 - 或者获得一台标准的 PC。 br />Mac users are not a targeted user base. The spec calls for fullfunctionality on IE6+, at least core functionality on FireFox, anddoesn''t care about other browsers, including but not limited toSafari. If Mac users really want to use the proposed site, they''llhave to run it on FireFox or IE/Windows emulation - or get a standardPC. >> >没什么大不了的,>No big deal to make it work, 真的吗?字体,颜色等可能由PC用户修复在哪里可以找到这些设置(保存地点和方式) Really ? fonts, colors, and so on, are probably fixed by the PC userWhere to find those settings (where and how are they saved) 现在,我们仅定位默认的XP,Vista和经典主题。For now, we are targeting only default XP, Vista, and Classic themes. >> >但我怎么知道要显示的样式?有机会以编程方式在客户端(可选)上,或者可能在 asp.net中找出这些设置,例如Request [" ServerVariables"](不是最好的东西,但是将为这个项目工作)。更喜欢跨浏览器的兼容性,但可以使用IE特定的解决方案(对不起,没有客户端可以使用activeX,只需简单的JS / DOM / DHTML)。要求用户手动选择视觉偏好不是一种选择。>but how do I knowthe style to display? Any chance to figure out these settingsprogrammatically either on the client (preferrable), or possibly inasp.net from something like Request["ServerVariables"] (not the bestthing but will work for this project). Would prefer cross-browsercompatibility, but can use IE-specific solution (sorry, no client sideactiveX may be used, just plain JS/DOM/DHTML). Asking the user tomanually select visual preferences is not an option. 我不明白是否需要显示一个桌面窗口,这个窗口将是导航器的一个(以及更多:导航器可以被剥皮)?在我看来是不稳定的 在XP或Vista中无法选择: - 操作系统演示 - 互联网演示添加此选择到您的项目 Dot not understand the need to display a desktop window that will bedifferent of navigator''s one (and more: navigators can be skinned)?It appears to me to be destabilizingIn XP or Vista wouldn''t it be possible to choice :- OS presentation- Internet presentationadding this choice to your project 这不在规范中。更重要的是,规范要求 接口_not_是用户可自定义的,并且尽可能接近 标准Windows界面。难道你没有得到编程之间的乐趣和开发业务之间的区别 应用程序涉及规格,截止日期等内容? NNNThis is not in the spec. Even more so, the spec calls for theinterface _not_ to be user-customizable, and to be as close to thestandard Windows interface as it can get. Don''t you get thedifference between programming for fun, and development of businessapp that involves things like spec, deadline, etc.?NNN 没有**** @ nowhere.net meinte:no****@nowhere.net meinte: 这不在规范中。更重要的是,规范要求 接口_not_是用户可自定义的,并且尽可能接近 标准Windows界面。难道你没有得到编程之间的乐趣和开发业务之间的区别 应用程序涉及规格,截止日期等内容?This is not in the spec. Even more so, the spec calls for theinterface _not_ to be user-customizable, and to be as close to thestandard Windows interface as it can get. Don''t you get thedifference between programming for fun, and development of businessapp that involves things like spec, deadline, etc.? 你不明白,浏览器中显示的HTML文档与用户界面的UI之间存在根本区别OS?并且不要唠叨 关于specs的东西 - 当你接受这些规格并告诉客户100%-something 集成是不可能的时候,你的工作是明确的。 无论如何,因为它缩小到标准版或经典版或Vista版 布局:编写相应的CSS,让用户选择风格 表模仿桌面外观,将其存储在cookie中。停止 抱怨。您甚至可以使用Opera或Firefox或其他浏览器。因为你没有任何形式的元素很难以b / b 皮肤。 Gregor - http://photo.gregorkofler .at ::: Landschafts- und Reisefotografie http://web.gregorkofler .com ::: meine JS-Spielwiese http://www.image2d .com :::Bildagenturfürdenalpinen RaumDon''t you get the idea, that there is a fundamental difference betweenHTML documents shown in browsers and the UI of an OS? And don''t babblesomething about "specs" - it''s your job to make things clear whenaccepting those specs and tell the customer, that a 100%-somethingintegration won''t be possible.Anyway, since it is narrowed down to "standard or classic or Vista"layout: Write the according CSS, have the user choose between the stylesheets mimicking the desktop appearance, store it in a cookie. Stopwhining. You can even use Opera or Firefox or another browser then. Aslong as you don''t have any form elements which are hard to impossible toskin.Gregor-- http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie http://web.gregorkofler.com ::: meine JS-Spielwiese http://www.image2d.com ::: Bildagentur für den alpinen Raum 这篇关于可以检测Windows桌面样式吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-29 07:34