A mask of the web~
2008-10-13 14:41
274 查看
this is a simple realization of mask. the code as below:
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<style type="text/css">
#mask {
position: absolute;
visibility: hidden;
background: #000;
z-index: 99999;
left: 0px;
top: 0px;
filter: alpha(opacity=80);
text-align: center;
}
</style>
<script type="text/javascript">
var o;
function showMask() {
o = document.getElementById("mask");
o.style.visibility = "visible";
o.style.height = window.screen.availHeight;
o.style.width = window.screen.availWidth;
}
function closeMask() {
o = document.getElementById("mask");
o.style.visibility = "hidden";
}
</script>
</head>
<body>
<div id="mask"><input type="button" value="close" onclick="closeMask()" /></div>
<input type="button" value="showMask" onclick="showMask()" />
</body>
</html>
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<style type="text/css">
#mask {
position: absolute;
visibility: hidden;
background: #000;
z-index: 99999;
left: 0px;
top: 0px;
filter: alpha(opacity=80);
text-align: center;
}
</style>
<script type="text/javascript">
var o;
function showMask() {
o = document.getElementById("mask");
o.style.visibility = "visible";
o.style.height = window.screen.availHeight;
o.style.width = window.screen.availWidth;
}
function closeMask() {
o = document.getElementById("mask");
o.style.visibility = "hidden";
}
</script>
</head>
<body>
<div id="mask"><input type="button" value="close" onclick="closeMask()" /></div>
<input type="button" value="showMask" onclick="showMask()" />
</body>
</html>
相关文章推荐
- The visual design of Web 2.0
- The Anatomy of a Large-Scale Hypertextual Web Search Engine
- XML Files - The Birth of Web Services 笔记 (一)
- 2010年7月28日_周三_Working with AJAX capabilities of the Web ADF_overview
- The language of the web --Head First into HTML and CSS Chapter 1
- Rails Web App Learning in action (3) ---the basic version of students selective courses Contents
- error -27257: Pending web_reg_save_param/reg_find/create_html_param[_ex] request(s) detected and reset at the end of iteration number 1
- how to extend the base functionality of standard web controls - by Venugopal Mallarapu
- The pitfalls of allowing file uploads on your web
- SpringMVC+idea中web.xml文件的The content of element type "web-app" must match问题
- How to Fix “HTTP Error 403.14 – Forbidden The Web server is configured to not list the contents of this directory”
- What events are fired as part of the ASP.NET System.Web.UI.Page lifecycle?
- How browsers work--Behind the scenes of modern web browsers (前端必读)
- How browsers work--Behind the scenes of modern web browsers
- The Semantic Web : A Guide to the Future of XML, Web Services, and Knowledge Management
- How to read the contents of a remote web page
- web.xml配置bug之提示The content of element type "web-app" must match "(icon?,display- name?,description?,distributable?,
- 【转载】How browsers work--Behind the scenes of modern web browsers (前端必读)
- Determining the informational, navigational and transactional intent of web queries
- 异常:Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details