求一个带滑动效果的下拉导航

gaozhen1990 2010-09-05 10:13:08
鼠标移到导航上面去, 滑出一个下拉导航,而不是立即显示的那种。 要CSS和js 的。

谁有, 谢谢啊。```
...全文
54 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
银狐被占用 2010-09-06
  • 打赏
  • 举报
回复
把<%=G_ImagePath%>替换成images就可以了。
银狐被占用 2010-09-06
  • 打赏
  • 举报
回复
刚才的少个函数
function getobj(s){
return document.getElementById(s);
}
银狐被占用 2010-09-06
  • 打赏
  • 举报
回复
<script>
function menuShow(obj,maxh,obj2)
{
if(obj.style.pixelHeight<maxh)
{
obj.style.pixelHeight+=maxh/20;
obj.filters.alpha.opacity+=5;
if(obj.style.pixelHeight==maxh/10)
obj.style.display='block';
myObj=obj;
myMaxh=maxh;
myObj2=obj2;
setTimeout('menuShow(myObj,myMaxh,myObj2)','5');
}
}
function menuHide(obj,maxh,obj2)
{
if(obj.style.pixelHeight>0)
{
if(obj.style.pixelHeight==maxh/20)
obj.style.display='none';
obj.style.pixelHeight-=maxh/20;
obj.filters.alpha.opacity-=5;
myObj=obj;
myMaxh=maxh
myObj2=obj2;
setTimeout('menuHide(myObj,myMaxh,myObj2)','5');
}
else
if(whichContinue)
whichContinue.click();
}
function menuChange(obj,maxh,obj2)
{
if(obj.style.pixelHeight)
{
getobj("arrow").src='<%=G_ImagePath%>/plus.gif';
menuHide(obj,maxh,obj2);
whichOpen='';
whichcontinue='';
}
else
if(whichOpen)
{
whichContinue=obj2;
whichOpen.click();
}
else
{
getobj("arrow").src='<%=G_ImagePath%>/nofollow.gif';
menuShow(obj,maxh,obj2);
whichOpen=obj2;
whichContinue='';
}
}
var whichOpen='';
var whichContinue='';
</script>
<span style="cursor:hand; color:red;" id="menuTitle1" onmouseover="menuChange(menu1,80,menuTitle1);" onmouseout="menuChange(menu1,80,menuTitle1);">参与抽奖<img src="<%=G_ImagePath%>/plus.gif" id="arrow" border="0"></span>
<span style="padding-top:10px;width:90%;height:0px;filter:alpha(Opacity=0);overflow:hidden; position:inherit; left:0px; text-align:right; display:none;" id=menu1>
姓名:<input type="text" name="tname" style="width:100px;" maxlength="10"><br>
电话:<input type="text" name="ttel" style="width:100px;" maxlength="15"><br>
身份证号:<input type="text" name="tcard" style="width:100px;" maxlength="18"><br>
</span>

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧