简体   繁体   English

带有工具提示的Javascript事件监听器

[英]Javascript Event Listeners with tooltips

Is it possible to use a javascript event listener to initialize a tool tip for a button who is the target for the listener? 是否可以使用javascript事件侦听器为作为侦听器目标的按钮初始化工具提示? I have searched online and found many ways to make a tool tip work but would like to make use of an event listener. 我在网上进行搜索,发现了许多使工具提示起作用的方法,但是想利用事件侦听器。 I'm going to use onmoveover as the type of event for the target. 我将使用onmoveover作为目标的事件类型。 Is this really possible? 这真的有可能吗?

Yes, it is possible. 对的,这是可能的。

Google should give you many examples, here's one... Google应该给您举很多例子,这里有一个...

http://sixrevisions.com/tutorials/javascript_tutorial/create_lightweight_javascript_tooltip/ http://sixrevisions.com/tutorials/javascript_tutorial/create_lightweight_javascript_tooltip/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM