Bureaucrats, coding, Administrators
2,634
edits
No edit summary |
m (ghetto debugging) |
||
Line 492: | Line 492: | ||
oldApertureInfobox = { | oldApertureInfobox = { | ||
mouseIn: function() { | mouseIn: function() { | ||
alert('Mouse in'); | |||
$(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() { | ||
alert('Mouse out'); | |||
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 501: | Line 503: | ||
init: function() { | init: function() { | ||
$('.old-aperture-location').hover(oldApertureInfobox.mouseIn, oldApertureInfobox.mouseOut); | $('.old-aperture-location').hover(oldApertureInfobox.mouseIn, oldApertureInfobox.mouseOut); | ||
alert('Ran'); | |||
} | } | ||
}; | }; |