<style type="text/css">
<!--
.memu{width:100px; height:25px; background:#CCC; }
.memu_top{width:100px; height:24px;text-align:center; line-height:24px;}
.memu_bottom{width:100px; position:absolute; background-color:#FFF; display:none}
-->
</style>
<script type="text/javascript">
$().ready(function(){
$('.memu').mousemove(function(){$(this).children('.memu_bottom').show()})
$('.memu').mouseout(function(){$(this).children('.memu_bottom').hide()})
})
</script>
<div class="memu">
<div class="memu_top">菜单</div>
<div class="memu_bottom">
dasdasdas<br />
dasdasd<br />
dasdasd<br />
sdasdasd
</div>
</div>
大家请看下这样是没有任何问题的 大家加个jquery试试但是mousemove时间变成click的时候 这个菜单就不好使了~大家帮解决下~ 谢谢了
<!--
.memu{width:100px; height:25px; background:#CCC; }
.memu_top{width:100px; height:24px;text-align:center; line-height:24px;}
.memu_bottom{width:100px; position:absolute; background-color:#FFF; display:none}
-->
</style>
<script type="text/javascript">
$().ready(function(){
$('.memu').mousemove(function(){$(this).children('.memu_bottom').show()})
$('.memu').mouseout(function(){$(this).children('.memu_bottom').hide()})
})
</script>
<div class="memu">
<div class="memu_top">菜单</div>
<div class="memu_bottom">
dasdasdas<br />
dasdasd<br />
dasdasd<br />
sdasdasd
</div>
</div>
大家请看下这样是没有任何问题的 大家加个jquery试试但是mousemove时间变成click的时候 这个菜单就不好使了~大家帮解决下~ 谢谢了
解决方案 »
- 求一个能满足IE 7 8div隐形效果的
- 想做一个闹钟,不知道怎么弄
- 新手求助标准化 relatedTarget
- 这是flash的代码 有个死循环 帮忙解决下 谢谢
- 老大们 ,帮忙拼下,传值参数啊!!
- 我不理解这个问题,请指教!
- 在javascript中如何将数据转换成货币型
- 你好呀,我看过一个问题,他是要求改<input type="text" name="www-www" value="welcome">中值,如果是一个保留字的话,那有办法修改它吗
- 为什么用框架的时候,几个jsp文件是在一起的,然后这个框架的各个部分的src="page1.jsp"...类推,假设这几个jsp文件的根目录是/path;服务
- 能否按一个链接后设置一个FRAME里控件的内容,并且提交?(急啊!)不管你用啥方法!
- setinterval
- 有点难的问题,页面加载的问题
<!--
.memu{width:100px; height:25px; background:#CCC; }
.memu_top{width:100px; height:24px;text-align:center; line-height:24px;}
.memu_bottom{width:100px; position:absolute; background-color:#FFF; display:none}
-->
</style>
<script type="text/javascript">
$().ready(function(){
var timer = null;
$('.memu').click(function(){
var me = this;
$(this).bind('mousemove',function(){
$(me).children('.memu_bottom').show();
if(timer) clearTimeout(timer);
});
$(this).children('.memu_bottom').show();
});
$('.memu').mouseout(function(){
var me = this;
timer = setTimeout(function(){
$(me).children('.memu_bottom').hide();
$(me).unbind('mousemove');
},500);
});
})
</script>
<div class="memu">
<div class="memu_top">菜单</div>
<div class="memu_bottom">
dasdasdas<br />
dasdasd<br />
dasdasd<br />
sdasdasd
</div>
</div>