我目前有代码来翻转图像链接,如下所示:
<a id="show" href="#"><img src="images/show-me.png" border=0 onmouseover="this.src='images/show-me_over.png';" onmouseout="this.src='images/show-me.png'"></a>
单击它会显示一个 div
jQuery(document).ready(function(){
jQuery("#show").toggle(
function(){
jQuery('#home-hidden-extra').animate({'height': '480px'} ,1000);},
function(){
jQuery('#home-hidden-extra').animate({'height': '0px'} ,1000);}
);
});
我想做但我找不到/弄清楚的是在隐藏div时使用show_me.png和show_me-over.png,然后在显示div时使用hide_me.png和hide_me-over.png。
实现这一目标的最简单方法是什么?
再次感谢!