|
- /* 设置成js文件可全局调取,已包括CSS布局及div,可随意修改 */
- /* 升平网络 sp_c1_ad.js */
- /* 弹窗 */
- document.write("<style>");
- document.write(".sp_c1_mianze_mask{position:fixed;left:0;top:0;right:0;bottom:0;background-color:rgba(0,0,0,.7);z-index:999;}");
- document.write(".sp_c1_mianze_fixed{position:fixed;left:50%;top:50%;margin:-185px 0 0 -165px;padding:20px;background-color:#;z-index:1000;width:300px;height:auto;text-align:center;border-radius:6px;color:#333333}");
- document.write(".sp_c1_mianze_fixed .hd{font-size:18px;padding:0;font-weight:700;background-color:#fff;border-radius:6px 6px 0 0;}");
- document.write(".sp_c1_mianze_fixed .bd{font-size:16px;line-height:20px;}");
- document.write(".sp_c1_mianze_fixed .bd .bold {background-color:#fff;border-radius:0 0 6px 6px;}");
- document.write(".sp_c1_mianze_fixed .bd a:link{text-decoration: none;}");
- document.write(".sp_c1_mianze_fixed .bd_img{text-align: center;width:100%;height:300px;line-height:1px;background:url(https://gw.alicdn.com/tfs/TB1GWzQioT1gK0jSZFhXXaAtVXa-120-120.png) no-repeat;background-size:100% 100%;-moz-background-size:100% 100%;border-radius:10px;}");
- document.write(".sp_c1_mianze_fixed .btn{display:block;font-size:25px;width:30px;height:30px;line-height:28px;color:#FFFFFF;background-color:#FF9501;border-radius:50px;margin-left:135px;}");
- document.write("</style>");
- document.write('<div class="sp_c1_mianze_fixed" id="sp_c1_mianze_fixed">');
- document.write(' <div class="hd"></div>');
- document.write(' <div class="bd">');
- document.write(' <div class="bold"></div>');
- document.write(' <a href="javascript:;" target="_blank"><div class="bd_img"> </div></a>');
- document.write(' <a href="javascript:divhidden();" class="btn">×</a>');
- document.write(' </div>');
- document.write('</div>');
- document.write('<div class="sp_c1_mianze_mask" id="sp_c1_mianze_mask"></div>');
-
- function divhidden(){
- document.getElementById("sp_c1_mianze_fixed").style.display="none";
- document.getElementById("sp_c1_mianze_mask").style.display="none";
- setCookie('dialog','hide');
- }
- function setCookie(name,value){
- var Days = 1;
- var exp = new Date();
- exp.setTime(exp.getTime() + Days*24*60*60*1000);
- document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
- var strsec = getsec(time);
- var exp = new Date();
- exp.setTime(exp.getTime() + strsec*1);
- document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
- }
复制代码 |
|