<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
*
{
margin:0px;
padding:0px;
} .all
{
width:310px;
height:50px;
border:#03F 1px solid;
}
.left
{
width:250px;
height:50px;
border:#F00 1px solid;
}
.right
{
width:50px;
height:50px;
border:#0F3 1px solid;
background-color:#CCC;
margin-left:255px;
}
.yincang
{
height:200px;
width:200px;
border:#30F 1px solid;
background-color:#06F;
margin-top:30px;
visibility:hidden; }
</style>
</head> <body>
<div class="all">
<div class="left">
<div class="right" onmouseover="xianshi()" onmouseout="yincang()">>><div class="yincang" id="right"></div>
</div> </div> </div> </body>
</html>
<script type="text/javascript">
function xianshi()
{
var a =document.getElementById("right"); if(a.style.visibility="hidden")
{
a.style.visibility="visible";
} }
function yincang()
{
var b =document.getElementById("right"); if(b.style.visibility="visible")
{
b.style.visibility="hidden"; } } </script>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
*
{
margin:0px;
padding:0px;
}
.diyiceng
{
width:500px;
height:300px;
border:#9C6 1px solid;
margin:-300px 0px 0px 100px;
background-color:yellow;
visibility:visible;
}
.dierceng
{
width:500px;
height:300px;
border:#9C6 1px solid;
background-color:green;
visibility:hidden;
margin-left:100px;
}
.disanceng
{
width:500px;
height:300px;
border:#9C6 1px solid;
margin-top:-300px;
margin-left:200px;
background-color:blue;
visibility:hidden;
}
</style>
</head> <body>
<div style="width:600px; height:300px; border:#00F 1px solid">
<div style="width:100px; height:300px; border:#F00 1px solid">
<input type="button" value="第一层" onclick="xianshiyi()"/><br />
<input type="button" value="第二层" onclick="xianshier()"/><br />
<input type="button" value="第三层" onclick="xianshisan()"/> </div>
<!--第一层为黄色 第二层为绿色 第三层为蓝色-->
<div class="diyiceng" id="diyiceng">
<div class="dierceng" id="dierceng"></div>
<div class="disanceng" id="disanceng"></div> </div> </div> </body>
</html>
<script type="text/javascript">
function xianshiyi()
{
var a = document.getElementById("dierceng");
var b = document.getElementById("disanceng");
var c = document.getElementById("diyiceng"); if(c.style.visibility="hidden")
{
c.style.visibility="visible";
a.style.visibility="hidden";
b.style.visibility="hidden"; } }
function xianshier()
{
var a = document.getElementById("dierceng");
var b = document.getElementById("disanceng");
if(a.style.visibility="hidden")
{ a.style.visibility="visible";
b.style.visibility="hidden";
}
}
function xianshisan()
{
var b=document.getElementById("disanceng");
if(b.style.visibility="hidden")
{
b.style.visibility="visible";
} } </script>

最新文章

  1. jquery点击改变class并toggle
  2. DTD 知识归纳总结
  3. php调试利器 -- xdebug
  4. 新建共享,NTFS权限设置
  5. HDOJ 3466 Proud Merchants
  6. CentOS 6.3安装配置LAMP服务器(Apache+PHP5+MySQL)
  7. 龙芯3A上V8的编译与测试
  8. [转]PT_DENY_ATTACH
  9. Linux常用目录结构
  10. Eclipse常用不常用快捷键
  11. Tensorflow源码解析1 -- 内核架构和源码结构
  12. mysql数据库修改数据表引擎的方法
  13. vs2008单元测试
  14. Stencil 基础
  15. simhash
  16. C# 装箱
  17. nginx rewrite flag
  18. opencv学习笔记霍夫变换——直线检测
  19. 【BZOJ】【1072】【SCOI2007】排列perm
  20. jetBrains 插件开发第一课-- 在主菜单栏新增一个菜单

热门文章

  1. Efficient GPU Screen-Space Ray Tracing
  2. 〔原创〕Ubuntu Linux Server 9.04 安装全程图解
  3. linux ubuntu下abaqus-6.14安装破解完全指南
  4. poj 1284 Primitive Roots(原根+欧拉函数)
  5. Python工作日类库Busines Holiday介绍
  6. ocx注册
  7. vue - .babelrc
  8. 算法笔记_053:最优二叉查找树(Java)
  9. Android NDK学习记录(一)
  10. RxJava API使用示例