如何使用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://csdahua.cn/article/ppoejg.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流

其他资讯