您现在的位置: 中国男护士网 >> 考试频道 >> 计算机等级 >> 二级辅导 >> ACCESS >> 辅导 >> 正文    
  Dreamweaver下使用ASP+Access编写目录树 【注册男护士专用博客】          

Dreamweaver下使用ASP+Access编写目录树

www.nanhushi.com     佚名   不详 

  利用Access创建数据库listBase.mdb:

  数据表:listTable

  数据字段:listIdlistNamelistInfoparentId

  连接方法:

  把以上代码保存成文件:initialize.asp

  下面这段程序代码是用来显示目录树用的,保存成文件:inc.asp

  下面这是调用页代码,保存成index.asp

  marginwidth="0" marginheight="0">

  onMouseDown="MM_dragLayer(’addNodeDiv’,’’,

  1,1,300,30,true,false,-1,-1,-1,-1,false,false,0,’’,false,’’)"> 
   
  width="13" height="13" style="cursor:hand" onclick="jscript:addNodeDiv.style.display=’none’;">

  节点名称:

  type="text" class="text1" id="listName">  10个字符BR>

  节点说明:    50个字符

  border="0" cellspacing="0" cellpadding="5">

  type="submit" class="DivBut" id="SubmitBut" value="提交" onclick="jscript:addNodeForm.submit();this.disabled=’disabled’">

  type="button" class="DivBut" id="cancelBut" onclick="jscript:addNodeDiv.style.display=’none’;" value="取消">
  cellpadding="0" cellspacing="0">

  下面是提交信息处理页的代码,保存为disp.asp

  以上代码保存成的文件放在同一目录下面

  (在这里我们称为根目录)。

  在根目录下新建一个CSS目录。

  下面为CSS定义,保存成css.css文件,放在CSS目录下。

  注:有一两个样式是不要的,我没删

  .menuPro {

  border-top: 1px dotted #A5BBE0;

  border-right: 1px dotted #31548E;

  border-bottom: 1px dotted #31548E;

  border-left: 1px dotted #A5BBE0;

  overflow: visible;

  font-family: "Verdana", "Arial", "Helvetica", "sans-serif";

  font-size: 12px;

  }



  .menuGro {

  border-top: 2px outset #31548E;

  border-right: 2px outset #A5BBE0;

  border-bottom: 2px outset #A5BBE0;

  border-left: 2px outset #31548E;

  overflow: visible;

  font-family: "Verdana", "Arial", "Helvetica", "sans-serif";

  font-size: 12px;

  }

  .menuFont {

  font-family: "Verdana", "Arial", "Helvetica", "sans-serif";

  font-size: 12px;

  }

  .showDiv {

  display:’’;

  }

  .hiddenDiv {

  display:none;

  }

  .treeDiv {

  background-color: #A8D5EA;

  height: 100%;

  width: 100%;

  border-top-width: 2px;

  border-right-width: 2px;

  border-bottom-width: 2px;

  border-left-width: 2px;

  border-top-style: inset;

  border-right-style: inset;

  border-bottom-style: inset;

  border-left-style: inset;

  border-top-color: #3680C9;

  border-right-color: #BCD5ED;

  border-bottom-color: #BCD5ED;

  border-left-color: #3680C9;

  overflow: auto;

  padding: 20px;

  }



  body {

  overflow: hidden;

  }

  .formDiv {

  font-family: "Verdana", "Arial", "Helvetica", "sans-serif";

  font-size: 12px;

  font-weight: normal;

  background-color: #7ABDDE;

  height: 200px;

  width: 300px;

  border-top: 1px outset #B9DCFF;

  border-right: 1px outset #004488;

  border-bottom: 1px outset #004488;

  border-left: 1px outset #B9DCFF;

  overflow: hidden;

  }

  .text1 {

  width: 160px;

  }

  .DivBut {

  font-family: "Verdana", "Arial", "Helvetica", "sans-serif";

  font-size: 12px;

  font-weight: normal;

  background-color: #3399CC;

  height: 20px;

  width: 40px;

  border: 1px outset;

  }

  另在根目录下建一个IMAGES目录。用来放那些文件夹样子的小图。

 

文章录入:杜斌    责任编辑:杜斌 
  • 上一篇文章:

  • 下一篇文章:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
     

    联 系 信 息
    QQ:88236621
    电话:15853773350
    E-Mail:malenurse@163.com
    免费发布招聘信息
    做中国最专业男护士门户网站
    最 新 热 门
    最 新 推 荐
    相 关 文 章
    没有相关文章
    专 题 栏 目

      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)                            【进男护士社区逛逛】
    姓 名:
    * 游客填写  ·注册用户 ·忘记密码
    主 页:

    评 分:
    1分 2分 3分 4分 5分
    评论内容:
  • 请遵守《互联网电子公告服务管理规定》及中华人民共和国其他各项有关法律法规。
  • 严禁发表危害国家安全、损害国家利益、破坏民族团结、破坏国家宗教政策、破坏社会稳定、侮辱、诽谤、教唆、淫秽等内容的评论 。
  • 用户需对自己在使用本站服务过程中的行为承担法律责任(直接或间接导致的)。
  • 本站管理员有权保留或删除评论内容。
  • 评论内容只代表网友个人观点,与本网站立场无关。