如何在我的网站中添加截图收费。 [英] How Can I Add A Snipping Toll In My Website .
本文介绍了如何在我的网站中添加截图收费。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Liferay网站Applicaton并且需要提供从网站裁剪网页内容的功能。
我尝试下面的代码。
I have a Liferay web Applicaton and Need to provide the functionality to crop web page content from website.
I tried below code .
<html>
<head>
<HTA:APPLICATION ID="oMyApp"
APPLICATIONNAME="Application Executer"
BORDER="no"
CAPTION="no"
SHOWINTASKBAR="no"
SINGLEINSTANCE="yes"
SYSMENU="no"
SCROLL="no"
WINDOWSTATE="minimize"/>
<script type="text/javascript" language="javascript">
function RunFile() {
WshShell = new ActiveXObject("WScript.Shell");
WshShell.Run("C:/Windows/system32/SnippingTool.exe", 1, false);
}
</script>
</head>
<body onload="RunFile()">
</body>
</html>
但它适用于IE而不适用于Firefox crome或opera。
基本上我需要一个可用于按钮的剪切工具点击m y网站。
but it work for IE only not for Firefox crome or opera .
Basically i need a Snipping tool that can be used on a button click in my website .
推荐答案
难怪,你做的只有IE可以采取的滥用行为。 :-)
只是不要做恶,在这种情况下,ActiveXObject
。
如果您解释一下剪切工具应该做什么,也许您可以从替代解决方案中获得一些帮助。同时,请想一想:您开发了一个网页,可能可以在任何操作系统上使用。微软有什么特定的东西可以在这里工作?
-SA
No wonder, you do the abuse which only IE can take. :-)
Just don't do evil, which is, in this case,ActiveXObject
.
Perhaps you can get some help with alternative solution, if you explain what your "snipping tool" should do. In the meanwhile, think at this: you develop a Web page, which is potentially can be used on any OS. How anything specific to Microsoft can possibly work here?
—SA
这篇关于如何在我的网站中添加截图收费。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文