$(".previous", $t).hover(
function(){$(".previous", $t).show();},
function(){$(".previous", $t).hide();}
);
我用的如上代码,但是previous这个东东,如果在第一次被鼠标移出时就隐藏的话。鼠标下次再移到那个位置也找不到了,因为是隐藏的元素。我看网上别人的例子都是,鼠标放到其它元素上隐藏这个元素。还没有鼠标放到同一个元素,然后移上去还能显示的例子。
解决方案 »
- 为什么response.responseText没有返回值
- JS 队列顺序执行
- 在线跪求!.trigger调用事件返回值是object?怎样才能return false?
- 点击事件给一个td设了背景,当下我撤消我先行的动作回到前一个背景下,条件我不确定前面那个是什么背景
- 为何这段滚动图片代码在FF下不动呢?
- 求一个在网页上不让右键,不让左銉拉动,不让按Ctrl的集大成代码,分不多,但纯对给!
- 为什么下面代码中无法取得返回值
- 求“富文本”的代码!
- 高难问题,如何实现?有分相送!
- !!!超急!!!!showModelessDialog问题(先50分)
- jquery ajax在IE中出现中文乱码 但是Firefox中是好的
- jquery 对话框 show hide 效果属性值
<a href="#" class="previous" style="display:none;"><img src="./images_w/previous.png" width="46" height="47" alt="Previous" /></a>
显示 隐藏的previous
$(".hand_p", $t).hover(
function(){$(".hand_p", $t).css({background:url(./images_w/previous.png) no-repeat;});},
function(){$(".hand_p", $t).css({background:url(./images_w/null.png) no-repeat;});}
); <a href="#" class="previous"><div class = "hand_p" style="width:46px; height:47px; background:url(./images_w/previous.png) no-repeat;"></div></a>按楼上说的,加了个div,然后在js里写鼠标移入和移出的效果。但是发现所有的js都不能用了。估计是那的语法错了,能帮忙看看吗?
$(".hand_p", $t).hover(
function(){$(.hand_p,$t).css({"background-image":"url(./images_w/previous.png)"});},
function(){$(.hand_p,$t).css({"background-image":"url(./images_w/next.png)"});}
);
$(".previous", $t).hover(
function(){$(o.hand_p, $t).css({"background-image":"url(./images_w/previous.png)"});},
function(){$(o.hand_p, $t).css({"background-image":"url(./images_w/next.png)"});}
);
试下我下面代码
<div class="previous"> <img src="1.bmp" id="imgId" width="46" height="47" alt="Previous" style="display:none;" /></div> $(".previous").hover(
function(){$("#imgId").show();},
function(){$("#imgId").hide();}
)