Generating thumbnails using jquery or javascript
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>
开发者_StackOverflow
<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/
I'm sorry, but this is not quite doable with 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.
Try using the qTip JQuery plugin.
精彩评论