Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function keyboard(action) {
- var prev_elem = document.getElementById('lol_' + posicion);
- if (e.keyCode == 74) {
- posicion++;
- }
- else if (e.keyCode == 75) {
- posicion--;
- }
- if (posicion > posts_por_pagina) {
- document.location = 'loldome.com/...';
- }
- else if (posicion < 0) {
- return false;
- }
- elem = document.getElementById('lol_' + posicion);
- prev_elem.attr('tabIndex', '-1');
- elem.attr('tabIndex', '0');
- elem.focus();
- }
Add Comment
Please, Sign In to add comment