Hi i have a little problem with hovering an image. I just want my image to be replace when hovering over a text and then go back its original image after hovering. However when i hover, the images changes but it does not goes back to its original image after hover.
Here is my jquery code.
<script type="text/javascript">
var j = jQuery.noConflict();
j(function () {
j( ".click-me .hover-me" ).hover(function() {
j( ".click-me .hover-me ul" ).slideToggle( "fast", function() {
//change image to new image
j(".click-me .hover-me li .clicker ").css('background-image','url(images/arrow-down.png)');
});
});
//after hover image goes back to previous image
j(".click-me .hover-me li .clicker ").css('background-image','url(images/arrow-right.png)');
});
</script>
Hope you can help me. Thanks