Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8026815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:36:37+00:00 2026-06-04T23:36:37+00:00

I created this script that takes a full size image and makes a thumbnail

  • 0

I created this script that takes a full size image and makes a thumbnail out of it. The problem is, if I link the image it breaks the script. Everything I’ve tried has failed. You can check out this jsfiddle and notice the first thumbnail works but the second one does not (because it’s linked). Any help getting this straightened out would be appreciated.

To clarify, all thumbnails WILL be linked, so I don’t need the script to work on the first thumbnail in the example. I need it to work on the second (linked) thumbnail.

http://jsfiddle.net/uSSmy/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T23:36:39+00:00Added an answer on June 4, 2026 at 11:36 pm

    at the end of your code just try to call

     FitImages( $('.titled-thumb img') )
    

    Since you wrote FitImages($('.titled-thumb > img')) with > immediate descendant selector if you link your images, you’re placing an intermediate element so that selector cannot work anymore.

    If I remove that selector from the fiddle I see the images (your fiddle updated)

    Update: for the same reason also change

    parent = img.parent(),
    

    with

    parent = img.closest('div'),
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a script task that executes a dynamically created SQL restore statement. This
I bought this program that created a pretty nice imageuploader flash script however I
I created a simple Import script that takes a CSV processes it in PHP
I've created a PHP script that takes the contents of an array and stuffs
I created a simple bubblesorting script here that takes in arrays and sorts them,
I am testing a thumbnail image creator script which creates a thumbnail that can
This is an HTML scrip that I created. I am trying to include a
I used this script to create a jQuery accordion. Check out the working jsFiddle
I have a script on my site ('write-review.php') that takes an optional url parameter
I'm writing a python script that takes a file one at a time or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.