Swapping an image that is part of a link
i have 3 images in a list that form interface tabs, that show and hide divs below them. I want to swap the image for the current tab based on its name. I think my problem is to do with how selecting the image?
Hen help welcomed - thanks
-
// Tab Code
var tabContainers = $('div.tabs > div');
$('div.tabs ul.tabNavigation a').click(function () {
tabContainers.hide().filter(this.hash).show();
$('div.tabs ul.tabNavigation li a').replace(/_current.gif$/ig,"_ready.gif");
$(this).replace(/_ready.gif$/ig,"_current.gif");
return false;
}).filter(':first').click();