Hi, is there a quick way to use the right and left arrow keys to load the next page? My solution so far is:
$(document).ready(function () {
$("a.transition").click(function (event) {
event.preventDefault();
linkLocation = this.href;
$("body").fadeOut(20, redirectPage);
});
$("a.transitionB").click(function (event) {
event.preventDefault();
linkLocation = this.href;
$("body").fadeOut(20, redirectPage);
});
function redirectPage() {
window.location = linkLocation;
}
});
with 2 invisible link layers. But i need something to control the transition without clicking in the page, but to use the arrow buttons.
Thank you for your help.