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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:28:59+00:00 2026-05-26T20:28:59+00:00

Yo my friends having a coding error with his site, and asked me for

  • 0

Yo my friends having a coding error with his site, and asked me for help. However I’m stuck as well. You see when you hover over a link a tooltip will popup, but he wants it on the end of the link, not in the middle. (Btw he’s using a phpbb forum)

$(document).ready(function() {
    $("a.topictitle").hover(function() {
        $(this).next(".topic_desc_pos").stop()
        .animate({left: "100", opacity:1}, "fast")
        .css("display","block")
    }, function() {
        $(this).next(".topic_desc_pos").stop()
        .animate({left: "150", opacity: 0}, "fast", function(){
            $(this).hide();
        })
    });
});

If it helps here’s his forum – http://www.codexvideos.com/viewforum.php?f=47

  • 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-26T20:29:00+00:00Added an answer on May 26, 2026 at 8:29 pm

    The main issue is that you’re animating left 100px, but you never reset the animation back to its original starting point, which means the more I hover over a link, the farther right that tooltip goes. In fact, your code indicates that rather than moving it back left 150 pixels, you continue to move it right on the ‘mouseout’ event. You want to set it to always start up at the same spot — in this case, you want the starting spot to be the right end of that link.

    In the ‘mouseout’ part of the hover (the second hover block), change it to something like this:

        $(this).next('.topic_desc_pos')
            .stop()
            .fadeOut('fast')
            .css('left', $(this).width());
    

    This should accomplish the same objective as above, while ensuring that the “left” value is always at the end of the link. If you notice I set “left” to $(this).width(). This moves it back to the end of the link after fading out.

    Also, You should probably also set a time delay to make sure the user is actually hovering over a link and not just moving the mouse across the screen, and also to make sure it stays visible for another second or two before fading out.

    Hope that helps. Good luck.

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

Sidebar

Related Questions

Dear Friends from Stackoverflow, Please help me with a problem that i'm having when
I was having a discussion with some programmer friends who said that they see
I just created an iPhone app and am having friends try it out, but
having a little architectural trouble here. In C++, we have the notion of 'friends,'
My friend and I are having a disagreement over an application development issue. It's
My friends were having discussion on nested lists of objects in LINQ and when
Hi friends i am having problem in joining two tables in oracle my two
Hi friends i am having problem in joining tables in oracle my tables are
friends, i am using following code to display bitmap on screen and having next
I'm setting up a database and I'm interested in having a facebook-like friends system.

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.