jQuery鼠标悬停显示提示信息窗口,jquery悬停

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
<html xmlns=”http://www.w3.org/1999/xhtml"&gt;
<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=”/ajaxjs/jquery-1.4.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>
bet36365注册送奖金,<body>
<div class=”contact”>联系我们</div>
<div class=”us”>提示内容!提示内容!提示内容!</div>
<div>http://www.999jiujiu.com/&lt;/div&gt;
</body>
</html>

http://www.bkjia.com/jQuery/989405.htmlwww.bkjia.comtruehttp://www.bkjia.com/jQuery/989405.htmlTechArticlejQuery鼠标悬停显示提示信息窗口,jquery悬停
!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd” ht…

复制代码 代码如下:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
<html xmlns=”http://www.w3.org/1999/xhtml"&gt;
<head>
<title></title>
<script src=”http://demo.jb51.net/jslib/jquery/jquery-1.7.1.js
type=”text/javascript”></script>
<script type=”text/javascript”>
$(function () {
$(“#panel”).css(“opacity”, “0.1”);//设置透明度
$(“#panel”).click(function () {
$(this).animate({ left: “400px”, height: “200px”, opacity: “1” },
3000)//在3秒内向右移动400px,高度放大200px,透明度改为1
.animate({ top: “200px,width:200px” }, 3000)
.fadeOut(“slow”); //以淡出的方式隐藏
});
})
</script>
</head>
<body>
<div id=”panel” style=” position:relative; background-color:Olive;
height:100px; width:100px; border:1px; border-color:Aqua;”>
</div>
</body>
</html>

发表评论

电子邮件地址不会被公开。 必填项已用*标注

网站地图xml地图