Chinaunix首页 | 论坛 | 博客
  • 博客访问: 754186
  • 博文数量: 160
  • 博客积分: 2516
  • 博客等级: 大尉
  • 技术积分: 1511
  • 用 户 组: 普通用户
  • 注册时间: 2004-10-24 17:58
文章分类

全部博文(160)

文章存档

2019年(2)

2018年(3)

2017年(15)

2016年(3)

2015年(11)

2014年(3)

2013年(1)

2012年(3)

2011年(17)

2010年(25)

2009年(17)

2008年(13)

2007年(14)

2006年(21)

2005年(10)

2004年(2)

分类: Java

2010-03-10 08:57:21

you can do this with JavaScript.
to hide toolbar, menu ... etc., open your web application with this JS function that you can set according to your needs :

window.open("yourZKWebPage","windowName","width=200,height=100,toolbar=no,location=no,directories=no ,status=yes,menubar=no,scrollbars=no,resizable=yes");

And here, is an old code to intercept keyboard input, you can also customize it according to your needs :

function keydown() {
  if ((window.event.ctrlKey) || (window.event.shiftKey) || (window.event.keyCode==18) || ((window.event.keyCode>=112) && (window.event.keyCode<=123))) {
   if (window.confirm("Shortcuts are not allowed ! \nDo you want to exit this great site ?" ))
    top.close();
   else {
    setTimeout("form.focus();",30);
    window.event.returnValue = false;  
   }
   }
  }
document.onkeydown= keydown //All Keys are checked 


阅读(1997) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~