js弹出窗口之弹出层的小例子_javascript技巧
程序员文章站
2022-04-02 15:59:28
...
[html]
弹出窗口
";
var sbar = document.getElementById("statusbar");
sbar.style.marginTop = (parseInt(h)-60) + "px";
popUp.style.visibility = "visible";
}
function hidePopup(){
var popUp = document.getElementById("popupcontent");
popUp.style.visibility = "hidden";
}
复制代码 代码如下:
var sbar = document.getElementById("statusbar");
sbar.style.marginTop = (parseInt(h)-60) + "px";
popUp.style.visibility = "visible";
}
function hidePopup(){
var popUp = document.getElementById("popupcontent");
popUp.style.visibility = "hidden";
}
content
推荐阅读
-
js window.open弹出新的网页窗口_javascript技巧
-
js下弹出窗口的变通_javascript技巧
-
弹出窗口并且此窗口带有半透明的遮罩层效果_javascript技巧
-
js window.open弹出新的网页窗口_javascript技巧
-
js弹出层包含flash 不能关闭隐藏的2种处理方法_javascript技巧
-
js+css 实现遮罩居中弹出层(随浏览器窗口滚动条滚动)_javascript技巧
-
js多级树形弹出一个小窗口层(非常好用)实例代码_javascript技巧
-
弹出窗口并且此窗口带有半透明的遮罩层效果_javascript技巧
-
CSS+JS实现点击文字弹出定时自动关闭DIV层菜单的方法_javascript技巧
-
单击浏览器右上角的X关闭窗口弹出提示的小例子_javascript技巧