How to delay basic HTML tooltip?

天涯浪子 提交于 2019-12-23 12:47:05

问题


I was wondering if there was any way to delay just the classic HTML tooltip (no jQuery plugins like qTip, please). It's just a button as:

<input type="button" title="Click" value="My Button">

I want to know if there is any way to delay the title using pure JavaScript or client-side scripting. From what I have researched, it doesn't seem possible as it is part of the actual OS' GUI programming, which is impossible to access via browser scripting, but if there is any way that I just haven't come across yet, I would love to know! Thanks!


回答1:


The browser controls the tool tip. If you want to make any changes you will have to create your own. Maybe by using the plug ins your refered to.




回答2:


This is a feature of the system which you cannot manipulate with HTML, CSS or JavaScript.
Keep in mind that different Operating Systems have different set of delays and styling to these tooltips, the best option to consider for better control (delay,styling,animation,etc) would be to implement your own tooltip.



来源:https://stackoverflow.com/questions/13811538/how-to-delay-basic-html-tooltip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!