大家来帮忙看看哪错了
<script language="javascript">function showContent()
{
for (var i = 1;i < 4;i++)
{
document.getElementById("List" + i).onmouseover = function()
{
document.getElementById("Layer" + i).style.display = 'none';
}
document.getElementById("List" + i).onmouseout = function()
{
document.getElementById("Layer" + i).style.display = 'block';
}
}
}
</script>
<body onload="showContent();">
<div>
<ul>
<li><div id="List1">aaaaaaaaaaa</div></li>
<li><div id="List2">bbbbbbbbbbb</div></li>
<li><div id="List3">ccccccccccc</div></li>
</ul>
<div>
<div id="Layer1">111111111111</div>
<div id="Layer2">222222222222</div>
<div id="Layer3">333333333333</div>
</div>
</div>
</body>