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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:23:49+00:00 2026-05-29T20:23:49+00:00

I created tooltips to substitute the default browser TITLE bubble. I’ve read a lot

  • 0

I created tooltips to substitute the default browser “TITLE” bubble. I’ve read a lot of threads and all of them suggests I should remove title temporarily on mouseover and put it back on later. I am trying to do exacly that, but I am failing to. Here is my code and the reason why I use jQuery live is because I want the effect to apply to dynamically added elements later:

tooltip : {
    activate : function(selector){
        $(selector).each(function(){
            $(selector).live('mouseover',function(e){
                tooltip.init(this,true,e);
            });
            $(selector).live('mouseout',function(e){
            tooltip.init(this,false,e);
            });
        });
    },
    init : function(elem,show,e){
        var title = $(elem).attr('title');
        this.addTip(elem,show,title);

        ...
    },
    addTip : function(elem,show,title) {
        var code = '<div class="tooltip-wrapper">'+title+'</div>';
        if(show) {
            $(elem).after(code);
            setTimeout('$(".tooltip-wrapper").fadeIn("slow")',500);
        }
        else {
            $(".tooltip-wrapper").remove();
        }
    }
}

I call this script like this:

tooltip.activate(selector);

Another problem I have is that it gives me HIERARCHY_REQUEST_ERR: DOM Exception 3 error if I try this tooltip.activate("*");, but it works if I use input as a selector.

Any input will be much appreciated 🙂

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

    I’ll just point to a couple issues:

    • Using live inside each defeats the idea of live. each loops over existing elements, not future elements.
    • But in any case, the way you’re doing it is wrong. You should drop the each (in activate), because live already applies to multiple elements. So in your case, if you have N elements, you’ll be adding the same event listener N times.
    • * applies to all the elements, which could be very inefficient. How about trying [title] (applies to elements that have a title attribute)
    • If you remove the title temporarily on hover, then the title is meaningless (because it only appears on hover). If you’re creating an improved tooltip based on the title attribute just read the title attribute when you first encounter it and use it for your tooltip
    • You should probably use mouseenter and mouseleave instead of mouseover and mouseout. If an element with a title has child elements you want the tooltip to keep showing when the mouse goes in/out child elements.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the plugin http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ to create tooltips with JQuery but I can't created
I'm using jQuery Tools ( http://flowplayer.org/tools/index.html ) to create tooltips, I've created a js-file
I'm using this jQuery Tooltip plugin: http://docs.jquery.com/Plugins/Tooltip I create tooltips for all links when
I created an slider that slide all images of my wordpress articles, and if
Is there a way to display tooltips on an image that is dynamically created.
when using Simple tooltips script In the frame, half of the balloon is created
I have created a function to showing a title text in a separate div,
In my Silverlight 3 application, I created a custom Tooltip, that is shown when
Created .NET WCF service, tested it - works. Generated schemas from Data and service
I created a program using dev-cpp and wxwidgets which solves a puzzle. The user

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.