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

  • Home
  • SEARCH
  • 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 559887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:17:06+00:00 2026-05-13T12:17:06+00:00

im using a jquery image preview plugin for showing preview of my link images

  • 0

im using a jquery image preview plugin for showing preview of my link images when having the mouse over them.

 http://james.padolsey.com/javascript/new-jquery-plugin-imgpreview/

it works on links with images like:

 <a href="http://website/1.jpg"><img src="http://website/1_thumbnail.jpg"></a>

however, it doesnt work on links which i have embedded into DOM with jquery ajax.

i wonder how i could have this working.

the code implementing it is very simple:

 $('a').imgPreview({
       distanceFromCursor: {top: -20, left: 20}
 });

i have 1 approach in mind:

use jquery live function (that responses to the later embedded links) and couple it somehow to the code above.

$('a').live('mouseover', function() {
    // call the preview code here
});

but i dont know how to call it. AND this is not a very great solution cause then nothing happens when i click on the link.

would appreciate any help i can get. other approaches would be appreciated.

  • 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-05-13T12:17:06+00:00Added an answer on May 13, 2026 at 12:17 pm

    Are you using jquery 1.4? If so, first try putting quotes around top and left so that it reads “top”: and “left”:

    If you’re using a previous version of jquery, try using the jQuery livequery plugin. Once you install that, call your code like this:

    $('a').livequery(function(){
      $(this).imgPreview({ distanceFromCursor: {top: -20, left: 20} })
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know a good plugin to upload and preview an image using jquery....?
I'm using a Jquery script that do a preview image when mouse is hover,
Found this great article on using jquery for image swapping: http://jquery-howto.blogspot.com/2009/05/replacing-images-at-time-intervals.html How do you
I added a image hover effect using jquery : http://jsfiddle.net/roXon/HmTrw/ my site : http://windows7themer.com
Anyone have a good jquery Image Preview plugin. Been looking but havent found anything
I am using the Galleriffic jQuery plugin for my photo gallery. The gallery images
i am using ajaxSubmit in jQuery to preview the images but are i really
I've been using your fullBg script found here: http://bavotasan.com/2011/full-sizebackground-image-jquery-plugin/ (function($) { $.fn.fullBg = function(){
Looking at an example on image upload with JQuery here: http://www.zurb.com/playground/ajax_upload Using this example
Here i am using a image slider and a cycle plugin of jquery. but

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.