我有这段代码,它允许我在将鼠标悬停在链接上时让颜色淡入淡出,但我希望背景图像随之淡出。我不确定如何在我的代码中设置背景图像和位置。
$(document).ready(function() {
var $imageUrl = "../images/TopNavigationArrows.png";
var cssBg = ?
$(".link").hover(function() {
// Hover State
$(this).animate({ color: "#FFEFCA" }, 200);
},function() {
// Default State
$(this).animate({ color: "#FFF" }, 200);
});
});