By default, when you move the mouse pointer over a hyperlink, thestatus bar displays the destination URL of the link. You can set statusin the onMouseOut and onMouseOver event handlers of a hyperlink orimage area to display hints in the status bar instead. The eventhandler must return true to set status. For example,
By default, when you move the mouse pointer over a hyperlink, the status bar displays the destination URL of the link. You can set status in the onMouseOut and onMouseOver event handlers of a hyperlink or image area to display hints in the status bar instead. The event handler must return true to set status. For example
<A HREF="contents.html"This example displays the hint "Click to display contents" in the status bar when you move the mouse pointer over the link.
onMouseOver="window.status='Click to display contents';return true">
Contents</A>
本文介绍如何使用onMouseOver事件为网页中的超链接设置自定义的状态栏提示信息,通过简单的HTML代码实现鼠标悬停时显示特定提示。
4520

被折叠的 条评论
为什么被折叠?



