改写js原装的alert样式
1.将下面的js代码单独到一个js文件中,然后在页面中引用
AlertDialog.js
//改写js原装的alert样式
var t;
var timeclose = 0;
var showBackTime = 0;
var showTime; window.alert = function (s, a, b, c) {
if (s.indexOf("操作失败:[object Object]") >= 0) {
return;
}
if (s == "out") {
return;
}
var d = "";
var e = false;
s = s.replace("'", " ");
if (s == "request error") {
s = "请求失败,请刷新页面或重试";
e = true;
}
if (s.indexOf("商品已成功加入购物车") > -1) {
s += "<br /><a class=\"gdtit\" href=\"javascript:;\"><input name=\"btnbutton\" id=\"hwlGo1332\" type=\"button\" class=\"butn5\" onclick=\"goShoppingFromCheck(5)\" /></a> <a class=\"gdtit\" href=\"javascript:;\"><input name=\"btnbutton\" type=\"button\" id=\"hwlGo1333\" class=\"butn17\" onclick=\"CloseAlter()\" /></a>"
}
d += "<table cellspacing=\"0\" cellpadding=\"0\" align=\"center\"><tbody><tr><td>";
if (a == 1) {
d += "<span class=\"pop_c4\"></span>";
} else {
d += "<span class=\"pop_c3\"></span>";
}
d += "</td><td class=\"align-vm align-tl lh25\">" + s + "</td></tr></tbody></table>";
$("#title").html("- 系统提示 -");
$("#clearing").html("");
$("#gray").html("");
$("#ErrorShow").html(d);
if (s.indexOf("<script>") == -1) {
$("#showError").show();
ShowBack();
}
if (b != null) {
if (b == 1) {
$("#closeAlertSp").attr('onclick', '').click(function () {
CloseAlter(1);
});
} else {
$("#closeAlertSp").attr('onclick', '').click(function () {
CloseAlter(b);
});
}
}
if (c) {
setTimeout(function () {
CloseAlter();
},
c);
}
timeclose = -2;
SettimeCloseAlter();
};
function ShowBack() {
SetShowBack();
$("#greybackground").show();
} function SetShowBack() {
var a = $(document).height();
var b = $(document).width();
var c = document.documentElement.clientWidth == 0 ? document.body.clientWidth : document.documentElement.clientWidth;
var d = document.documentElement.scrollLeft == 0 ? document.body.scrollLeft : document.documentElement.scrollLeft;
var e = document.documentElement.scrollTop == 0 ? document.body.scrollTop : document.documentElement.scrollTop;
$("#greybackground").css({
"opacity": "0.5",
"height": a,
"width": b + d
});
showTime = setTimeout(SetShowBack, 1000);
}
function HideBack() {
$("#greybackground").hide();
timeclose = 0;
clearTimeout(showTime);
} function CloseAlter(a) {
$("#ErrorShow").html("");
$("#showError").hide();
HideBack();
timeclose = 0;
clearTimeout(t);
if (a == 1) {
window.location.href = window.location.href;
return false;
} else if (a != "" && a != null) {
window.location.href = a;
return false;
}
} function SettimeCloseAlter() {
if (timeclose < 0) { } else if (timeclose < 3) {
t = setTimeout(SettimeCloseAlter, 800);
timeclose++;
} else {
CloseAlter();
timeclose = 0;
}
}
2.html代码记得引用Jquery库
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css">
#showError {
left: 50%;
margin-left: -200px !important;
margin-top: -150px !important;
position: fixed;
top: 50%;
z-index: 9999;
}
.pop_new {
clear: both;
position: relative;
width: 492px;
z-index: 2;
}
.pop_new .pop_close {
position: absolute;
right: 0;
top: 0;
z-index: 3;
}
a {
color: #666;
outline: medium none;
text-decoration: none;
}
a img {
border: 0 none;
} img {
font-size: 12px;
vertical-align: middle;
}
.pop_box {
float: left;
margin-top: 15px;
width: 477px;
}
.pop_box .title {
background-color: #336601;
color: #fff;
font-size: 14px;
font-weight: bold;
height: 33px;
line-height: 33px;
padding-left: 8px;
} .pop_box ul {
margin: 0;
padding: 0;
} ul, li {
margin: 0;
padding: 0;
vertical-align: bottom;
} .pop_box .detail {
background-color: #fff;
border-left: 3px solid #669934;
border-right: 3px solid #669934;
float: left;
padding: 30px 35px;
width: 401px;
} table {
border-collapse: collapse;
border-spacing: 0;
}
.lh25 {
line-height: 25px;
} .align-tl {
text-align: left;
} .align-vm {
vertical-align: middle;
} td {
font-family: Arial;
} .pop_c3 {
background: rgba(0, 0, 0, 0) url("/Content/images/pop_sigh.gif") no-repeat scroll 0 0;
} .pop_c3, .pop_c4 {
display: inline-block;
height: 50px;
padding-bottom: 5px;
padding-right: 15px;
width: 50px;
}
.pop_box .clearing {
border-left: 3px solid #669934;
border-right: 3px solid #669934;
float: left;
width: 471px;
}
.pop_c4 {
background: rgba(0, 0, 0, 0) url("/Content/images/pop_yes.gif") no-repeat scroll 0 0;
}
.pop_box .gray {
background-color: #e0ebd7;
border-bottom: 3px solid #669934;
border-left: 3px solid #669934;
border-right: 3px solid #669934;
float: left;
padding: 0 6px;
width: 459px;
}
</style>
<script src="Scripts/jquery-1.8.2.min.js"></script>
<script src="Content/js/AlertDialog.js"></script>
</head>
<body>
<!--alert弹出窗 开始 alert(a,b) a表示提示信息,b有两个值:当b等于0的时候是警告图片,当b等于1的时候是成功的图片-->
<a onclick="alert('123','1')">测试</a>
<div style="top: 40%; display: none;" id="showError" class="pop_new">
<div class="pop_close">
<a style="cursor: pointer" onclick="CloseAlter()" data-type="closeAlter" id="closeAlertSp">
<img width="37" height="37" class="ie6png" src="/Content/images/pop_close.png">
</a>
</div>
<div style="background-color: rgb(255, 255, 255);" class="pop_box">
<ul id="title" class="title">- 系统提示 -</ul>
<ul id="ErrorShow" class="detail"><table cellspacing="0" cellpadding="0" align="center"><tbody><tr><td><span class="pop_c3"></span></td><td class="align-vm align-tl lh25">123</td></tr></tbody></table></ul>
<ul id="clearing" class="clearing"></ul>
<ul id="gray" class="gray"></ul>
</div>
</div>
</body>
</html>
这是效果图
当b等于0的图片
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAk8AAAEICAIAAADJEIdwAAATAklEQVR4nO3d349U9f0HYJZeeNN4Ua9MiH+ATTVZMHhB/CZqYimhkJC0xha2N6xK0pVsCYmSlqYkUpoIjcmKBHWLCF+RSBcTZHVtGtGYQiu/ihFJhETIJro3KyoRd2ZOL2Z35szssLtnZnH28znPk9cFzM45czaQ9yvn58y7BgCxm3cMAGI3LwGA2Gk7AOKn7QCIn7YDIH7aDoD4aTsA4qftAIiftgMgftoOgPhpOwDip+0AmMaFy2eG/nNw39COXW/8cd/QjqH/HLxw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5jbQdABoFOY20HQAaBTmNtB0AGgU5jbQdABoFOY20HQAaBTmNtB0AGgU5jbQdABoFOY20HQAaBTmNtB0AGgU5jbQdABoFOY20HQAaBTmNtB0AGgU5jbQdABoFOY20HQAaBTmNtB0AGgU5jbQdABoFOY20HQAaBTmNtB0AGgU5jbQdABoFOY20HQAaBTmNtB0AGgU5jbQdABoFOY20HQAaBTmNtB0AGgU5jbQdABoFOY20HQAaBTuPw2k5EROZC2l0L2Wg7ERFpJu2uhWy0nYiINJN210I2wbQdADRN2wEQP20HQPy0HQDx03YAxE/bARA/bQdA/LQdAPHTdgDET9sBED9tB0D8tB0A8dN2AMRP2wEQP20HQPy0HQDx03YAxE/bARA/bQdA/LQdAPHTdgDET9sBED9tB0D8tB0A8dN2AMRP2wEQP20HQPy0HQDx03YAxE/bARA/bQdA/LQdAPHTdgDET9sBED9tB0D8tB0A8dN2AMRP2wEQP20HQPy0HQDx03YAxE/bARA/bQdA/LQdAPHTdgDET9sBED9tB0D8tB0A8dN2AMRP2wEQP20HQPy0HQDx03YAxE/bARA/bQdA/LQdAPHTdgDET9sBED9tB0D8tB0A8dN2AMRP2wEQP20HQPy0HQDx03YAxE/bARA/bQdA/LQdAPHTdgDET9sBED9tB0D8tB0A8dN2AMRP2wEQP20HQPy0HQDx03YAxE/bARA/bQdA/LQdAPHTdgDET9sBEL//AfbFWLqGOMG8AAAAAElFTkSuQmCC" alt="" />
当b等于1的图片
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlsAAAEiCAIAAABBYoCyAAAU9klEQVR4nO3d649V9b0HYLEvfNP4Fxj/gaYx4RI8pvrKF6XaYmLSGitQc8JwvICcKSHeEJXKxdqRUzvqVMYROWiRdpgpGYcDRygcCsIoMDo5Z0QikdYrEkEuggq/82IxizV7L/YMc9kb1u958nkBe6+99t7J5PvJuu7LAgAQwmW1/gAAcFHQiAAQgkYEgIRGBIAQNCIAJDQiAISgEQEgoREBIASNCAAJjQgAIWhEAEhoRAAIQS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CIAJDQiAISgEQEgoREBIASNCAAJjQgAIWhEAEhoRAAIQSMCQEIjAkAIGhEAEhoRAELQiACQ0IgAEIJGBICERgSAEDQiACQ0IgCEoBEBIKERASAEjQgACY0IACFoRABIaEQACEEjAkBCIwJACBoRABIaEQBC0IgAkNCIABCCRgSAhEYEgBA0IgAkNCIAhKARASChEQEgBI0IAAmNCAAhaEQASGhEAAhBIwJAQiMCQAgaEQASGhEAQtCIAJDQiAAQgkYEgIRGBIAQNCIAJDQiAISgEQEgoREBIASNCAAJjQgAIWhEAEhoRAAIQSMCQEIjAkAIGhEAEhoRAEII4f8Bl23f2KJEdmwAAAAASUVORK5CYII=" alt="" />
这是需要的图片:
改写js原装的alert样式的更多相关文章
- 【转】bootbox自定义dialog、confirm、alert样式,以及基本设置方法setDefaults中可用参数
<html> <head> <meta charset="utf-8"> <meta name="viewport" ...
- 用JS控制CSS基本样式
详见:http://blog.yemou.net/article/query/info/tytfjhfascvhzxcytp29 用JS控制CSS基本样式的方法 CSS code .class1 { ...
- 使用jquery.PrintArea.js打印网页的样式问题
在使用jquery.PrintArea.js打印局部网页样式的时候,发现样式打印不出来,在网上找了好多资料,整理一下分享给大家 一.先看看css的引用文件方式 1.直接在内部的元素中使用”style” ...
- 网站开发进阶(二十)JS中window.alert()与alert()的区别
JS中window.alert()与alert()的区别 前言 alert与window.alert没什么区别,如果有人觉得有区别,那就来解释一下:所有以window.开始的语句,都可以直接把wind ...
- js中获取css样式属性值
关于js中style,currentStyle和getComputedStyle几个注意的地方 (1)用js的style只能获取元素的内联样式,内部样式和外部样式使用style是获取不到的.针对css ...
- JS获取内联样式
JS获取内联样式 //获取内联样式 function getCss(obj,attr){//obj:对象,name:style属性 if(obj.currentStyle) { return obj. ...
- Vue.js style(内联样式)
Vue.js style(内联样式) 我们可以在 v-bind:style 直接设置样式: <div id="app"> <div v-bind:style=&q ...
- js中尺寸类样式
js中尺寸类样式 一:鼠标尺寸类样式 都要事件对象的配合 Tip:注意与浏览器及元素尺寸分开,鼠标类尺寸样式都是X,Y,浏览器及元素的各项尺寸时Height,Width 1:检测相对于浏览器的位置:e ...
- 原生js去除行内样式
概述 今天我用js给dom元素设置样式,碰到了一些问题,记下来供以后开发时参考,相信对其他人也有用. 心得 js加上class: $dom.classList.add('some-class'); j ...
随机推荐
- 高性能JavaScript 编程实践
前言 最近在翻<高性能JavaScript>这本书(2010年版 丁琛译),感觉可能是因为浏览器引擎的改进或是其他原因,书中有些原本能提高性能的代码在最新的浏览器中已经失效.但是有些章节的 ...
- a版本冲刺第一天
队名:Aruba 队员: 黄辉昌 李陈辉 林炳锋 鄢继仁 张秀锋 章 鼎 学号 昨天完成的任务 今天做的任务 明天要做的任务 困难点 体会 408 学习测试文档的编写 继续学习并借鉴,开始着手写 ...
- python远程连接paramiko 模块和堡垒机实现
paramiko使用 paramiko模块是基于python实现了SSH2远程安全连接,支持认证和密钥方式,可以实现远程连接.命令执行.文件传输.中间SSH代理功能 安装 pip install pa ...
- VsFtpd服务配置简明笔记
Ftp服务是最常用的文件传输方式,把配置步骤记录下来,以备将来使用. 1.用YUM安装VsFtpd服务:[root@Redis usr]# yum install vsftpd 2.安装完成后启动Vs ...
- BZOJ3489: A simple rmq problem
设$i$的前驱为$p_i$,后继为$q_i$,把询问看成点$(L,R)$,有贡献的$i$满足$L\in(p_i,i]$且$R\in[i,q_i)$,询问的就是覆盖这个点的矩形的最大值.那么可以用可持久 ...
- asp.net读取execl模板并填充数据,关闭进程
<head runat="server"> <title></title> <script src="Scripts/jquer ...
- Logstash-5.0同步.json文件到ElasticSearch-5.0配置文件
logstash/conf/input-file.conf内容如下: input { file { #监听文件的路径. path => ["E:/data_json/*.json&qu ...
- 安全测试及B/S C/S安全性比较
一.用户认证安全的测试要考虑问题: 1. 明确区分系统中不同用户权限 2. 系统中会不会出现用户冲突 3. 系统会不会因用户的权限的改变造成混乱 4. ...
- 1JavaEE应用简介----青软S2SH(笔记)
这本书主要是讲解Struts2,spring,Hibernate框架的, 因为工作中用的较多的是SpringMVC,Struts2用的较少,所以想系统学习一下,就买了这本书. 这本书是青软的,虽然是培 ...
- iphone如何导出微信聊天记录到电脑?
有个小美眉买了个iphone,但发现自己就是一小白,很多功能都不会用,微信倒是用得挺上手的,可以晚上聊到三四点,流量直接飙升500MB.最近她说手机太卡了,问ytkah帮她整一下.拿起她的IPhone ...