- 爱易网页
-
JavaSript
- 鼠标怎么移动到通过onMOUSEOVER和onmouseout控制显示的div1上
日期:2014-05-16 浏览次数:20382 次
鼠标如何移动到通过onMOUSEOVER和onmouseout控制显示的div1上
<script language="javascript" type="text/javascript">
function seashowtip(flag,number)
{
if(number ==1)
{
var my_div_Solution = document.getElementById("div_Solution");
if(flag)
{
my_div_Solution.style.display = "block";
}
else
{
my_div_Solution.style.display = "none";
}
}
}
<BODY>
<DIV>
<UL>
<li><a href="1.aspx" onmouseover="seashowtip(true,1)" onmouseout="seashowtip(false,1)">1</a>
<div id="div1" style="display: none; position: absolute; height:auto; width: 90px;
top: 87px; left: 338px; background-color: White;">
<ul style="margin-left: 0px; margin-top: 5px; text-align: left;">
<li style="margin-left: 0px; text-align: left;">A</li>
<li style="margin-left: 0px; text-align: left;">B</li>
<li style="margin-left: 0px; text-align: left;">C</li>
</ul>
</div>
</li>
</UL>
</DIV>
</BODY>