首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2010年12月30日

摘要: 1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键<table border oncontextmenu=return(false)><td>no</table> 可用于Table2. <body onselectstart="return false"> 取消选取、防止复制3. onpaste="return false" 不准粘贴4. oncopy="return false;" oncut=&q 阅读全文

posted @ 2010-12-30 10:04 达奇 阅读(368) 评论(0) 推荐(0) 编辑

摘要: function getInfo() { var s = ""; s += " 网页可见区域宽:" + document.body.clientWidth + "\r\n "; s += " 网页可见区域高:" + document.body.clientHeight + "\r\n "; s += " 网页可见区域宽:" + document.body.offsetWidth + " (包括边线和滚动条的宽)" + "\r\n "; 阅读全文

posted @ 2010-12-30 09:34 达奇 阅读(366) 评论(0) 推荐(0) 编辑