windows7下bcdedit出现“拒绝访问”解决办法
2011-03-06 00:14
357 查看
看着别人可以打开或关闭DIV窗口,感觉比较好奇是怎么实现的,今天也稍微研究了一下。
html 代码
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>打开关闭DIV例子</title>
<style type="text/css">
#div1 {
margin: 10px auto;
width: 300px;
height: 300px;
border: 2px #cccccc solid;
}
#div2 {
float: right;
background-color: yellow;
cursor: default;
}
#div3 {
clear: both;
margin: 50px auto;
}
</style>
<script type="text/javascript">
function openWin(){
if(!document.getElementById("div1")){
var div1 = document.createElement("div");
div1.id = "div1";
document.body.appendChild(div1);
var div2 = document.createElement("div");
div2.id="div2";
div2.onclick = closeWin;
div2.onmouseover=overDIV2;
div2.onmouseout=outDIV2;
div2.innerHTML = "DEL";
div1.appendChild(div2);
var div3 = document.createElement("div");
div3.id="div3";
div3.innerHTML="这是我们能看见的窗口,点一下DEL就消失了!";
div1.appendChild(div3);
}
}
function closeWin(){
var div=document.getElementById("div1");
if(div != null){
div.parentNode.removeChild(div);
}
}
function overDIV2(){
var div=document.getElementById("div2");
if(div != null){
div.style.backgroundColor="#FFFFFF";
}
}
function outDIV2(){
var div=document.getElementById("div2");
if(div != null){
div.style.backgroundColor="yellow";
}
}
</script>
</head>
<body>
<br>
<br>
<div align="center"><input type="button" value="打开窗口"
onclick="openWin()"></div>
<div id="div1">
<div id="div2" onclick="closeWin()" onmouseover="overDIV2()"
onmouseout="outDIV2()">DEL</div>
<div id="div3">这是我们能看见的窗口,点一下DEL就消失了!</div>
</div>
</body>
</html>
原来也是很简单的。
html 代码
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>打开关闭DIV例子</title>
<style type="text/css">
#div1 {
margin: 10px auto;
width: 300px;
height: 300px;
border: 2px #cccccc solid;
}
#div2 {
float: right;
background-color: yellow;
cursor: default;
}
#div3 {
clear: both;
margin: 50px auto;
}
</style>
<script type="text/javascript">
function openWin(){
if(!document.getElementById("div1")){
var div1 = document.createElement("div");
div1.id = "div1";
document.body.appendChild(div1);
var div2 = document.createElement("div");
div2.id="div2";
div2.onclick = closeWin;
div2.onmouseover=overDIV2;
div2.onmouseout=outDIV2;
div2.innerHTML = "DEL";
div1.appendChild(div2);
var div3 = document.createElement("div");
div3.id="div3";
div3.innerHTML="这是我们能看见的窗口,点一下DEL就消失了!";
div1.appendChild(div3);
}
}
function closeWin(){
var div=document.getElementById("div1");
if(div != null){
div.parentNode.removeChild(div);
}
}
function overDIV2(){
var div=document.getElementById("div2");
if(div != null){
div.style.backgroundColor="#FFFFFF";
}
}
function outDIV2(){
var div=document.getElementById("div2");
if(div != null){
div.style.backgroundColor="yellow";
}
}
</script>
</head>
<body>
<br>
<br>
<div align="center"><input type="button" value="打开窗口"
onclick="openWin()"></div>
<div id="div1">
<div id="div2" onclick="closeWin()" onmouseover="overDIV2()"
onmouseout="outDIV2()">DEL</div>
<div id="div3">这是我们能看见的窗口,点一下DEL就消失了!</div>
</div>
</body>
</html>
原来也是很简单的。
相关文章推荐
- windows7下bcdedit出现“拒绝访问”解决办法
- windows7下bcdedit出现“拒绝访问”解决办法
- Windows 7下SQL Server 附加数据库出现拒绝访问错误的解决办法
- Windows 7下SQL 2005附加数据库出现拒绝访问的错误的解决办法
- Windows 7下SQL 2005附加数据库出现拒绝访问的错误的解决办法
- windows 硬盘格式不一样的文件移动 导致拒绝访问 权限丢失 0字节解决办法
- Windows7下Tomcat拒绝访问 Unable to open the service 'Tomcat7'的解决问题
- Windows7下ADSL拨号出现711错误的原因和5种解决办法
- 解决SQL SERVER数据库备份时出现“操作系统错误5(拒绝访问)。BACKUP DATABASE 正在异常终止。”错误的解决办法
- 64位Windows 2008/7下配置IIS+PHP出现404.17错误的解决办法
- 在sql2005中附加数据库时出现无法打开物理文件 "F:\ajax\test.mdf"。操作系统错误 5:"5(拒绝访问。)"解决办法
- 给phpMyAdmin修改root密码后出现访问被拒绝的问题的解决办法
- Windows7下Python安装Numpy、Matplotlib以及Scipy时出现的问题以及解决办法
- 非域环境下搭建Project Server 2007后,账户新建过程及新建后出现错误:拒绝访问的解决办法
- VS20xx编译出现无法将obj文件复制到bin下,对路径bin的访问被拒绝的解决办法
- “Error opening Windows firewall: 0x80070005 拒绝访问” 的解决办法
- 在myeclipse中通过jdbc访问mysql出现拒绝访问的解决办法
- Apache安装时出现OS:拒绝访问的解决办法
- 在WINDOWS2000SERVER中出现“对指定设备、路径或文件的访问被拒绝。”的错误的解决办法。
- SQL SERVER数据库备份时出现“操作系统错误5(拒绝访问)。”错误的解决办法