我使用下面的代码在悬停时交换图像:
$(function() {
$("#compost").hover(function() {
origImage=$(this).attr("src");
$(this).attr("src", "images/order-compost-over.gif")
},function() {
$(this).attr("src", origImage)
});
});
Run Code Online (Sandbox Code Playgroud)
我试图使用fadeIn而不是交换.我试过它,但没有运气.我尝试使用img标签fadeIn但它没有用.
| 归档时间: |
|
| 查看次数: |
7362 次 |
| 最近记录: |