$(function() {
$(“img.onoff”).mouseover(function() {
try {
$(this).attr(‘src’,$(this).attr(‘src’).replace(‘_off’,’_on’));
}
catch(e) {
if (console) console.log(e);
}
}).mouseout(function() {
try {
$(this).attr(‘src’,$(this).attr(‘src’).replace(‘_on’,’_off’));
}
catch(e) {
if (console) console.log(e);
}
});
});