Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <head>
- ...
- <script type="text/javascript" src="RUTA/jquery.min.js"></script>
- <script type="text/javascript" src="RUTA/hotkeys.js"></script>
- <script>
- /** NAVIGATION */
- $(function(){
- $(document).bind('keydown', 'right', function() {
- var url = $('.next, a[rel="next"]').attr('href');
- if (url)
- window.location = url;
- });
- $(document).bind('keydown', 'left', function() {
- var url = $('.prev, a[rel="prev"]').attr('href');
- if (url)
- window.location = url;
- });
- });
- </script>
- ...
- </head>
- <body>
- <a href="http://miblog.com/page/2" class="prev">Página Anterior</div>
- <a href="http://miblog.com/page/4" class="next">Página Siguiente</div>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement