189 8069 5689

怎么使用JavaScript定时器制作弹窗小广告

这篇“怎么使用JavaScript定时器制作弹窗小广告”文章的知识点大部分人都不太理解,所以小编给大家总结了以下内容,内容详细,步骤清晰,具有一定的借鉴价值,希望大家阅读完这篇文章能有所收获,下面我们一起来看看这篇“怎么使用JavaScript定时器制作弹窗小广告”文章吧。

网站建设哪家好,找成都创新互联!专注于网页设计、网站建设、微信开发、成都微信小程序、集团企业网站建设等服务项目。为回馈新老客户创新互联还提供了天涯免费建站欢迎大家使用!

具体代码如下


 
 Title
 
 * {
  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 h3 {
  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 h4 {
  margin-bottom: 10px;
 }

 #counter_content h4 input {
  border: none;
  width: 223px;
  height: 30px;
  line-height: 30px;
  padding: 0 10px;
  background: url(img/ico.png) no-repeat;
  text-align: right;
  color: #333;
  font-size: 14px;
  font-weight: bold;
 }

 #counter_content div {
  width: 250px;
 }

 #counter_content input {
  width: 60px;
  height: 30px;
  line-height: 30px;
  float: left;
  background: url(img/ico.png) no-repeat -303px 0;
  text-align: center;
  color: #fff;
  cursor: pointer;
  margin: 0 1px 4px 0;
  border: 0;
 }

 #counter_content div > input:hover {
  background: url(img/ico.png) no-repeat -243px 0;
 }

 #counter p {
  width: 500px;
  position: absolute;
  bottom: 20px;
  left: 0;
  color: #ff3333;
  text-align: center;
  font-size: 12px;
 }
 



 

简易计算

   

                                                   
 

效果图:

怎么使用JavaScript定时器制作弹窗小广告

以上就是关于“怎么使用JavaScript定时器制作弹窗小广告”这篇文章的内容,相信大家都有了一定的了解,希望小编分享的内容对大家有帮助,若想了解更多相关的知识内容,请关注创新互联行业资讯频道。


文章名称:怎么使用JavaScript定时器制作弹窗小广告
网页路径:http://cdxtjz.cn/article/piheeo.html

其他资讯