<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>支持按键盘方向键翻页跳转的代码-懒人图库</title> </head>
<body> <p> <SCRIPT language=javascript> document.onkeydown = chang_page; function chang_page() { if (event.keyCode == 37 || event.keyCode == 33) location = 'http://www.maitianquan.com'; if (event.keyCode == 39 || event.keyCode == 34) location = 'http://www.lanrentuku.com' } </SCRIPT> 说明:按键盘← →方向键 或 PageUp PageDown键直接翻页</p> </body> </html> |