patndoris TechnoGeek

  • TechnoGeek
  • Tao of Lunacy
  • Frugal Savings
Blog Name
  • Contact
  • Home

Easy as a Thumbnail

by patndoris on Apr.05, 2009,under Code Snippets

Recently, I was working on a project at work (yes, I do work at work from time to time), and I had reason to display clickable thumbnails in a webpage I was designing. I’d never used them before, and I had no idea how it was done. Luckily, one of my favorite sites is back up, resurrected from the virtual dead. Mandarin Design has a nice tutorial on the subject. Still, I was a little confused and it took me a wee while to get it figured out. Once I did, it’s really a very simple concept. (Not to mention once you get the idea, a simple copy and paste works so very nicely on this!)

...

My first area of confusion was in that you need two of the same image file. Well, I guess you could use different pictures but it would be a little confusing when something other than what you think you’re going to see pops up. (Mental note to self: Remember for April Fools Day next year.). Back to business here! You need one picture for the little image - affectionately called the thumbnail and one for the larger image the person will see displayed upon clicking said thumbnail. The larger image will display in a pop up box. For this example, I’ve uploaded two files. I’ll use Thumb100.jpg for my thumbnail (100 px wide x 115 px in height) and Thumb300.jpg for my (slightly) larger image (300 px wide x 345 px high).

Copy and paste code:

Here’s what it will look like: Click this thumbnail to see the big thumb.

Simply replace the image names and sizes with your own information and you’re all set to display a thumbnail image!

Yes, please click it so you can see what happens.

And because I just want to show you what you can do (and because it’s oh so geeky fun), click this one: Click this thumbnail to see another big thumb.

Now you are all set to go have some fun with thumbnails…or at least you know the basics of how to create them…or you can read, copy and paste…

:thumbnail images, thumbnails, tutorial
« Sure as Shot I'm Uber Happy
Got Browsers? »
  • patndoris.com Website

  • May 2012
    Sun Mon Tue Wed Thu Fri Sat
     << <   > >>
        1 2 3 4 5
    6 7 8 9 10 11 12
    13 14 15 16 17 18 19
    20 21 22 23 24 25 26
    27 28 29 30 31    


    • Recently
    • Archives
    • Categories
    • Latest comments
  • Tag cloud

    adapter «b2 evoltion» belarc besttechie bluetooth books browser browsers cleanup computer computers crafts css disorders file_extensions float frugal games gigabit google graphics html im internet_tv java kaspersky «link box» maintenance malware malwarebytes movies music musings netgear pci phishing «photo editing» photos programs protection reality restore_points rogue router routers science? security shopping «social networking» software software_updates sp2 spam spider spybot spyware system_restore thumbnails transmute tutorial tv uninstall updates usb video videos vista vulnerabilities «wave 4» webmaster websites «windows 7» wlm xp yarn

  • Search

  • Archives

    • September 2011 (1)
    • August 2011 (1)
    • June 2011 (1)
    • May 2011 (1)
    • April 2011 (2)
    • March 2011 (2)
    • February 2011 (3)
    • January 2011 (6)
    • December 2010 (1)
    • October 2010 (1)
    • September 2010 (1)
    • August 2010 (2)
    • More...
  • XML Feeds

    • RSS 2.0: Posts
    What is RSS?
  • © 2012 patndoris.com

    Picnik: photo editing awesomeness


    Best Screensaver!
    electric sheep
    Electric Sheep



    Quick Media Converter
    Powerful and complete Free video and audio conversion software, as easy as it gets for all. Myriad of formats supported: Flv, avi, divx, xvid, mpeg4, ipod, iphone, psp, 3GP, 3G2, AVI, DIVX, XVID, TS, DVD, VCD, MPEG, MPEG2, MP3, WAV, amr, m4a, mp4, vob, mov, h264, h263, wmv


    IrfanviewIrfanview
    **For more on using Irfanview visit Eagle_Kiwi's Site


  • FTC Disclosure:

    See section 14 of Website Agreement, Terms & Conditions
blog tool

A b2evolution port by JC John Sese Cuneta.

Theme: pixel and Sweet Icons by famfamfam.

Contact • Powered by b2evolution

Credits: skin makers • CMS • cheap web hosting • adsense