html我设置div1的onmouseover后div2渐显,div1的onmouseout后div2隐藏,为何没效果??
html我设置div1的onmouseover后div2渐显,div1的onmouseout后div2隐藏,F12运行后,第一次onmouseover后div2显示并且o...
html我设置div1的onmouseover后div2渐显,div1的onmouseout后div2隐藏,F12运行后,第一次onmouseover后div2显示并且onmouseout后div2隐藏了,但是我再次div1上面onmouseover,div2就不再显示了,何故??
</style>
<script src="file:///C|/Documents and Settings/Administrator/Application Data/Adobe/Dreamweaver CS5/zh_CN/Configuration/Temp/Assets/eam93.tmp/SpryEffects.js" type="text/javascript"></script>
<script type="text/javascript">
function MM_effectAppearFade(targetElement, duration, from, to, toggle)
{
Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
}
function MM_showHideLayers() { //v9.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3)
with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
</script>
</head>
<body>
<div id="apDiv1" onmouseover="MM_effectAppearFade('apDiv2', 300, 0, 100, false)" onmouseout="MM_showHideLayers('apDiv2','','hide')"></div>
<div id="apDiv2"></div>
</body> 展开
</style>
<script src="file:///C|/Documents and Settings/Administrator/Application Data/Adobe/Dreamweaver CS5/zh_CN/Configuration/Temp/Assets/eam93.tmp/SpryEffects.js" type="text/javascript"></script>
<script type="text/javascript">
function MM_effectAppearFade(targetElement, duration, from, to, toggle)
{
Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
}
function MM_showHideLayers() { //v9.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3)
with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
</script>
</head>
<body>
<div id="apDiv1" onmouseover="MM_effectAppearFade('apDiv2', 300, 0, 100, false)" onmouseout="MM_showHideLayers('apDiv2','','hide')"></div>
<div id="apDiv2"></div>
</body> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询