here is my site: http://iaddesign.com/beta/portfolio.php
i tried this:
$("#portfolio li img").hover(
function() {
$(this).attr("src", function() {
return "images/" + this.alt + ".png";
}),
$(this).attr("src", function() {
return "images/" + this.alt + "-over.png";
});
but what it does is not show the image (for some reason) then when i mouse over the image shows then when i take my mouse off nothign happends. i want all is
when the page loads the each images src will equal to what is in the alt attribuate concated with .png
but when the mouse goes over the image the src equals
its alt attribe + "-over.png" then when the mouse leaves it goes back to what alt was + ".png"