How to generate a thumbnail of any website using javascript or jquery?
I couldn't find any right match for my requirements.
<div id="generate_thumbnail" onclick ="generate();">
//Show thumbnail within this div
</div>
<Script>
function generate()
{
// generate small thumbnail
}
A thumbnail of a website? Such as a miniature browser-screenshot? Sorry, this can't be done without of some sort of external browser-screenshot service:
http://www.zubrag.com/articles/create-website-snapshot-thumbnail.php
Try some thumbnail generation services with API.
http://www.webresourcesdepot.com/10-free-website-thumbnail-generation-services/
对不起,这对JavaScript来说不太可行。
At best you could change the to an and try to impose some external CSS to give it a zoom
level to shrink down the content. But otherwise there's no way for Javascript to render a page, convert it to an image, and stuff it into another page.
尝试使用qTip JQuery插件 。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.