This should be pretty self explanatory, any help much appreciated!
Jquery Code
$("#larrow img").hide();
$("#rarrow img").hide();
$("#rarrow").hover(arrowIn,arrowOut);
$("#larrow").hover(arrowIn,arrowOut);
function arrowIn()
{
$(this+" img").show()
}
function arrowOut()
{
$(this+" img").hide()
}
I also tried this with the img as the background
$("#larrow").css('visibility','hidden');
$("#rarrow").css('visibility','hidden');
$("#rarrow").hover(arrowIn,arrowOut);
$("#larrow").hover(arrowIn,arrowOut);
function arrowIn()
{
$(this).css('visibility','visible')
}
function arrowOut()
{
$(this).css('visibility','hidden')
}
obviously to no avail, thanks for help in advance!
You cannot concatenate
thiswithimgselector. Anyway, this code may be shorter:DEMO: http://jsfiddle.net/4fHL3/