Mouse over in image to display information box

1

How do I make a mouse over open a Tooltip and this box does not disappear when I remove the mouse focus so I can put a clickable text inside this container?

As an example: the tags that appear here in Stack Overflow.

    
asked by anonymous 22.08.2014 / 16:46

2 answers

2

Your question was somewhat broad. With the code below you could have the functionality of a hover assigning visibility to an element.

CSS

.lightbox{
display:none;
}

HTML

<a href="#" class="ExibirLightBox">Exibir</a>

<div class="lightbox>
// Conteudo do lightbox
</div>

SCRIPT

    $(document).ready(function (e) {
        $('.ExibirLightBox').hover(function (e) {
            $(".lightbox").css("display", "block");
        }
    )
    });
    
22.08.2014 / 16:56
2

What you want is this:

link

Edit the div below with the content you want:

<div class="tooltip">I am a tooltip!</div>
    
22.08.2014 / 19:27