Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you make tooltip show up for longer in IE

i got the following

<span id="pageLink" style="cursor:pointer;" onClick="...." title="<%=pHelper.getNameToolTip()%>">

in firefox the tooltip stays there until the mouse is moved, but in IE it only stays there for about 5seconds and disappears.

is there a way to make it last longer?

like image 632
code511788465541441 Avatar asked Dec 14 '10 16:12

code511788465541441


People also ask

What is browser tooltip?

A tooltip is a contextual text bubble that displays a description for an element that appears on pointer hover or keyboard focus.

How can you display the tooltip on the HTML page?

HTML: Use a container element (like <div>) and add the "tooltip" class to it. When the user mouse over this <div>, it will show the tooltip text. The tooltip text is placed inside an inline element (like <span>) with class="tooltiptext" .


1 Answers

Not with built-in browser tooltips, no.

There are tons of tooltip-like UI components using positioned DOM elements that will give you much finer control of presentation and display duration. I've never used one so couldn't vouch for any of them, so I won't link to any. Googling "JavaScript tooltip" will get you plenty. There are also plenty of tooltip plug-ins for existing libraries like jQuery around.

like image 115
Tim Down Avatar answered Oct 10 '22 11:10

Tim Down