MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
m
No problems there
m (ghetto debugging)
m (No problems there)
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 503: Line 501:
init: function() {
init: function() {
$('.old-aperture-location').hover(oldApertureInfobox.mouseIn, oldApertureInfobox.mouseOut);
$('.old-aperture-location').hover(oldApertureInfobox.mouseIn, oldApertureInfobox.mouseOut);
alert('Ran');
}
}
};
};

Navigation menu