I have this code:
$(window).scroll(function(){
$('#globalnav').css('left',-$(window).scrollLeft());
$('#globalborder').css('left',-$(window).scrollLeft());
$('#backgroundlayer').css('left',-$(window).scrollLeft());
});
How can I make al the variables compiled in just one line? So it should like something like this
$(window).scroll(function(){
$('#globalnav','#globalborder','#backgroundlayer').css('left',-$(window).scrollLeft());
});