Answer the question
In order to leave comments, you need to log in
How to implement page turning when pressing the arrows on the keyboard in Wordpress?
There is a code:
<div class='next1'>
<?php previous_post_link('%link', '<img src="#" width="45" height="35" alt="previous" />'); ?>
</div>
<div class='prev1'>
<?php next_post_link('%link', '<img src="#" width="45" height="35" alt="Next" />') ; ?>
</div>
Answer the question
In order to leave comments, you need to log in
Javascript Keyboard Events (usually keyup). A little more here . In Google information wagons.
Found this code:
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
$(document).keydown(function(e){
if (e.keyCode == 37) {
??????????
return false;
}
});
</script>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question