Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase default hover duration of <a> title attribute (tooltip)

Is there a way to increase the duration of a tool tip displayed using the title attribute of an html tag?

Currently in IE it appears to only have about a 5 second duration and then disappears.

like image 263
justinl Avatar asked Oct 07 '09 07:10

justinl


People also ask

How do I change the default tooltip style?

The tooltip is automatically generated by web browsers, it actually can not be removed or changed. To change the tooltip style, we need to add a tooltip text to a different attribute, for example data-title , then use CSS code to create and customise the style.

How do you change the style of the title attribute?

You can't style an actual title attribute How the text in the title attribute is displayed is defined by the browser and varies from browser to browser. It's not possible for a webpage to apply any style to the tooltip that the browser displays based on the title attribute.

How do I stop the title attribute from displaying tooltip?

There's no way to disable the default browser behaviour, which is to show the title attribute as a "tooltip" in the browser itself. You'll need to resort to some javascript, it could even be as simple as setting the title to blank on hover, and replacing it on mouse out....

How do I get the default tooltip to show in HTML?

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

I think this is operating system dependent and you should not try to override that.

The best way will be to create a custom tooltip.

Here are some good ones

jQuery Tooltip Plugin Demo

like image 51
rahul Avatar answered Sep 27 '22 18:09

rahul