html 中利用js调用隐藏div模仿对话框小例
<html>
<head>
<script>
function locking(){
document.all.ly.style.display="block";
document.all.ly.style.width=document.body.clientWidth;
document.all.ly.style.height=document.body.clientHeight;
document.all.Layer2.style.display='block';
}
function Lock_CheckForm(theForm){
document.all.ly.style.display='none';document.all.Layer2.style.display='none';
return false;
}
</script>
</head>
<body>
<p align="center">
<input type="button" value="系统锁定" onclick="locking()">
</p>
<div id="ly" style="position: absolute; top: 0px; filter: alpha(opacity=60); background-color: #F5F5F5;
z-index: 2; left: 0px; display: none;">
</div>
<!-- 浮层框架开始 -->
<div id="Layer2" align="center" style="position: absolute; z-index: 3; left: expression((document.body.offsetWidth-540)/2); top: expression((document.body.offsetHeight-170)/2);
background-color: #fff; display: none;" >
<table width="540" border="0" cellpadding="0" cellspacing="0" style="border: 0 solid #e7e3e7;
border-collapse: collapse">
<tr>
&nbs
相关文档:
1:style、style.cssText及style.position,style.left等CSS样式的各个属性
如:
var section=document.createEleme ......
创新,云计算,web2.0,还极有可能web3.0、web4.0...请扪心自问,有创新吗?IT够混乱吗?也许有些人不承认,他们只会说那些是最先进的技术。真的如此?真实的情况是他们想搅乱这个世界,趁浑水摸鱼,也就是想乱世出英雄而已。
很多人应该知道,web应用的那 ......
getElementById getElementsByName getElementsByTagName 大概介绍
getElementById , getElementsByName ,getElementsByTagName
byid只是得到单个对象 后两个是得到集合,
getElementById 的用法
<a id="link1" name="link1" href=http://homepage.yesky.com> ......
\webapps\test 路径下ThreeParams.html:
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>TreeParams</title>
</head>
<body>
<form method="get" onsubmit="return true" name="form1" action="/test/tp">
<tabl ......
匹配中文字符的正则表达式: [u4e00-u9fa5]
评注:匹配中文还真是个头疼的事,有了这个表达式就好办了
匹配双字节字符(包括汉字在内):[^x00-xff]
评注:可以用来计算字符串的长度(一个双字节字符长度计2,ASCII字符计1)
匹配空白行的正则表达式:ns* ......