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

javascript开发系列(面向对像)

javascript中的面像对像。
请看代码,下面弹出一个对话筐。
  <script type="text/javascript">
        function win(w, h,,url)
         {
            this.width = 100;
            this.height = 300;
            this.time = 10;
            this.url = url;
            this.openWin = function()
                 {
                  var iTop = (window.screen.availHeight) / 2;
                  var iLeft = (window.screen.availWidth - 10 - w) / 2;
                  window.showModalDialog('open.htm', '', 'dialogHeight=' + this.height + ',dialogWidth=' + this.width + ',help=0;status=1;scroll=1');
              }
         }
         function getWin() {
             var objwin = new win(100, 100,  'open.html');
             objwin.openWin();
          
         }
         window.onload = function() { getWin(); }
       
    </scr


相关文档:

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 ......

javascript对象机制

                var currItem = listbox.options[currIndex];
                var prevItem = listbox.options[currIndex - 1];
    &n ......

JavaScript 对象字面量

http://bei123wang.blog.163.com/blog/static/23175492009113022048840/
JavaScript 对象字面量
javascript 2009-12-30 14:20:48 阅读7 评论0 字号:大中小
JavaScript 对象字面量
在编程语言中,字面量是一种表示值的记法。例如,"Hello, World!" 在许多语言中都表示一个字符串字面量(string literal ),JavaScript ......

JavaScript" 对象","属性"集锦



SCRIPT 标记 
用于包含JavaScript代码.  
属性 
LANGUAGE 定义脚本语言 
SRC 定义一个
URL用以指定以.JS结尾的文件
window对象 
每个HTML文档的顶层对象. 
属性 
frames[] 子桢数组.每个子桢数组按源文档中定义的顺序存
放. 
f ......

JavaScript in 10 Steps or Less

没有按别人的推荐,学什么圣经类的js书,而是随便挑了本《JavaScript in 10 Steps or Less》。
花了3个小时,看了30个task。
讲的非常浅显详细。虽然是E文,但很浅显易懂。
task31:
Calling Functions from Tags
One of the benefits of JavaScript is to be able to tie interactivity to elements of the HTML page. ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号