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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:31:26+00:00 2026-05-29T09:31:26+00:00

The following code is to generate tooltips on hover… hover over some text with

  • 0

The following code is to generate tooltips on hover… hover over some text with the following code e.g.

span class="ttip" rel="#tip_1" 

It then pulls the div with the id of tip_1 from an external file (tooltips.html). Trouble is in IE 7 & 8 – it just loads the tooltip box – not the content inside… (Like it can’t communicate with the tooltips.html file)

Any ideas please?

<script type="text/javascript">
    jQuery(document).ready(function(){
        jQuery('.ttip').hover(function(){
            var offset = jQuery(this).offset();
            console.log(offset)

            var width = jQuery(this).outerWidth();
            var tooltipId = jQuery(this).attr("rel");

            jQuery('#tooltip-cont').empty().load('/tooltips.html ' + tooltipId).fadeIn(500);
            jQuery('#tooltip-cont').css({ top:offset.top, left:offset.left + width + 10 }).show();
        }, function(){
            jQuery('#tooltip-cont').stop(true, true).fadeOut(200);
        });
    });
</script>
  • 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-29T09:31:26+00:00Added an answer on May 29, 2026 at 9:31 am

    Unless this is a transposition error while posting your question, you have an extra space in your URL (after .html):

    .load('/tooltips.html ' + tooltipId)
    

    should probably be:

    .load('/tooltips.html' + tooltipId)
    

    Unrelated: you have a lot of inefficient re-querying going on in that code. You should store references to already queried elements, and use the chaining nature of jQuery where possible.

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

Sidebar

Related Questions

The following code is to generate tooltips on hover... hover over some text with
I currently have the following code to generate a sales report over the last
I have used the following code to generate some dynamic checkboxes. This works for
i have the following code that generate some images with urls associated from database:
I got the following code to generate a DLL : public class QtObject :
I have the following code to generate some spans using cakephp's helper <div id=numberRow>
All, I'm using the following code to generate some li items in an ol.
with following code qTip works for me and generates tooltips: $('a.ppname[rel]').live('mouseover', function() { $(this).qtip(
php code: the following code is <div id=code'.$row->nid.' class=cptext rel='.$url.'>'.$row->node_value.'</div> <div id=cd'.$row->nid.' style=display: none;
I got the following code that generate a DLL (sample exemple) : public class

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.