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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:37:51+00:00 2026-06-06T05:37:51+00:00

~ I am using a very slightly modified version of the jQuery tooltip script

  • 0

~ I am using a very slightly modified version of the jQuery tooltip script at: http://cssglobe.com/lab/tooltip/01/ — the only modification i made is to set it to initiate the tooltip on area links in addition to regular a links. In the sample at the link above there is no problem in IE browsers – the built-in IE tooltip is not showing, only the custom one. But on my page the built-in tooltip in IE is still showing in addition to the custom tooltip. Any idea what could be causing this?

Here is the script as I am using it:

this.tooltipText = function () {
    /* CONFIG */
    xOffset = 0;
    yOffset = 0;
    /* END CONFIG */
    $("a.tooltipText, area.tooltipText").hover(function (e) {
        this.t = this.title;
        this.title = "";
        $("body").append("<p id='tooltipText'>" + this.t + "</p>");
        $("#tooltipText").css("top", (e.pageY - xOffset) + "px").css("left", (e.pageX + yOffset) + "px").fadeIn("fast");
    }, function () {
        this.title = this.t;
        $("#tooltipText").remove();
    });
    $("a.tooltipText, area.tooltipText").mousemove(function (e) {
        $("#tooltipText").css("top", (e.pageY - xOffset) + "px").css("left", (e.pageX + yOffset) + "px");
    });
};
// starting the script on page load
$(document).ready(function () {
    tooltipText();
});

And here is a sample from the html to trigger the tooltip:

<area shape="rect" coords="9,359,617,391" href="/link-here/" onclick="window.open(this.href,'','toolbar=no, location=no, addressbar=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=510, height=580, top=50, left=150'); return false;" target="_blank" class="tooltipText" title="<strong>First part bold</strong>  Rest of tooltip text goes here <strong>Read More...</strong>" />

I can’t figure out what I’m doing differently from the script used here: http://cssglobe.com/lab/tooltip/01/

As always, any help is greatly 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-06-06T05:37:53+00:00Added an answer on June 6, 2026 at 5:37 am

    The nesting of tags within attributes of another tag is invalid html and is likely source of IE problem

    In order to keep the full text of the title within the title attribute, and still be able to separate it into bold and normal you could use a delimiter like “|” and split the title at the delimiter when the tooltip is constructed in script.

    <img title="This will be bold | this is normal" src=""/>
    

    modified code

    this.tooltipText = function () {
    /* CONFIG */
    xOffset = 0;
    yOffset = 0;
    /* END CONFIG */
    $("a.tooltipText, area.tooltipText").hover(function (e) {
        this.t = this.title;
        this.title = "";
    
        /* split title at pipe delimiter*/
        this.title_parts= this.t.split('|');
        this.tip_content='<strong>'+this.title_parts[0]+'</strong>'+this.title_parts[1]; 
    
        $("body").append("<p id='tooltipText'><strong>" +/*change===> */ this.tip_content + "</p>");
        $("#tooltipText").css("top", (e.pageY - xOffset) + "px").css("left", (e.pageX + yOffset) + "px").fadeIn("fast");
    }, function () {
        this.title = this.t;
        $("#tooltipText").remove();
    });
    $("a.tooltipText, area.tooltipText").mousemove(function (e) {
        $("#tooltipText").css("top", (e.pageY - xOffset) + "px").css("left", (e.pageX + yOffset) + "px");
    });
    

    };

    EDIT: Following will remove titles completely on page load, and store in element data

    this.tooltipText = function () {
        /* CONFIG */
        xOffset = 0;
        yOffset = 0;
        /* END CONFIG */
        $("a.tooltipText, area.tooltipText").hover(function (e) {
            this.t = $(this).data('title');
    
            /* split title at pipe delimiter*/
            this.title_parts= this.t.split('|');
            this.tip_content='<strong>'+this.title_parts[0]+'</strong>'+this.title_parts[1]; 
    
            $("body").append("<p id='tooltipText'><strong>" +/*change===> */ this.tip_content + "</p>");
            $("#tooltipText").css("top", (e.pageY - xOffset) + "px").css("left", (e.pageX + yOffset) + "px").fadeIn("fast");
        }, function () {
            /*this.title = this.t;*/
            $("#tooltipText").remove();
        }).attr('title', function(index, title){
            $(this).data('title', title);
            return '';
        });
        $("a.tooltipText, area.tooltipText").mousemove(function (e) {
            $("#tooltipText").css("top", (e.pageY - xOffset) + "px").css("left", (e.pageX + yOffset) + "px");
        });
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the very nice PhotoSlider script from http://opiefoto.com/articles/photoslider to create a slide show
I am using a slightly modified version of this code . to create a
We are using very old version of spring 2.0.6 in our code, We were
I am using a very stripped down version of Linux, I want to create
I am using a very light jquery content slider but have no idea how
Thanks to Col. Shrapnel I am using a VERY basic PHP script to send
Very Brief Background: I am using Jquery Autocomplete to lookup the the value of
I am very new to Java (only been using it for about a week)
I am using very similar loops to iterate all public fields and properties of
I'm using a very simple Stylesheet Switch by php. It was fine all along

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.