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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:33:28+00:00 2026-05-27T03:33:28+00:00

What I hope to accomplish is write a small jQuery script that will allow

  • 0

What I hope to accomplish is write a small jQuery script that will allow me to take the content of a block and trigger a popup whenever someone places their mouse over it. In essense, it’s going to be a tooltip with an image in it.

All the tutorials that I have found REPLACE pictures on mouseover, or are tooltips that contain only text. Here is the code:

$(document).ready(function() {
    $('div#block-block-14.block').hover(
        function()  {
            this.tip = this.title;
            $(this).append(
            '<div class="toolTipWrapper">'
            + '<div class="toolTipContent"></div>'
            );
            this.title = "";
            this.width = $(this).width();
            $(this).find('.toolTipWrapper').css({left:this.width-22})
            $('.toolTipWrapper').fadeIn(300);
        },
            function()  {
                $('.toolTipWrapper').fadeOut(100);
                $(this).children().remove();
                    this.title = this.tip;
            }
            );
});

And here is the CSS code:

div#block-block-14.block{ background:url(../images/QuadChartDropShadow.png);}
.toolTipWrapper{width:175px;position:absolute;top:20px;display:none;color:#FFF;font-weight:bold;font-size:9pt}
.toolTipContent{padding: 8 px 15px; background:url(../images/QuadCharDropShadow.png) no-repeat top;}
  • 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-27T03:33:28+00:00Added an answer on May 27, 2026 at 3:33 am

    For tooltip, I will always recommend qTip2. The implementation is easy, and the best thing is the creator is supportive, every problem I reported in the Help and Support forum is always having response 🙂

    To render image in the tooltip is easy, can be done in several ways

     <img id='tooltip1' style="display:none;" src="../../Content/HomePage/aboutshop.JPG" />
    
     $('#aboutshop').qtip({
         content: {
         text: $('#tooltip1') 
         }
     });
    

    Or

     $('a').qtip({
           content: {
            text: '<img src="test.png" />'
            }
      });
    

    You can check many more function here: http://craigsworks.com/projects/qtip2/docs/

    Hope this help 🙂

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

Sidebar

Related Questions

This will take a bit of explanation so I hope I don't lose everyone
Okay, what I'm trying to accomplish is a simple tool tip that, when you
I am trying to accomplish to show a div that is in the same
I wish to accomplish a fairly simple task (I hope!) I got two div
I am pretty new to MVC and hope that I am approaching this the
How can I create a disjunction in NHibernate that would accomplish the following sql:
Here is the code that shows what I try to accomplish. public partial class
I faced a very interesting fact, and hope you have an answer for that.
I hope this makes sense. I have a ASP.NET web application that uses Entity
I wasn't sure of the title, but I hope you will be able to

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.