<meta http-equiv="Content-Type" content="textml; charset=utf-8" xmlns="http://www.w3.org/1999/html"/>
<HTML>
<head>
<meta http-equiv="Content-Type" content="textml; charset=utf-8" />
<title>jquery点击弹出提示窗口</title>
<link rel="stylesheet" type="text/css" href="http://sandbox.runjs.cn/uploads/rs/55/sjckzedf/lanrenzhijia.css">
<script type="text/javascript" src="http://sandbox.runjs.cn/uploads/rs/55/sjckzedf/jquery-1.8.0.min.js"></script>
$('.theme-login').click(function(){
$('.theme-popover-mask').fadeIn(100);
$('.theme-popover').slideDown(200);
setTimeout(function() {
console.log('22222222222');
$('.theme-popover-mask').fadeOut(100);
$('.theme-popover').slideUp(200);
}, 1000);
})
$('.theme-poptit .close').click(function(){
$('.theme-popover-mask').fadeOut(100);
$('.theme-popover').slideUp(200);
})
})
</script>
</head>
<body >
<from>
<div style="margin-top: 50px; margin-left: 605px;">
<h3>请输入文字:企业湾</h3></br>
<input type="text" style="width: 160px;height: 30px">
</div>
<div class="theme-buy">
<a class="btn btn-primary btn-large theme-login" href="javascript:;">一键分享朋友圈</a>
</div>
<div class="theme-popover">
<div class="theme-poptit">
<a href="javascript:;" title="关闭" class="close">×</a>
</div>
<div class="theme-popbod dform">
<form class="theme-signin" name="loginform" action="" method="post">
<ol>
<li><h2>任务完成,你真棒!</h2></li>
</ol>
</form>
</div>
</div>
</form>
</body>
</HTML>
<HTML>
<head>
<meta http-equiv="Content-Type" content="textml; charset=utf-8" />
<title>jquery点击弹出提示窗口</title>
<link rel="stylesheet" type="text/css" href="http://sandbox.runjs.cn/uploads/rs/55/sjckzedf/lanrenzhijia.css">
<script type="text/javascript" src="http://sandbox.runjs.cn/uploads/rs/55/sjckzedf/jquery-1.8.0.min.js"></script>
显示2秒后消失的方法
<script>
jQuery(document).ready(function($) {$('.theme-login').click(function(){
$('.theme-popover-mask').fadeIn(100);
$('.theme-popover').slideDown(200);
setTimeout(function() {
console.log('22222222222');
$('.theme-popover-mask').fadeOut(100);
$('.theme-popover').slideUp(200);
}, 1000);
})
$('.theme-poptit .close').click(function(){
$('.theme-popover-mask').fadeOut(100);
$('.theme-popover').slideUp(200);
})
})
</script>
</head>
<body >
<from>
<div style="margin-top: 50px; margin-left: 605px;">
<h3>请输入文字:企业湾</h3></br>
<input type="text" style="width: 160px;height: 30px">
</div>
<div class="theme-buy">
<a class="btn btn-primary btn-large theme-login" href="javascript:;">一键分享朋友圈</a>
</div>
<div class="theme-popover">
<div class="theme-poptit">
<a href="javascript:;" title="关闭" class="close">×</a>
</div>
<div class="theme-popbod dform">
<form class="theme-signin" name="loginform" action="" method="post">
<ol>
<li><h2>任务完成,你真棒!</h2></li>
</ol>
</form>
</div>
</div>
</form>
</body>
</HTML>