网站制作

本类阅读TOP10

·IIS 安装配置全攻略
·用VS.NET打开网上下载的.NET web项目出错的解决办法
·HTML 4.0 语言快速参考
·限制TextArea区的文字输入数量
·如何在网页上实现进度条
·Apache的配置步骤及测试
·谈谈Jesse James Garrett提到的Ajax
·html基础学习笔记(2)
·页面垂直居中的两种方法
·用asp遍历目录下文件的例子

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
用JScript实现MembersTable

作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站

在msdn online上讲解某个类的属性、方法、事件时,用到了一个MembersTable的表格。类似下图:


笔者研究其中的代码,经过简化也实现了这种效果,提供类似如下的<Table>,通过JScript,能够自动生成类似上图的MembersTable:

<BLOCKQUOTE>
  <DIV id="oMTExplanation" style="display:none"></DIV>
  <DIV id="oMT">
    <P CLASS="clsRef" STYLE="display:none">属性</P>
    <DIV tabName="属性">
      <TABLE CLASS="clsStd" width="100%" STYLE="BACKGROUND: #FFFFFF">
        <TR>
          <TH>属性</TH>
          <TH>说明</TH>
        </TR>
        <TR>
          <TD>
            <NOBR>
              <A HREF="/workshop/author/behaviors/reference/properties/image.asp">image</A>
            </NOBR>
          </TD>
          <TD>
            Sets or retrieves the DirectAnimation Image (DAImage class) displayed by the <B>anim:DA</B> element.
          </TD>
        </TR>
        <TR>
          <TD>
            <NOBR>
              <A HREF="/workshop/author/behaviors/reference/properties/sound.asp">sound</A>
            </NOBR>
          </TD>
          <TD>
            Sets or retrieves the DirectAnimation sound (<B>DASound</B> class) played by the <B>anim:DA</B> element.
          </TD>
        </TR>
        <TR>
          <TD>
            <NOBR>
              <A HREF="/workshop/author/behaviors/reference/properties/statics.asp">statics</A>
            </NOBR>
          </TD>
          <TD>
            Retrieves an object containing the <B>DAStatics</B> class library used with DirectAnimation.
          </TD>
        </TR>
      </TABLE>
    </DIV>
 
    <P CLASS="clsRef" STYLE="display:none">方法</P>
    <DIV tabName="方法">
      <TABLE CLASS="clsStd" width="100%" STYLE="BACKGROUND: #FFFFFF">
        <TR>
          <TH>方法</TH>
          <TH>说明</TH>
        </TR>
        <TR>
          <TD>
            <NOBR>
              <A HREF="/workshop/author/behaviors/reference/methods/adddabehavior.asp">addDABehavior</A>
            </NOBR>
          </TD>
          <TD>
            Adds a DirectAnimation behavior (DABehavior class) to the run list when the behavior is not part of the animation model.
          </TD>
        </TR>
        <TR>
          <TD>
            <NOBR>
              <A HREF="/workshop/author/behaviors/reference/methods/removedabehavior.asp">removeDABehavior</A>
            </NOBR>
          </TD>
          <TD>
            Removes a DirectAnimation behavior (DABehavior class) added by the <B>addDABehavior</B> method.
          </TD>
        </TR>
      </TABLE>
    </DIV>
  </DIV>
</BLOCKQUOTE>



相关文章

相关软件