kobo1d
05-16-2010, 02:19 PM
hi there!
i have a problem with a part of my JS code, which is working great in Safari / FF & Chrome ... this is the part of the script:
var timerLeft;
config.$leftnavbutton.hover(function(){ //assign nav button event handlers
slideLeft();
timerLeft = setInterval(slideLeft, 3572);
}, function() {
clearInterval(timerLeft);
});
function slideLeft() {
stepcarousel.stepBy(config.galleryid, -config.defaultbuttons.moveby);
}
config.$leftnavbutton.bind('mouseover', function(){ //assign nav button event handlers
config.$leftnavbutton.css({width:'45px'}).appendTo('body');
});
config.$leftnavbutton.bind('mouseout', function(){ //assign nav button event handlers
config.$leftnavbutton.css({width:'40px'}).appendTo('body');
});
config.$rightnavbutton.bind('mouseover', function(){ //assign nav button event handlers
config.$rightnavbutton.css({width:'45px'}).appendTo('body');
});
config.$rightnavbutton.bind('mouseout', function(){ //assign nav button event handlers
config.$rightnavbutton.css({width:'40px'}).appendTo('body');
});
var timerRight;
config.$rightnavbutton.hover(function(){ //assign nav button event handlers
slideRight();
timerRight = setInterval(slideRight, 3572);
}, function() {
clearInterval(timerRight);
});
function slideRight() {
stepcarousel.stepBy(config.galleryid, config.defaultbuttons.moveby);
}
the problem is on IE7+8 and OPERA... (both the same problems)
first of all the hover function is not reacting on UNhover, so the clearInterval thing is ignored
and second the mouseout function is ignored too, the picture is resized to 45px but not back to 40px...
can anybody help me out plz and tell me why this is bogus for IE&OPERA..
thanks :o
i have a problem with a part of my JS code, which is working great in Safari / FF & Chrome ... this is the part of the script:
var timerLeft;
config.$leftnavbutton.hover(function(){ //assign nav button event handlers
slideLeft();
timerLeft = setInterval(slideLeft, 3572);
}, function() {
clearInterval(timerLeft);
});
function slideLeft() {
stepcarousel.stepBy(config.galleryid, -config.defaultbuttons.moveby);
}
config.$leftnavbutton.bind('mouseover', function(){ //assign nav button event handlers
config.$leftnavbutton.css({width:'45px'}).appendTo('body');
});
config.$leftnavbutton.bind('mouseout', function(){ //assign nav button event handlers
config.$leftnavbutton.css({width:'40px'}).appendTo('body');
});
config.$rightnavbutton.bind('mouseover', function(){ //assign nav button event handlers
config.$rightnavbutton.css({width:'45px'}).appendTo('body');
});
config.$rightnavbutton.bind('mouseout', function(){ //assign nav button event handlers
config.$rightnavbutton.css({width:'40px'}).appendTo('body');
});
var timerRight;
config.$rightnavbutton.hover(function(){ //assign nav button event handlers
slideRight();
timerRight = setInterval(slideRight, 3572);
}, function() {
clearInterval(timerRight);
});
function slideRight() {
stepcarousel.stepBy(config.galleryid, config.defaultbuttons.moveby);
}
the problem is on IE7+8 and OPERA... (both the same problems)
first of all the hover function is not reacting on UNhover, so the clearInterval thing is ignored
and second the mouseout function is ignored too, the picture is resized to 45px but not back to 40px...
can anybody help me out plz and tell me why this is bogus for IE&OPERA..
thanks :o