Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery left arrow key press

$("body").keydown(function(e) {
  if(e.keyCode == 37) { // left
    $("#showroom").animate({
      left: "-=980"
    });
  }
  else if(e.keyCode == 39) { // right
    $("#showroom").animate({
      left: "+=980"
    });
  }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #left #arrow #key #press
ADD COMMENT
Topic
Name
3+2 =