没有原始文本弹出窗口的Bing转换器小部件 [英] Bing translator widget without original text popup

查看:92
本文介绍了没有原始文本弹出窗口的Bing转换器小部件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的网站中实现了Bing Translator Widget.效果很好.但是,我找不到任何方法来禁用显示原始文本的翻译文本上附加到悬停事件的烦人的弹出窗口.

I have implemented Bing Translator Widget in my website. It works great. However I could not find any way to disable annoying popups attached to hover event on translated texts that shows original text.

有什么方法可以禁用它吗?预先感谢.

Is there any way I can disable it. Thanks in advance.

以下是有关如何使用小部件的官方页面的链接:

Following are links to Official pages about how to use the widget:

http://msdn.microsoft.com/en-us/library/dn341983.aspx

http://www.bing.com/widget/translator/

http://www.microsoft.com/web/solutions/mstranslator.aspx

推荐答案

在这里得到了相同的问题,经过一些探索,您可以在javascript中进行此操作:

Got the same problem here, and after some explorations, you can do this in javascript :

Microsoft.Translator.Widget.domTranslator.showHighlight = false;
Microsoft.Translator.Widget.domTranslator.showTooltips = false;

但这必须在翻译后完成,就我而言,我使用 Web窗口小部件自定义API ,因此我可以在翻译函数的 onComplete 回调中隐藏工具提示

But this must be done after translation, in my case I use Web Widget Customization API, so i can hide tooltips in the onComplete callback of Translate function.

当心,它没有记录,所以我不知道它能工作多长时间.但这是我找到的唯一方法.

Beware, it's not documented, so I don't know how long this will work. But it's the only way I found.

这篇关于没有原始文本弹出窗口的Bing转换器小部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆