jQuery实现鼠标悬停显示提示信息窗口的方法

2019-12-18,,,

本文实例讲述了jQuery实现鼠标悬停显示提示信息窗口的方法。分享给大家供大家参考。具体实现方法如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>鼠标悬停显示提示信息窗口</title>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<style type="text/css">
.contact{width:100px;height:15px;
margin:20px 0 0 50px;background-color:#CCCCCC;
text-align:center;
}
.us{display:none;width:300px;height:40px;
padding:10px;position:relative;top:0px;left:50px;
background-color:#0099FF;
}
</style>
<script src="jquery-1.6.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".contact").mouseover(function(){
$(".us").show("slow");
$(".contact").mouseout(function(){
$(".us").hide("slow");
});
});
})
</script>
</head>
<body>
<div class="contact">联系我们</div>
<div class="us">提示内容!提示内容!提示内容!</div>
<div>//www.jb51.net/</div>
</body>
</html>

希望本文所述对大家的jQuery程序设计有所帮助。

您可能感兴趣的文章:

  • jQuery鼠标悬停内容动画切换效果
  • jQuery实现鼠标悬停3d菜单展开动画效果
  • 基于jquery实现的鼠标悬停提示案例
  • jQuery实现鼠标悬停背景翻转的黑色导航菜单代码
  • 基于jQuery创建鼠标悬停效果的方法
  • jQuery实现的感应鼠标悬停图片色彩渐显效果
  • 分享33个jQuery与CSS3实现的绚丽鼠标悬停效果
  • jQuery实现列表自动循环滚动鼠标悬停时停止滚动
  • jQuery当鼠标悬停时放大图片的效果实例
  • jquery鼠标悬停导航下划线滑出效果

《jQuery实现鼠标悬停显示提示信息窗口的方法.doc》

下载本文的Word格式文档,以方便收藏与打印。