简体   繁体   English

有什么方法可以检测通过终端服务运行的浏览器?

[英]Any way to detect browser running through Terminal Services?

I am working on a site that has some jquery based animation, and I was wondering if there is any way to detect if the site is running in browser that is being run in a terminal services (remote desktop) session so I can disable the animation? 我正在一个基于jquery动画的网站上工作,我想知道是否有任何方法可以检测该网站是否在正在终端服务(远程桌面)会话中运行的浏览器中运行,因此我可以禁用该动画?

I run through remote desktop quite often from remote locations and animations always annoy me, but I really like them when I'm not running through remote desktop. 我经常从远程位置浏览远程桌面,动画总是让我烦恼,但是当我不通过远程桌面运行时,我真的很喜欢它们。 Is there any way to ease the pain without getting rid of animations all together? 有什么方法可以减轻痛苦而又不会完全摆脱动画吗?

I guess I could allow the user to turn them off, and have it store a cookie... but is there any way to do it automatically? 我想我可以允许用户关闭它们,并让它存储cookie ...但是有什么方法可以自动执行吗?

This is almost certainly impossible with JavaScript (way, way above the level JavaScript operates at). 几乎可以肯定,这对于JavaScript来说是不可能的(远高于JavaScript所能达到的水平)。 It may be possible via something like Flash or ActiveX. 可以通过Flash或ActiveX之类的方法来实现。

Edit: You will likely need something along the lines of what nVidia is using here: http://www.nvidia.com/Download/Scan.aspx?lang=en-us 编辑:您可能需要一些与nVidia在此处使用的内容相似的东西: http ://www.nvidia.com/Download/Scan.aspx?lang=zh-cn

Looks like a Java applet. 看起来像Java小程序。

If the site animation is annoying to you, you may want to take it off completely as it may be annoying to site users? 如果网站动画使您烦恼,则可能要完全删除它,因为它可能使网站用户感到烦恼?

I would suggest not building in extra code to stop the site from displaying as it should, in some cases users of the site may be running terminal services themselves (creating a point of failure) 我建议不要构建额外的代码来阻止网站按其应有的方式显示,在某些情况下,该网站的用户可能自己在运行终端服务(创建故障点)

If the animation is some kind of intro you could have a "skip" feature that switches it off an use a cookie as you mention. 如果动画是某种介绍性内容,那么您可以使用“跳过”功能,将其关闭,使用您提到的cookie。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过Web浏览器运行终端 - Running terminal through the web browser 有什么方法可以检测浏览器是否停止滚动重画? - Any way to detect if a browser halts repainting on scroll? 有没有办法检测浏览器上的窗口停留? - Is there any way to detect window layover on a browser? 有没有选择通过量角器以任何方式读取服务的状态? - Is there any option to read the status of services in any way through protractor? 将浏览器作为终端进程运行 - Running Browser as terminal process 如何检测浏览器是否正在运行任何JavaScript(无需更改页面上的JS) - How to detect if browser is running any javascript (without changing js on page) 有什么方法可以检测多少浏览器窗口可见? - Any way to detect how much of browser window is visible? 有什么方法可以从浏览器中检测用户的Mac硬件模型吗? - Is there any way to detect a user's Mac hardware model from the browser? PHP中有什么方法可以检测请求是否来自浏览器后退按钮? - Is there any way in PHP to detect if request is coming from browser back button? 通过使用javascript自身在Web浏览器中模拟运行javascript的方法 - Way to simulate running javascript in web browser through using javascript itself
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM