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

后端 未结 4 1931
粉色の甜心
粉色の甜心 2021-01-11 09:26

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 d

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-11 09:55

    To elaborate further on phoenix' answer. Custom tooltips will allow you great flexibility in their appearance and layout. You need to get a JavaScript library (for example, jquery, or mootools) and get a plugin to show them. Then you will link the JQuery .js file, the plugin's one, and the css, finally you will add some markup to make it work.

    For example, this one: http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ or this one: http://craigsworks.com/projects/simpletip/

    They are usually quite simple to install, the only requirement is that your site supports javascript.

提交回复
热议问题