代码改变世界

wmc广告demo

2015-06-02 18:23  SkyBlue  阅读(124)  评论(0)    收藏  举报
  1 <style>
  2 
  3         #page2,#page3{display:none;}
  4         .header{
  5             width:100%;
  6             height: 26px; 
  7                         margin-top:10px;
  8             text-align: center; 
  9             color: #000; 
 10             line-height: 26px; 
 11             font:16px "微软雅黑";
 12         }
 13                 .fixed-header{
 14             position:fixed;
 15             background: #11d1f7; 
 16                         margin-top:0;            
 17             top:0;
 18             left:0;
 19             color:#fff;
 20         }
 21         #authBtn{
 22             height:36px;
 23             width:94%;
 24             margin:5px auto;
 25             background-color:#61c628;
 26             font:16px "微软雅黑";
 27             color:#fff;
 28                         line-height:36px;
 29                         text-align:center;
 30         }
 31         #secondBox{
 32             height:80px;
 33             width:94%;
 34             position:relative;
 35                         margin:2px auto;
 36         }
 37         #second-img-wrap{
 38                         position:absolute;
 39                         top:10px;
 40         }
 41                 #second-img{          
 42                         border:1px solid #ccc;            
 43             max-width:60px;
 44                         width:100%;
 45                 }
 46         #second-txt{
 47             position:absolute;
 48             top:10px;
 49                         left:70px;
 50             font:14px "微软雅黑";
 51         }
 52         
 53         .protocol-main { padding: 20px 10px; margin-top:30px;text-indent: 30px; line-height: 1.8; }
 54         .protocol dl { margin-top: 15px; }
 55         .protocol dl dt { margin-top: 20px; }
 56         .protocol dl dd { font-size: 12px; color: #333; line-height: 2; }
 57         .protocol-back { height: 40px; line-height: 40px; text-align: center; background: #e7e7e7; cursor: pointer; }
 58 
 59         a{color:#3ac5c3;}
 60         #third-top{height:80px;    background-color: #F9F9F9;}
 61         #third-img-wrap{width:20%;float:left;margin-top:10px;text-align:center;#F9F9F9;}
 62         #third-img{width:100%;max-width:40px;}
 63         #third-txt{width:77%;float:left;margin:10px 0 0 2%;font:16px "微软雅黑";}
 64         #countNum{color:red;font:18px bold;}
 65         </style>
 66         <div id="page1">
 67             <div class="header">22</div>
 68             <img src="1.jpg" width="100%"/>
 69             <div id="secondBox">
 70                 <div id="second-img-wrap"><img src="http://112.124.31.88/ngProxy//images/f74214fcbc724f259a028da2ffc776ca/20150530/1432941477941.jpg" id="second-img"/></div>
 71                 <div id="second-txt">
 72                    vvvv</br>
 73                     <input type="checkbox" checked="checked"/> 我同意<a onclick="showTxt()">《Wi-Fi使用协议》</a>
 74                 </div>
 75             </div>
 76             <div  id="authBtn" onclick="authOnline()">一键上网</div>
 77         </div>        
 78         
 79         <div id="page2" >
 80             <div class="header fixed-header">免费Wi-Fi用户使用协议</div>
 81             <div class="protocol-main">                
 82                 <p style="text-indent:28px;line-height:150%">
 83             <span style="font-family:宋体">本免费</span>Wi-Fi<span style="font-family: 宋体"> 84 
 85 支持。</span>
 86         </p>
 87         <p style="text-indent:28px;line-height:150%">
 88             &nbsp;
 89         </p>
 90         <p style="text-indent:28px;line-height:150%">
 91             <strong><span style="font-family:宋体">提示:为使用本</span></strong><strong>Wi-Fi</strong><strong><span style="font-family:宋体">服务,用户应当审慎阅读并遵守《免费
 92 
 93 </span></strong><strong>Wi-Fi</strong><strong><span style="font-family:宋体">用户使用协议》,除非用户已阅读、充分理解并接受本协议所有条款,否则用户无权使用本
 94 
 95 </span></strong><strong>Wi-Fi</strong><strong><span style="font-family:宋体">服务!用户使用本</span></strong><strong>Wi-Fi</strong><strong><span style="font-family:宋体">服务的
 96 
 97 行为视为已阅读并同意接受本协议约束。</span></strong>
 98         </p>
 99         <p style="text-indent:28px;line-height:150%">
100             &nbsp;
101         </p>
102         <p style="text-indent:28px;line-height:150%">
103             <strong><span style="font-family:宋体">一、缔约主体</span></strong>
104         </p>
105         <p style="text-indent:28px;line-height:150%">
106             <span style="font-family:宋体">本协议由技术服务商、有限公司(以下简称“有限公司”)及使用本</span>Wi-Fi<span style="font-family: 宋体
107 
108 ">服务的用户共同缔结。</span>
109         </p>
110         <p style="text-indent:28px;line-height:150%">
111             &nbsp;
112         </p>
113         <p style="text-indent:28px;line-height:150%">
114             <strong><span style="font-family:宋体">二、账号及管理</span></strong>
115         </p>
116         <p style="text-indent:28px;line-height:150%">
117             2.1<span style="font-family:宋体">用户使用手机号码作为账号注册并经短信认证确认后,即可使用本免费</span>Wi-Fi<span style="font-family: 宋体">服务。</span>
118         </p>
119         <p style="text-indent:28px;line-height:150%">
120             2.2<span style="font-family:宋体">用户申请的帐号,仅允许自己使用,该帐号不得转让或交由他人使用。</span>
121         </p>
122         <p style="text-indent:28px;line-height:150%">
123             2.3<span style="font-family:宋体">用户应妥善保管账号和密码,用户承诺对该帐号下的所有活动和事件负全部责任。如发生信息或密码泄漏等情况,用户应及时向技术服务商和公
124 
125 司报告。</span>
126         </p>
127         <p style="text-indent:28px;line-height:150%">
128             &nbsp;
129         </p>
130         <p style="text-indent:28px;line-height:150%">
131             <strong><span style="font-family:宋体">三、服务使用规范</span></strong>
132         </p>
133         <p style="text-indent:28px;line-height:150%">
134             3.1<span style="font-family:宋体">用户充分了解并同意,技术服务商和有限公司仅为用户提供公共</span>Wi-Fi<span style="font-family: 宋体">热点接入服务,
135 
136 用户应对利用本</span>Wi-Fi<span style="font-family:宋体">服务从事的所有行为及结果承担责任。</span>
137         </p>
138         <p style="text-indent:28px;line-height:150%">
139             3.2<span style="font-family:宋体">用户在申请和使用本网络服务时,应遵守国家的法律法规和互联网各项规章制度,遵守所有使用网络服务的网络协议、规定、程序和惯例,并承诺不
140 
141 会利用本服务进行任何违法或不当的活动,包括但不限于下列行为:</span>
142         </p>
143         <p style="text-indent:28px;line-height:150%">
144             3.2.1<span style="font-family:宋体">制作、复制、发布、传播含有下列内容的信息:</span>
145         </p>
146         <p style="text-indent:28px;line-height:150%">
147             <span style="font-family:宋体">(一)反对宪法所确定的基本原则的;</span>
148         </p>
149         <p style="text-indent:28px;line-height:150%">
150             <span style="font-family:宋体">(二)危害国家安全,泄露国家秘密,颠覆国家政权,破坏国家统一的;</span>
151         </p>
152         <p style="text-indent:28px;line-height:150%">
153             <span style="font-family:宋体">(三)损害国家荣誉和利益的;</span>
154         </p>
155         <p style="text-indent:28px;line-height:150%">
156             <span style="font-family:宋体">(四)煽动民族仇恨、民族歧视,破坏民族团结的;</span>
157         </p>
158         <p style="text-indent:28px;line-height:150%">
159             <span style="font-family:宋体">(五)破坏国家宗教政策,宣扬邪教和封建迷信的;</span>
160         </p>
161         <p style="text-indent:28px;line-height:150%">
162             <span style="font-family:宋体">(六)散布谣言,扰乱社会秩序,破坏社会稳定的;</span>
163         </p>
164         <p style="text-indent:28px;line-height:150%">
165             <span style="font-family:宋体">(七)散布淫秽、色情、赌博、暴力、凶杀、恐怖或者教唆犯罪的;</span>
166         </p>
167         <p style="text-indent:28px;line-height:150%">
168             <span style="font-family:宋体">(八)侮辱或者诽谤他人,侵害他人合法权益的;</span>
169         </p>
170         <p style="text-indent:28px;line-height:150%">
171             <span style="font-family:宋体">(九)含有法律、行政法规、规章、政策及规范性文件禁止的其他内容的。</span>
172         </p>
173         <p style="text-indent:28px;line-height:150%">
174             3.2.2<span style="font-family:宋体">干扰、破坏或混乱本服务及相关服务器、设备和网络。</span>
175         </p>
176         <p style="text-indent:28px;line-height:150%">
177             3.3<span style="font-family:宋体">用户同意并接受,技术服务商和有限公司有权对用户使用本</span>Wi-Fi<span style="font-family: 宋体">服务的情况进行审查
178 
179 、监督并采取相应的行动,包括但不限于中止或终止提供服务,向有关机关报告并提供用户进行违法活动的记录,技术服务商和有限公司无须因此向用户承担任何的责任。</span>
180         </p>
181         <p style="text-indent:28px;line-height:150%">
182             3.4<span style="font-family:宋体">用户了解并同意,技术服务商和有限公司有权对含有用户信息的数据库进行分析和利用,并向用户以各种方式投放各种商业性广告
183 
184 或其他任何类型的推广信息。</span>
185         </p>
186         <p style="text-indent:28px;line-height:150%">
187             3.5<span style="font-family:宋体">鉴于网络及其环境的特殊性,用户使用本</span>Wi-Fi<span style="font-family: 宋体">服务时,对于服务的可使用性、准确性、可靠性及安全性
188 
189 等,技术服务商和有限公司均不作出任何保证,因此而造成的任何损失由用户自行承担。</span>
190         </p>
191         <p style="text-indent:28px;line-height:150%">
192             &nbsp;
193         </p>
194         <p style="text-indent:28px;line-height:150%">
195             <strong><span style="font-family:宋体">四、服务中止或终止</span></strong>
196         </p>
197         <p style="text-indent:28px;line-height:150%">
198             4.1<span style="font-family:宋体">鉴于互联网服务的特殊性,技术服务商和有限公司有权随时调整、中止或终止本</span>Wi-Fi<span style="font-family: 宋体">
199 
200 服务,且无须向用户发出通知。</span>
201         </p>
202         <p style="text-indent:28px;line-height:150%">
203             4.2<span style="font-family:宋体">技术服务商和有限公司保留判定用户是否违反本协议的权利,如技术服务商和有限公司确认用户违反本协议时,
204 
205 无须向用户发出通知即有权立即对用户中止或终止服务,且无须承担任何责任。</span>
206         </p>
207         <p style="text-indent:28px;line-height:150%">
208             4.3<span style="font-family:宋体">用户同意,中止或终止服务后,技术服务商和有限公司有权收回用户的账号,且有权继续保留用户的信息及用户使用本</span>Wi-
209 
210 Fi<span style="font-family: 宋体">服务期间的所有信息。</span>
211         </p>
212         <p style="text-indent:28px;line-height:150%">
213             4.4<span style="font-family:宋体">因用户使用本</span>Wi-Fi<span style="font-family:宋体">服务存在违法行为或违反本协议的行为,给有限公司或技术服务商造
214 
215 成任何损失的,公司或技术服务商有权依据本协议向用户主张权利。</span>
216         </p>
217         <p style="text-indent:28px;line-height:150%">
218             &nbsp;
219         </p>
220         <p style="text-indent:28px;line-height:150%">
221             <strong><span style="font-family:宋体">五、隐私政策</span></strong>
222         </p>
223         <p style="text-indent:28px;line-height:150%">
224             <span style="font-family:宋体">技术服务商和有限公司保证不对外公开或向第三方提供用户个人信息及用户在使用服务时存储在本</span>Wi-Fi<span style="font-
225 
226 family: 宋体">服务系统内的非公开个人信息,但下列情况除外:经用户授权,根据法律法规、政府部门或公安、检查部门的要求,或其他任何不可归责于技术服务商和有限公司的原
227 
228 因而导致的用户信息的泄露。</span>
229         </p>
230         <p style="text-indent:28px;line-height:150%">
231             &nbsp;
232         </p>
233         <p style="text-indent:28px;line-height:150%">
234             <strong><span style="font-family:宋体">六、其他</span></strong>
235         </p>
236         <p style="text-indent:28px;line-height:150%">
237             6.1<span style="font-family:宋体">本协议适用于中华人民共和国法律。</span>
238         </p>
239         <p style="text-indent:28px;line-height:150%">
240             6.2<span style="font-family:宋体">如本协议的任一条款被视作无效,不影响其余条款的法律效力。</span>
241         </p>
242         <p style="text-indent:28px;line-height:150%">
243             6.3<span style="font-family:宋体">技术服务商和有限公司有权根据需要修改本协议,修改后的协议经技术服务商和有限公司的网站公告后即生效。
244 
245 </span>
246         </p>
247             <div class="protocol-back" onclick="hideTxt()">返回</div>
248         </div>
249     </div>
250         <div id="page3">
251             <div id="third-top">
252                 <div id="third-img-wrap"><img src="http://112.124.31.88/ngProxy//images/f74214fcbc724f259a028da2ffc776ca/20150530/1432941481655.png" id="third-img"/></div>
253                 <div id="third-txt">
254                     认证成功,&nbsp;<span id="countNum">3</span>&nbsp;秒后自动跳转到导航页,                            
255 <a href="http://www.baidu.com">点此直接进入导航页</a>
256                 </div>
257             </div>
258             <img src="http://112.124.31.88/ngProxy//images/f74214fcbc724f259a028da2ffc776ca/20150530/1432955958177.jpg" width="100%"/>
259         </div>
260         
261 
262         <script>
263             function showTxt(){
264                 $('#page1').hide();
265                 $('#page2').show();
266             }
267             function hideTxt(){
268                 $('#page1').show();
269                 $('#page2').hide();
270             }
271             function authOnline(){    
272                       var result = authenticate(4);
273                       if(result == 'succ'){
274                      $('#page1').hide();
275                              $('#page3').show();
276                              countDown();
277                       }else if(result == 'fail'){        
278                       alert("认证失败了哦~~~");
279                       }
280                         }
281                         function countDown(){
282                           var num = document.getElementById('countNum').innerText;
283                           if(num>0){
284                              num--;
285                              document.getElementById('countNum').innerText=num;
286                              setTimeout(countDown,1000);
287                           }else{
288                              window.location.href="http://www.baidu.com";
289                           }
290                         }
291 $(function(){
292 if(isPC()){
293     $("#page1,#page2,#page3").css({"width":"500px","margin":"0 auto"});
294 }
295 });
296 
297 function isPC() {
298     var userAgentInfo = navigator.userAgent;
299     var Agents = ["Android", "iPhone",
300                 "SymbianOS", "Windows Phone",
301                 "iPad", "iPod"];
302     var flag = true;
303     for (var v = 0; v < Agents.length; v++) {
304         if (userAgentInfo.indexOf(Agents[v]) > 0) {
305             flag = false;
306             break;
307         }
308     }
309     return flag;
310 }
311         </script>                            
312                             
313                             
314                             
315                            
353