生成客户端访问的网页的缩略图
我开发了一个扩展程序 - firefox,因此通过这个扩展程序,我可以跟踪用户访问的页面,现在我想做的是,当用户将鼠标悬停在链接上时,我希望能够弹出网页的缩略图。我已经使用第三方网站生成缩略图来完成此操作,例如 http://images.websnapr.com。我想知道我是否可以在客户端上完成此操作,而无需使用第三方网站。
有什么建议吗?
I developing an extension - firefox so with this extension i keep track of the pages the user visits and now what i want to do is, i want to be able to popup a thumbnail of the webpage when the user hovers the mouse over the link. i have done that using third party websites for generating thumbnials such as http://images.websnapr.com. I was wondering if there was anyway i could do it on clientside without having to use third party website.
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您也可以只使用 Firefox 自己的画布。在这里查看示例:
http: //fixunix.com/mozilla/408090-firefox-page-capture-image-need-minor-tweaks-autochosen.html
You can also just use firefox's own canvas. Look here for an example :
http://fixunix.com/mozilla/408090-firefox-page-capture-image-need-minor-tweaks-autochosen.html
我建议您查看 screengrab 扩展,它的作用如下:
https://addons.mozilla.org/en-US/firefox/addon/ 1146
(我认为它使用java作为底层)
i would recommend you to look at the screengrab extension, which does just that:
https://addons.mozilla.org/en-US/firefox/addon/1146
(i think it uses java as underlying layer)