shadoks 0 Posted January 6 Report Share Posted January 6 I have used this gallery from W3Schools https://www.w3schools.com/howto/howto_js_slideshow_gallery.asp and i want to add function arrow keyboard keys to change pictures in the gallery. Can someone here help me out? Quote Link to post Share on other sites
niche 139 Posted January 6 Report Share Posted January 6 What’s a function arrow keyboard key? the W3 example already has something that could be function arrow keyboard keys. Quote Link to post Share on other sites
shaili_shah 2 Posted January 8 Report Share Posted January 8 Hi. We can use the keycode for it. Ex:- $(document).keydown(function(e){ if(e.keyCode === 37){ plusSlides(-1) } //for left arrow if(e.keyCode === 39){ plusSlides(1) } //for right arrow }); Hope it helps. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.