为什么我用了
("td .mu1").mouseover(function(){
$("td .xieh1").css({ display: "block", background: "#e5e5e5" });
});
再用
$("td .mul").mouseout(function(){$("td .xieh1").css({ display: "none"});});这一句怎么不执行了???
是一个下拉菜单,放上去的时候下拉菜单正常,离开时,这句好像没执行,按道理来说下拉菜单应隐藏的?高手指点一下
("td .mu1").mouseover(function(){
$("td .xieh1").css({ display: "block", background: "#e5e5e5" });
});
再用
$("td .mul").mouseout(function(){$("td .xieh1").css({ display: "none"});});这一句怎么不执行了???
是一个下拉菜单,放上去的时候下拉菜单正常,离开时,这句好像没执行,按道理来说下拉菜单应隐藏的?高手指点一下
解决方案 »
- 怎样才能让数据库中的图片不显示出来
- 《天关战纪》内测客户端正式开放下载
- js怎么调用asp从数据库获得数据?
- 发现一个好用的 任意 多级 联动
- js 怎样传递一个数组到另一个js
- jquery读取xml文件...............................................................新手求解
- 动态生成的input不可以使用JS函数?
- 一个表格。一个文本框中的数据变化,整行数据相应的变化
- 一个框架问题(附程序)!
- 请教:怎样在程序中给元素<input type=file>赋值?
- 【原创】Jquery Dom事件函数应用实例
- 怎么用js判断页面是否为第一次打开,如果不是则不调用相关js的function函数
});$('td .mu1').bind("mouseleave",function(){$("td .xieh1").css({ display: "none"});});
$('td .mu1').bind("mouseenter",function(){$("td .xieh1").css({ display: "block", background: "#e5e5e5" });
});$('td .mu1').bind("mouseleave",function(){$("td .xieh1").css({ display: "none"});}); })
用$("td.mul").bind("mouseleave",function(){});对他绑定一个鼠标滑过事件!
要不然用hover:
$("img.screenshot").hover(function(e){
$("body").append("<p id='p"+this.id+"' class='po'><script>show_time();</script></p>");
},
function(){
$("#p"+this.id).remove();
});
用$("td.mul").bind("mouseleave",function(){});对他绑定一个鼠标滑过事件!
要不然用hover:
$("img.screenshot").hover(function(e){
$("body").append("<p id='p"+this.id+"' class='po'><script>show_time();</script></p>");
},
function(){
$("#p"+this.id).remove();
});