过3s弹出广告条,点叉号关闭

<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
#guang {
background: url(img/53b7feaa73671575.jpg!200x200.jpg);
position: fixed;
bottom: 0;
left: 0;
100%;
height: 180px;
}

.guang {
display: none;
}

.close {
background: url(img/messager_icons.png) -64px 0px no-repeat;
32px;
height: 32px;
position: absolute;
right: 0;
}
</style>
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
$(function() {
setTimeout('$("#guang").removeClass("guang")',3000);
$('#close').click(function() {
$('#guang').hide();
})
})
</script>

</head>

<body>
<div id="guang" class="guang">
<div class="close" id="close">
</div>
</div>
</body>

</html>

--------雪碧条

------

 remove 移除
Class类
removeClass 移除类
已经表明是移除类了 所以就不需要加  .   或者#来区分类和id了 
原文地址:https://www.cnblogs.com/liuruimiku/p/5258395.html