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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:53:07+00:00 2026-05-30T07:53:07+00:00

Building a site on CargoCollective, but it appears they use jQuery 1.4.2 which seems

  • 0

Building a site on CargoCollective, but it appears they use jQuery 1.4.2 which seems not to have the functionality I need.

So, the result I’m aiming for is this: http://jsfiddle.net/hendos43/a3hFh/1/

In case you can’t see that for some reason, it’s as follows, if you can, skip until after the code:

Aim:

Gallery of photos of employees which, when hovered over will display
bio (seperate div), which will not disappear onmouseOut (when mouse
stops hovering over image), but will stay there until another image is
hovered over, triggering the next mouseover event.

The code I have used is this:

JS:

 $(document).ready(function() {
    $('a[id^="link"]').mouseover(function() {
        $div = $('div#' + $(this).data('hide'));
        $div.siblings('[name^="people_bio"]').fadeOut(0).end().fadeIn(200, function() {
            if (!$div.is(':visible')) {
                $('nothing').fadeIn(40);
            }
        });
    });
});​

CSS:

#chris,
#patrick,
#jonathan,
#toby { position:absolute;
    left:285px;
    top:10px;
    border: 0px;
    background:none;
    padding: 5px; 
    width: 150px;
}

#holder { width:270px;
    position:absolute;
    top:10px;
    left:10px;}                

.hidden{
    display:none;
}
.shown{
    display:block;
}
​

HTML:

<div id="holder">
    <a id="link_chris" href="javascript:"  data-hide="chris"><img src="http://payload.cargocollective.com/1/2/77014/2272969/patrick%20crop.jpg"></a>
    <a id="link_patrick" href="javascript:"  data-hide="patrick"><img src="http://payload.cargocollective.com/1/2/77014/2272969/patrick%20crop.jpg"></a>
    <a id="link_jonathan" href="javascript:"  data-hide="jonathan"><img src="http://payload.cargocollective.com/1/2/77014/2272969/patrick%20crop.jpg"></a>
    <a id="link_toby" href="javascript:"  data-hide="toby"><img src="http://payload.cargocollective.com/1/2/77014/2272969/patrick%20crop.jpg"></a>
</div>

      <div name="people_bio" id="chris" class="hidden">chris' bio</div>
      <div name="people_bio" id="patrick" class="hidden">patrick's bio</div>
      <div name="people_bio" id="jonathan" class="hidden">jonathan's bio</div>
      <div name="people_bio" id="toby" class="hidden">toby's bio</div>
​

Unfortunately, this doesn’t seem to work, presumably because there were some changes to jQuery’s functioning on this feature in 1.4.4, and cargo uses 1.4.2?

Using the test options in jsFiddle, it works in 1.4.4, but not in 1.4.2, and linking up 1.7 in the custom HTML section appears to break the rest of the site, and make this feature work, but the divs ignore their CSS styled positioning anyway. Have also tried .hover with the same effects.

Anyone got any solutions, please?

(Please ignore that the images are the same, this is illustrative).

  • 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-30T07:53:08+00:00Added an answer on May 30, 2026 at 7:53 am

    Instead of using data you could use rel

    Demo working on 1.3.2

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

Sidebar

Related Questions

Im building a site which opens Youtube videos onsite using Shadowbox. I have found
I'm building a site in which users can upload photos, and they can mark
I am building a site and I have a page which takes an address
I am building a site that will (obvisouly) have a front end public portion
We are building a site, and have no interest in creating multiple themes. We
building a site which has content for each section. urls range from; /work/ /work/print/
I'm building a site with Ruby on Rails 3.1 where I also need to
I am building a site with jQuery Mobile and I am using ajax to
I am currently building a site with Expression Engine. I have just put some
I'm building a site (my first!) which lists events, nested when necessary inside year

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.