I'm a jquery noob--using easyslider 1.7--buttons are over the slider--so effects muddle the jQuery...using simple show/hide right now and works fine!
I want to improve the following medial code to be a little more eloquent, if possible.
I'd like the buttons to fadeIn/fadeOut on hover of the slider div, and stay visible when hovering over the buttons (which are floating over the slider div). Sorry, can't post HTML.
$('#prevBtn,#nextBtn').hide();
$("#slider").hover(
function () {
$('#prevBtn,#nextBtn').show();
},
function () {
$('#prevBtn,#nextBtn').hide();
}
);
$("#prevBtn").hover(
function () {
$('#prevBtn,#nextBtn').show();
},
function () {
$('#prevBtn,#nextBtn').hide();
}
);
$("#nextBtn").hover(
function () {
$('#prevBtn,#nextBtn').show();
},
function () {
$('#prevBtn,#nextBtn').hide();
}
);