<!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=gb2312" />
<title>CSS滑动门技术-www.56rr.cn</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
.Mainbox{ width:760px; margin:5px auto;}
.body01{ width:435px; float:left;height:22px;}
.menuA2 {}
.menuA2 ul{ margin:0; padding:0}
.menuA2 li{ float:left; list-style.:none;}
.menuA2 .active{
width:87px;
padding:6px 0 2px;
cursor:pointer;
text-align:center;
background-color: #6699FF;
}
.menuA2 .normal{background-color: #6699FF;width:87px; padding:6px 0 2px;cursor:pointer; text-align:center}
.menuA2 .over{background-color: #6699FF;width:87px; padding:6px 0 2px;cursor:pointer; text-align:center}
.menuA2 li a{text-decoration:none}
.menuA2 li a:hover{text-decoration:underline}
.content1{text-align: left; width:425px; float:left; border:1px solid #ccc; border-top:none;padding:0 5px }
.content1 .pic{float:left; line-height:200%;}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
</head>
<script language="javascript" type="text/javascript">
function MotionChange(id)
{
for(var i=1;i<=3;i++)
{
if(i==id)
{
document.getElementById("MotionChange"+i).style.display="block";
}
else
document.getElementById("MotionChange"+i).style.display="none";
}
}
</script>
<body>
<div class="Mainbox">
<div class="body01">
<div id="MotionChange1" style="display:block">
<div class="menuA2">
<ul>
<li class="active" onmouseover="MotionChange(1)"><a href="#">001</a> _fcksavedurl=""#">001</a>" _fcksavedurl=""#">001</a>" </li>
<li class="normal" onmouseover="MotionChange(2)"><a href="#">002</a> </li>
<li class="normal" onmouseover="MotionChange(3)"><a href="#">003</a> </li>
</ul>
</div>
<div class="content1" id="onearea">
<div class="pic"> 001 </div>
</div>
</div>
<div id="MotionChange2" style="display:none">
<div class="menuA2">
<ul>
<li class="normal" onmouseover="MotionChange(1)"><a href="#">001</a> </li>
<li class="active" onmouseover="MotionChange(2)"><a href="#">002</a> </li>
<li class="normal" onmouseover="MotionChange(3)"><a href="#">003</a> </li>
</ul>
</div>
<div class="content1" id="onearea">
<div class="pic"> 002 </div>
</div>
</div>
<div id="MotionChange3" style="display:none">
<div class="menuA2">
<ul>
<li class="normal" onmouseover="MotionChange(1)"><a href="#">001</a> </li>
<li class="normal" onmouseover="MotionChange(2)"><a href="#">002</a> </li>
<li class="active" onmouseover="MotionChange(3)"><a href="#">003</a> </li>
</ul>
</div>
<div class="content1" id="onearea">
<div class="pic"> 003 </div>
</div>
</div>
</div>
</div>
</body>
</html>
来源:https://www.cnblogs.com/fuchifeng/archive/2008/12/01/1344994.html