diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

I agree to have my personal information transfered to MailChimp (more information)


Link Thumbnail : Photo Mouse Over

A little bit JavaScript, a little bit CSS and a little bit clairvoyance, Link Thumbnail shows users that are about to leave your site exactly where they’re going. When that curious mouse pointer hovers over a link pointing to somewhere outside of your site, the script displays a small image of the destination page. It’s a nice visual cue that serves a very real purpose: providing a clearer picture (no pun intended) of what’s ahead.

How to implement:

  1. Download source code for Link Thumbnail.
  2. The file, linkthumb.zip, contains the script, one required image and an example page. Once downloaded, upload the script and the image to your site. They must be in the same directory.
  3. Link to the Javascript and Add Style: Add a link to the javascript in the page(s) you’d like Link Thumbnail implemented. Remember to adjust the path to properly point to the location of the file on your server. Then, you need to a line of CSS code. You can copy this entire block and paste it into your <head> section:

    Add Classes to Your Link Tags: Give a thumbnail to a link by adding the “linkthumb” class:


    Within this text, I can show a site image on an external link just by adding a class to my anchor tag.

    Here is an ordinary basement.org link.

    Here's a paragraph without a link.


    Give Thumbnails to All: Want all of your links to display thumbnails? No problem. Add the following line to your script headers:

          arc90 lab | tools: Link Thumbnail  

    And now you don’t even need a class on your links:


    This regular old link will display a thumbnail.

    And guess what - this one will, too.

    Here's a paragraph without a link.


    arc90 | ajaxian

    Link Thumbnail : Photo Mouse Over

Share This Story, Choose Your Platform!

Get Latest News

Subscribe to Digital News Hub

Get our daily newsletter about the latest news in the industry.
First Name
Last Name
Email address
Secure and Spam free...