最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Generating thumbnails using jquery or javascript - Stack Overflow

programmeradmin9浏览0评论

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
   }

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
   }
Share Improve this question edited Mar 15, 2018 at 12:59 Cœur 38.8k26 gold badges205 silver badges277 bronze badges asked Apr 6, 2010 at 9:15 HulkHulk 34.2k64 gold badges150 silver badges217 bronze badges 1
  • Why does your generate() doesn't take any URL as argument? Do you mean to thumbnail the own website where the script is running? – Cœur Commented Mar 15, 2018 at 13:02
Add a ment  | 

5 Answers 5

Reset to default 6

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./articles/create-website-snapshot-thumbnail.php

Try some thumbnail generation services with API.

http://www.webresourcesdepot./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.

发布评论

评论列表(0)

  1. 暂无评论