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 8333647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:06:16+00:00 2026-06-09T03:06:16+00:00

I am using this plugin here: http://boedesign.com/blog/2009/10/22/jsquares-for-jquery/ GitHub Link https://github.com/jboesch/jSquares/blob/master/js/jquery.jsquares.js … The script is

  • 0

I am using this plugin here:

http://boedesign.com/blog/2009/10/22/jsquares-for-jquery/

GitHub Link
https://github.com/jboesch/jSquares/blob/master/js/jquery.jsquares.js

… The script is working fine, but what I really need is to create a close button that only shows up inside the caption when it has been hovered over.

Clearly I don’t need a close button for a desktop site since it uses hover, but I need this for it to work better on an iPad. Our solution is basically just to have a close button in there for a person to click to manually close it.

Any help would be greatly appreciated!

EDIT – I see this in there, so is there an easy way to attach this to a button inside of the caption?

.bind('mouseleave', function(){
    _fadeInOutImage('out', options.fade_start)
    $('#js-overlay-id-' + index).remove();
    }
);
  • 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-09T03:06:18+00:00Added an answer on June 9, 2026 at 3:06 am

    I found a decent way to do it.

    Added this code

    $('.js-overlay-html .remove').bind('click', function(){
        _fadeInOutImage('out', options.fade_start)
        $('#js-overlay-id-' + index).remove();
        return false;
        }
    );
    

    Directly after this:

    $('<div id="js-overlay-id-' + index + '">' + contents + '</div>')
        .css(caption_options)
        .addClass(options._overlay_selector_class)
        .appendTo('body')
        .bind('mouseleave',
        function(){
             _fadeInOutImage('out', options.fade_start)
        $('#js-overlay-id-' + index).remove();
        }
    );
    

    Which seems to do the trick.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using this great plugin: http://www.sanisoft.com/blog/2009/06/22/jquery-auto-correct-plugin/ But it's not working with 1.6.2 or greater...
I'm using jquery.history lugin found here: http://tkyk.github.com/jquery-history-plugin/ With this i load content into a
I am using Jquery youtube player plugin found here: http://badsyntax.github.com/jquery-youtube-player/ The plugin allows you
I'm using this jQuery plugin here: http://css-tricks.com/examples/MovingBoxes/ Has anyone used it or can you
Ok, here's my problem. Im using this plugin (http://james.padolsey.com/javascript/jquery-plugin-autoresize/) to autoresize my textarea when
I am using this http://code.drewwilson.com/entry/autosuggest-jquery-plugin Here is my html <h1>Category : </h1> &nbsp;<input type=text
This is a basic jQuery question - I'm using the spinbox plugin, here: http://dev.jtsage.com/jQM-Spinbox/
I'm using this plugin for jquery called resize-crop: http://code.google.com/p/resize-crop/ The problem with this is
I'm using this JQuery autocomplete plugin http://www.devbridge.com/projects/autocomplete/jquery/ in my project. I followed this tutorial
I'm using this plugin: http://cssglobe.com/post/5780/easy-slider-17-numeric-navigation-jquery-slider Demo: http://cssglobe.com/lab/easyslider1.7/02.html Maybe somewhere in here can be altered?

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.