易截截图软件、单文件、免安装、纯绿色、仅160KB

javascript 控制左右键盘

<html>  
  <head>  
          <script language="javascript">  
                  function MyClick()  
                  {  
                          if(event.button == 1)  
                          {
                                  alert("您好");
                          }
                          else if(event.button == 2)
                          {  
                                  alert("禁止右键");
                                  setTimeout("MyClose();",120000);
           &nbs


相关文档:

JavaScript:prototype属性使用方法

一、基本使用方法
      prototype属性可算是JavaScript与其他面向对象语言的一大不同之处。
简而言之,prototype就是“一个给类的对象添加方法的方法”,使用prototype属性,可以给类动态地添加方法,以便在JavaScript中实现“继承”的效果。
    & ......

用JavaScript去除字符串的首尾空格。

String.prototype.Trim=function(){
returnthis.replace(/(^\s*)|(\s*$)/g,"");
}
String.prototype.LTrim=function(){
returnthis.replace(/(^\s*)/g,"");
}
String.prototype.RTrim=function(){
returnthis.replace(/(\s*$)/g,"");
} ......

javaScript获取页面,屏幕等高度与宽度

//获取页面数据
 function getPageSize(){  
   var xScroll, yScroll;  
   if (window.innerHeight && window.scrollMaxY) {  
     xScroll = document.body.scrollWidth;
     yScroll = window.inn ......

JavaScript方法和技巧大全

             JavaScript方法和技巧大全
1:基础知识
1 创建脚本块
1: <script language=”JavaScript”>
2: JavaScript code goes here
3: </script>
2 隐藏脚本代码
1: <script language=”JavaScript”>
2: ......

ReportViewer JavaScript API


JavaScript API
One of the new features we added to the ASP.Net Report Viewer in Visual Studio 2010 is a JavaScript API to allow you to interact with the viewer on client.  In reading many of the posts on the report controls forum, we found that many people struggle when implementing a custom ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号