将图像粘贴到网页中

发布于 2024-10-08 09:05:39 字数 195 浏览 0 评论 0原文

是否有可能以任何方式使用 javascript (jquery)、html (5) 来获取粘贴的图像。

ea 用户单击 printscreen 按钮,打开一个网页,单击 CTRL+V,然后将图像上传到服务器(无需保存到本地电脑)

是否可以通过 flash、java 或任何其他技术来实现?

Is it in any way possible, using javascript (jquery), html (5) to get a pasted image.

e.a a user click the printscreen button, opens a web page, clicks CTRL+V and the image is uploaded to the server (without the need to save to a local pc)

is it achievable through flash, java, any other technology?

ty

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

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

发布评论

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

评论(3

紫瑟鸿黎 2024-10-15 09:05:39

是的,这在纯 JavaScript 中是可能的,假设使用 Google Chrome 或 Chrome 内嵌框架

查看 jQuery 插件的现场演示,该插件干净地包装了HTML 剪贴板 API。这是通过将 Ctrl+V 粘贴事件中的二进制图像数据获取到 JavaScript 中来实现的。

Yes, this is possible in pure JavaScript, assuming either Google Chrome or Chrome Frame.

View a live demo of a jQuery plugin that cleanly wraps the HTML Clipboard API. This works by getting binary image data from the Ctrl+V paste event into JavaScript.

烟凡古楼 2024-10-15 09:05:39

Google Docs 支持除 MSIE 之外的所有内容的拖放操作,但它仍然不支持复制和粘贴。粘贴图像:

https://drive. googleblog.com/2010/10/drag-and-drop-images-in-documents.html

Google Docs supports drag-n-drop in everything but MSIE, however it still does not support copy & paste of images:

https://drive.googleblog.com/2010/10/drag-and-drop-images-in-documents.html

粉红×色少女 2024-10-15 09:05:39

我不认为使用纯 html/javascript 是可能的,但你可以使用 java applet 来做到这一点。例如:Radinks 上传控件

I don't think it's possible using plain html/javascript, but you can do it using a java applet. Ex: Radinks upload control

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