如何在鼠标悬停和鼠标移出时添加淡入淡出效果?
<script>
jQuery(function() {
jQuery(".logo img").mouseover(function() {
var src = "<?php echo $this->baseurl ?>/templates/kalfany/images/logo-<?php echo $this->language; ?>-hover.png";
jQuery(this).attr("src", src);
}).mouseout(function() {
var src = "<?php echo $this->baseurl ?>/templates/kalfany/images/logo-<?php echo $this->language; ?>.png";
jQuery(this).attr("src", src);
}); });
</script>
我从这里得到了我的问题的答案
http://bavotasan.com/2009/creating-a-jquery-mouseover-fade-effect/
这就是我要找的所以,最好的答案是我的;)