|
@@ -74,10 +74,7 @@ function myCopy(inner_html) {
|
|
|
|
|
|
//自动关闭提示框
|
|
//自动关闭提示框
|
|
function MyAlert(str, sec) {
|
|
function MyAlert(str, sec) {
|
|
- let msgw, msgh, bordercolor;
|
|
|
|
- msgw = 350;//提示窗口的宽度
|
|
|
|
- msgh = 80;//提示窗口的高度
|
|
|
|
- bordercolor = "#336699";//提示窗口的边框颜色
|
|
|
|
|
|
+ let bordercolor = "#336699";//提示窗口的边框颜色
|
|
let sWidth, sHeight;
|
|
let sWidth, sHeight;
|
|
//获取当前窗口尺寸
|
|
//获取当前窗口尺寸
|
|
sWidth = document.body.offsetWidth;
|
|
sWidth = document.body.offsetWidth;
|
|
@@ -108,8 +105,6 @@ function MyAlert(str, sec) {
|
|
msgObj.style.marginLeft = "-225px";
|
|
msgObj.style.marginLeft = "-225px";
|
|
//窗口被卷去的高+(屏幕可用工作区高/2)-150
|
|
//窗口被卷去的高+(屏幕可用工作区高/2)-150
|
|
msgObj.style.top = document.body.scrollTop + (window.screen.availHeight / 2) - 150 + "px";
|
|
msgObj.style.top = document.body.scrollTop + (window.screen.availHeight / 2) - 150 + "px";
|
|
- msgObj.style.width = msgw + "px";
|
|
|
|
- msgObj.style.height = msgh + "px";
|
|
|
|
msgObj.style.textAlign = "center";
|
|
msgObj.style.textAlign = "center";
|
|
msgObj.style.lineHeight = "25px";
|
|
msgObj.style.lineHeight = "25px";
|
|
msgObj.style.zIndex = "10001";
|
|
msgObj.style.zIndex = "10001";
|
|
@@ -124,7 +119,6 @@ function MyAlert(str, sec) {
|
|
title.style.filter = "progid:DXImageTransform.Microsoft.Alpha(startX=20, startY=20, finishX=100, finishY=100,style=1,opacity=75,finishOpacity=100);";
|
|
title.style.filter = "progid:DXImageTransform.Microsoft.Alpha(startX=20, startY=20, finishX=100, finishY=100,style=1,opacity=75,finishOpacity=100);";
|
|
title.style.opacity = "0.75";
|
|
title.style.opacity = "0.75";
|
|
title.style.border = "1px solid " + bordercolor;
|
|
title.style.border = "1px solid " + bordercolor;
|
|
- title.style.height = "18px";
|
|
|
|
title.style.font = "12px Verdana, Geneva, Arial, Helvetica, sans-serif";
|
|
title.style.font = "12px Verdana, Geneva, Arial, Helvetica, sans-serif";
|
|
title.style.color = "white";
|
|
title.style.color = "white";
|
|
title.innerHTML = "提示信息";
|
|
title.innerHTML = "提示信息";
|