, . OP, - , . , . , , , , - .
, :
$(document).ready(function() {
$("#menuHome").live('mouseenter', function() {
$(this).attr({ src: 'm_home_roll.gif' });
});
$("#menuHome").live('mouseleave', function() {
$(this).attr({ src: 'm_home.gif' });
});
});
to check if this element is reading the DOM. If this does not work, try:
function enter() {
$(this).attr({ src: 'm_home_roll.gif' });
readd();
}
function leave() {
$(this).attr({ src: 'm_home.gif' })
readd();
}
function readd(elem) {
$('#menuHome').unbind().mousenter(enter).mouseleave(leave);
}
$(document).ready(function() {
$("#menuHome").mouseenter(enter).mouseleave(leave);
});
source
share