Creating hints with onMouseOver and onMouseOut`

来源:互联网 发布:我淘宝店铺怎么激活 编辑:程序博客网 时间:2024/05/16 09:17
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"
   onMouseOver="window.status='Click to display contents';return true">
Contents</A>
This example displays the hint "Click to display contents" in the status bar when you move the mouse pointer over the link.

原创粉丝点击