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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:28:03+00:00 2026-05-15T21:28:03+00:00

How does stackoverflow does that hovering effect on a tag of a question? How

  • 0

How does stackoverflow does that hovering effect on a tag of a question? How to do the same using jquery?

EDIT:
Not that mouseover i want the submenu showing Add Jquery to favorite tags

  • 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-15T21:28:04+00:00Added an answer on May 15, 2026 at 9:28 pm

    This should do the work.

    http://jsfiddle.net/5GD6r/4/

    I have coded it almost exactly the way Stack Overflow does. I built upon the button already created by @Reigel.

    HTML:

    <a href="#" class="post-tag" title="show questions tagged 'mousehover'" rel="tag">Ruby-on-Rails</a>
    
    <a href="#" class="post-tag" title="show questions tagged 'mousehover'" rel="tag">JQuery</a>
    
    <a href="#" class="post-tag" title="show questions tagged 'mousehover'" rel="tag">CSS</a>
    
    
    <div class="mouseoverHoverBox">
        <span class="pointer">
            <span class="plusminus">+</span>
            <span class="addRemove">Add </span>
            <span class="insert"></span>
            <span class="fromTo"> To </span>
            <span>Interesting tags</span>
        </span>
        <br />
        <span class="pointer">
            <span class="plusminus">+</span>
            <span class="addRemove">Add</span>
            <span class="insert"></span>
            <span class="fromTo"> To </span>
            <span>Ignored tags</span>
        </span>
    </div>
    

    CSS:

    .post-tag {
        position:relative;
        background-color: #E0EAF1;
        border-bottom: 1px solid #3E6D8E;
        border-right: 1px solid #7F9FB6;
        color: #3E6D8E;
        font-size: 90%;
        line-height: 2.4;
        margin: 2px 0px 2px 0px;
        padding: 3px 4px;
        text-decoration: none;
        white-space: nowrap;
        }
    
    .post-tag:hover {
        position:relative;
        background-color:#3E6D8E;
        color:#E0EAF1;
        border-bottom:1px solid #37607D;
        border-right:1px solid #37607D;
        text-decoration:none;
    }
    
    .mouseoverHoverBox {
        position:relative;
        top: -6px;
        border: 2px ridge #CCC;
        padding: 10px;
        width: 250px;
    }
    
    .plusminus {
        color: #E45C0E;
    }
    
    .pointer {
        cursor: pointer;
        width: 100%;
        height: 100%;
        color: #3E6D8E;
    }
    

    JAVASCRIPT:

    $('.mouseoverHoverBox').hide();
    
    $('.post-tag').live('mouseover',function(e){
        var x = $(this).offset();
        $('.mouseoverHoverBox').css('left',x.left-10);
        $('.insert').html(' <b>'+$(this).text() + '</b> ');
        $('.mouseoverHoverBox').slideDown();
    });
    
    $('.pointer').live('mouseover mouseout', function(e){
        if(e.type=="mouseover") {
            $(this).css('text-decoration','underline');
        }else if(e.type="mouseout") {
            $(this).css('text-decoration','none');
        }
    });
    
    $('.pointer').toggle(function() {
       $(this).find('.plusminus').text('x ');
       $(this).find('.addRemove').text('Remove ');
       $(this).find('.fromTo').text('From');
    }, function() {
       $(this).find('.plusminus').text('+ ');
       $(this).find('.addRemove').text('Add ');
       $(this).find('.fromTo').text('To');
    });
    
    $('.mouseoverHoverBox').mouseleave(function(){
         $(this).hide();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 509k
  • Answers 509k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I'm sure there's some hacky solution to your problem, but… May 16, 2026 at 4:39 pm
  • Editorial Team
    Editorial Team added an answer Your named query is not valid (school_id is not a… May 16, 2026 at 4:39 pm
  • Editorial Team
    Editorial Team added an answer This is similar to what the .livequery() plugin does, you… May 16, 2026 at 4:39 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have notice that stackoverflow.com does not have file extensions on their pages. How
How does Stackoverflow implement the resizable textarea? Is that something they rolled themselves or
how does stackoverflow manage permalinks. For example an arbitary qn like: ASP.NET + jQuery
We have all seen many question on StackOverflow that are founded upon the idea
I have seen it written in multiple threads/comments on stackoverflow that using switch is
I'm not entirely sure if this question belongs on stackoverflow or superuser (is there
I asked for help earlier on Stackoverflow involving highlighting spans with the same Class
Possible Duplicate: How does StackOverflow generate its SEO-friendly URLs? I made a simple form
There are a number of questiosn on StackOverflow that ALMOST hit this topic head
I am using the core Auth component. I have created a user login that

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.