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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T13:52:25+00:00 2026-05-21T13:52:25+00:00

I have a script: see fiddle http://jsfiddle.net/patrioticcow/ERTWT/ . When i hover over image a

  • 0

I have a script: see fiddle http://jsfiddle.net/patrioticcow/ERTWT/ .
When i hover over image a black div slides down. What i want it to be able to click on that div and do something. Right now if i hover over the black div the animation goes crazy 🙂

<div class="profile-img-edit">Change Profile Picture</div>
<img class="profile-img" src="http://download.exploretalent.com/media014/0000145198/0000145198_PM_1298338078.jpg">

$('.profile-img').hoverIntent(function() {
$('.profile-img-edit').slideDown();
}, function() {
$('.profile-img-edit').slideUp("fast");
});

i can use hover instead of hoverIntent but is not so reliable .

thanks

  • 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-21T13:52:26+00:00Added an answer on May 21, 2026 at 1:52 pm

    The problem that you have is that once you hover over the div, you’re not hovering over the image anymore, and so the div disappears, and then once the div disappears, you’re hovering over the image again, so the div shows again.. and so on.

    Why don’t you put both elements inside a single parent div, and set the hover event on that. Like this:

    <div class="profile-img-edit">
      <div class="profile-img-edit-menu">Change Profile Picture</div>
      <img class="profile-img" src="http://download.exploretalent.com/media014/0000145198/0000145198_PM_1298338078.jpg">
    </div>
    
    $('.profile-img-edit').hoverIntent(function() {
        $('.profile-img-edit-menu').slideDown();
      }, function() {
        $('.profile-img-edit-menu').slideUp("fast");
    });
    

    You can find a fiddle demo here: http://jsfiddle.net/wcuDM/3/

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

Sidebar

Related Questions

I have a javascript creating a list. All works, see my fiddle: http://jsfiddle.net/mauricederegt/mjdyW/4/ Now
I have a jQuery script for adding dynamic content inside containerDivs. http://jsfiddle.net/Lijo/srFkJ/2/ This div
UPDATE If you try the form on this link http://jsfiddle.net/Matt_KP/BwmzQ/ the fiddle and select
I've an annoying ASP.NET problem: I have a Perl script (see below), which gets
i have a jquery script. see fiddle here , that loads some scripts depending
Basically, I have a script that cannot see an existing directory on the OS
I have a script that dynamically loads iframes inside a webpage. You can see
Currently Im have the following script which checks to see if a checkbox value
I have a login script that when successful, should check to see if the
Im trying to write a simple script that slides the next 'slide' div in

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.