I am trying to make a tooltip in plain JavaScript which is shown on hover. Like the one in Stack Overflow on hover over the profile name a div is s
hover
div
For non-customized tooltip, you can just add the message you want to display in tooltip in the title attribute of the main div. Just like this:
Then there is no need to add the onmouseover and onmouseout event handlers. 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Then there is no need to add the onmouseover and onmouseout event handlers.
onmouseover
onmouseout