【发布时间】:2011-03-10 20:32:23
【问题描述】:
jQuery(document).ready(function(){
// Change the image of hoverable images
jQuery("#image-map")
.mouseover(function() {
var src = jQuery(this).attr("src").replace(".gif", "_close.gif");
jQuery(this).attr("src", src);
})
.mouseout(function() {
var src = jQuery(this).attr("src").replace("_close.gif", ".gif");
jQuery(this).attr("src", src);
});
});
上面的代码很好用,但是快速播放了通过鼠标悬停使图像淡入和在鼠标移出时淡出 - 有什么想法吗?
提前致谢!
【问题讨论】:
标签: jquery