|
<script type="text/Javascript">
<!--
var preview_page = "14671.html";
var next_page = "14675.html";
var index_page = "index.html";
var article_id = "305";
var chapter_id = "14674";
function jumpPage() {
if (event.keyCode==37) location=preview_page;
if (event.keyCode==39) location=next_page;
if (event.keyCode==13) location=index_page;
}
document.onkeydown=jumpPage;
<:/script>
<script>
//qidian
prevpage='1006900,20124741.ASPx';
nextpage='1006900,20124757.ASPx';
bookpage='/Book/1006900.ASPx'
var prevpage;
var nextpage;
var bookpage;
function pageEvent(event)
{
event = event ? event : (window.event ? window.event :
null);
if (event.keyCode==13)
{
location=bookpage
return false;
}
if (event.keyCode==37) location=prevpage
if (event.keyCode==39) location=nextpage
}
document.onkeydown=pageEvent;
-->
</script>
来自经典的IE和firefox都兼容的
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
JavaScript技术:javascript onkeydown实现键盘快捷键控制页面,转载需保留来源!
郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。