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

The Archive Base Latest Questions

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

I have problem with tooltips on my magento website, I need to have one

  • 0

I have problem with tooltips on my magento website, I need to have one tooltip on product page which will show a HTML UL List. I tried some plugins I found but had problems with JQuery as it was disabling other prototype pop up I have on product page.

Im really a newbie at All the types of javascript and hope you experts can help me with this please.

My trigger id for tooltips is #why-to-buy
and the tooltip class in CSS is .why-to-buy-tooltip

can anyone suggest me a prototype or scriptaculous driven simple tooltip which can show HTML please?

Any help is more than welcome.
Thanks in advance.

  • 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-26T17:31:37+00:00Added an answer on May 26, 2026 at 5:31 pm

    Typically this can be done in just CSS. To start with there needs to be an anchor;

    <a id="why-to-buy" href="#" onclick="return false;">
        Why To Buy?
        <ul class="why-to-buy-tooltip">
            <li>Reason #1</li>
            <li>Reason #2</li>
        </ul>
    </a>
    

    The onclick is to prevent it working as a hyperlink. An anchor is necessary for older IEs to respect the following hover;

    #why-to-buy {
        position: relative;
    }
    
    #why-to-buy .why-to-buy-tooltip {
        display: none;
        position: absolute;
        width: 200px;
        height: 200px;
        z-index: 100;
    }
    
    #why-to-buy:hover .why-to-buy-tooltip, #why-to-buy:active .why-to-buy-tooltip {
        display: block;
    }
    

    If you need more info search for and read about “CSS popups”. A nice touch is to add some CSS3 transitions – old browsers just ignore them and continue to work as normal.


    This type of popup is limited because it is inside an anchor, and anchors cannot contain anchors. If the #why-to-buy element is of another type, such as a DIV, then IE doesn’t pick up the :hover pseudoclass. For this special case a bit of JavaScript is needed after all.

    $('why-to-buy').observe('mouseenter', function() {
        this.addClassName('over');
    }).observe('mouseleave', function() {
        this.removeClassName('over');
    });
    

    Update the last stylesheet rule to include #why-to-buy.over .why-to-buy-tooltip. The bit of JavaScript is rarely needed and can go in /skin/frontend/base/default/js/ie6.js. Or you could encourage browser upgrades and choose not to support old IE at all.

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

Sidebar

Related Questions

I have problem with fancybox. I want to write a function that will run
My problem is related to using the JQuery Tools Tooltip Plugin ( http://flowplayer.org/tools/tooltip.html )
I have a dashboard page in which I am using various MSCharts. I have
I have a problem with getting this pop-up jquery: http://www.htmldrive.net/items/show/431/jQueryNotice-animated-notification-tooltip script to work in
i have a table. in each table i want it to show a tooltip
I have a problem with my tooltip library in IE8. For some elements, especially
I have the following problem. I'm working on a simple jQuery tooltip and now
I have a bunch of elements that trigger a tooltip on hover. The problem
I have the following problem: I made a UserControl in WPF which has an
I have problem in some JavaScript that I am writing where the Switch statement

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.