Bureaucrats, coding, Administrators
2,634
edits
m (ghetto debugging) |
m (No problems there) |
||
Line 492: | Line 492: | ||
oldApertureInfobox = { | oldApertureInfobox = { | ||
mouseIn: function() { | mouseIn: function() { | ||
$(this).find('img').attr('src', $(this).attr('src').replace('Inactive.png', 'Active.png')); | $(this).find('img').attr('src', $(this).attr('src').replace('Inactive.png', 'Active.png')); | ||
}, | }, | ||
mouseOut: function() { | mouseOut: function() { | ||
if(!$(this).hasClass('old-aperture-location-active')) { | if(!$(this).hasClass('old-aperture-location-active')) { | ||
$(this).find('img').attr('src', $(this).attr('src').replace('Active.png', 'Inactive.png')); | $(this).find('img').attr('src', $(this).attr('src').replace('Active.png', 'Inactive.png')); | ||
Line 503: | Line 501: | ||
init: function() { | init: function() { | ||
$('.old-aperture-location').hover(oldApertureInfobox.mouseIn, oldApertureInfobox.mouseOut); | $('.old-aperture-location').hover(oldApertureInfobox.mouseIn, oldApertureInfobox.mouseOut); | ||
} | } | ||
}; | }; |