JavaScript定时器制作弹窗小广告定时器制作弹窗小广告
本文实例为大家分享了js定时器制作弹窗广告的具体代码,供大家参考,具体内容如下
<head>
<meta charset="UTF-8">
<title>Title</title>
<style type="text/css">
* {
padding: 0;
margin: 0;
}
li {
list-style: none;
}
body {
background: #940032;
}
#counter {
width: 500px;
height: 420px;
background: #939;
margin: 50px auto 0;
position: relative;
}
#counter h2 {
line-height: 42px;
padding-left: 15px;
font-size: 14px;
font-family: arial;
color: #ff3333;
}
#counter a {
font-weight: normal;
text-decoration: none;
color: #ff3333;
}
#counter a:hover {
text-decoration: underline;
}
#bg {
width: 280px;
height: 200px;
border: 3px solid #680023;
background: #990033;
filter: alpha(opacity=80);
opacity: 0.8;
position: absolute;
left: 50%;
top: 115px;
margin-left: -141px;
}
#counter_content {
width: 250px;
position: absolute;
top: 130px;
left: 130px;
z-index: 1;
}
#counter_content h3 {
margin-bottom: 10px;
}