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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:12:26+00:00 2026-05-22T03:12:26+00:00

i am doing a slide show. and the slide show contain a image. while

  • 0

i am doing a slide show. and the slide show contain a image. while the user over on the image, a span (which contain a link) should display. as well if the user move out from the image, the span need to hide.

This works fine. the issue is, while mouseenter the span shows. but i need to click on the link inside the span. while i move to that link, i am getting issue, the link get shakeings. i believe this is because of onmouseenter event. any one can tell me how to avoid this issue?

i used the preventDefatul even stop stopPropagation, but there is no use.

this is my code for jquery :

$(document).ready(function(){

$('span', '.case-study-slider').hide();

$('.case-study-slider img').bind('mouseenter', function(e){
   $(e.target).siblings('span').show();
   e.stopPropagation();
})
$('.case-study-slider img').bind('mouseleave', function(e){
    $(e.target).siblings('span').hide();
    e.stopPropagation();
})

});

And here is my HTML code :

<div class="case-study-slider">  
   <span class="slider-player">  
       <a href="case-study-page-a.html"></a>
   </span>  
   <img height="270" width="702" alt="slider" src="images/slide-space-holder-type2.jpg" /></div>

the span slider-player absolute positioned on the image.

what i need is : while user enter into image, my span need to show, and they can click on link to move my slide without any shake on link.

Any one can help me?

  • 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-22T03:12:27+00:00Added an answer on May 22, 2026 at 3:12 am

    the trouble is on the container, you have to put your image and the span.slider-player in the same div (as it as), but bind the event to the container.. so

    $(document).ready(function(){
       $('span', '.case-study-slider').hide();
       $('.case-study-slider').bind('mouseenter', function(e){
          //$(e.target).siblings('span').show();
          $(this).children('span').show();
          e.stopPropagation();
       });
       $('.case-study-slider').bind('mouseleave', function(e){
          //$(e.target).siblings('span').hide();
          $(this).children('span').hide();
          e.stopPropagation();
       })
    });
    

    But I prefer this method 😛

    $(document).ready(function(){
       $('span', '.case-study-slider').hide();
       $('.case-study-slider').hover({
          function() {
             $(this).children('.slider-player').show();
          },
          function() {
             $(this).children('.slider-player').hide();
          }
       });
    });
    

    with this methods you don0t need stopPropagation

    I tought it helps

    @modify: I forgot to change selectors inside the events, and added my preferred solution 🙂

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

Sidebar

Related Questions

I'm working on a slide-show-like web app in which the current image is drawn
I have a slide show which is made up of a divs. Each Div
I am trying to create an image slide show that is similar to this
I have a web app that contains a slide show with about 10 large
I am making a portfolio website and have a horizontal slider which will slide
Is it possible to implement slide transition on an image on a page where
this works: function prodLanding(){ $(#productsLanding).animate({opacity: 'toggle', width: 'toggle'}, function(){ $(#productsAll).show('slide', {direction: 'left'}, 800); });
I have a function: function prodSubSection(div, sec, self) { $(.prod-feat).hide(); $(div + sec).show('slide', {direction:
I'm using jquery to display/hide my comments on my blog. I show a bubble
I am foxed by this... I am generating a slide show using the jQuery

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.