当前位置:首页
开发技术指南» 文章正文
    引言:

    摘要: 我的机器装有win2003企业版,以前一直可以通过网站自动更新的,闲置了很久,今天想更新的时候首先要求安装一个“microsoft windows 安装程序 3.1”的更新包,但是无论通过手动还是自动方式都无法安装。从别的网站下载这个安装包单独安装也不行,查找系统中文件,多了如下一个log文件: [kb893803.log] 0.500: =========================......
    摘要: pstm = conn.preparestatement(sql); rs = pstm.executequery(); rs.last(); 上面的代码是用来执行select 语句的。 我现在在sql server2000中有一条存储过程,目的是插入一条记录,并将该记录的id值返回给java bean。我把上面的sql换成存储过程语句(当然,这条语句和存储过程都绝对是正确的),在数据库中......


关于层的叠加问题,谢谢

我想要的结果是这样的:  
  <div   id="lay3498_3_1"   onClick=""   style="position:absolute;   width:720px;   height:20px;   z-           index:3498;left:277px;   top:   169px;   background-color:   #FFCCCC;   layer-background-  
            color:   #FFCCCC;   border:   1px   none   #000000;">  
            <table   width="100%"   height="20"   border="1"   bgcolor="#FFBFAA"   cellpadding="0"    
                    cellspacing="0">  
                    <tr>  
                          <td>  
                              <a   href=""   title="标题1"   onClick="openurl(id);return   false;">&nbsp;</a>  
                          </td>  
                    </tr>  
            </table>  
  </div>  
  <div   id="lay3498_3_2"   onClick=""   style="position:absolute;   width:720px;   height:20px;   z-           index:3498;left:277px;   top:   242px;   background-color:   #FFCCCC;   layer-background-  
            color:   #FFCCCC;   border:   1px   none   #000000;">  
            <table   width="100%"   height="20"   border="1"   bgcolor="#FFBFAA"   cellpadding="0"    
                    cellspacing="0">  
                    <tr>  
                          <td>  
                              <a   href=""   title="标题2"   onClick="openurl(id);return   false;">&nbsp;</a>  
                          </td>  
                    </tr>  
            </table>  
  </div>  
  <div   id="lay3498_3_3"   onClick=""   style="position:absolute;   width:720px;   height:20px;   z-           index:3498;left:277px;   top:   355px;   background-color:   #FFCCCC;   layer-background-  
            color:   #FFCCCC;   border:   1px   none   #000000;">  
            <table   width="100%"   height="20"   border="1"   bgcolor="#FFBFAA"   cellpadding="0"    
                    cellspacing="0">  
                    <tr>  
                          <td>  
                              <a   href=""   title="标题3"   onClick="openurl(id);return   false;">&nbsp;</a>  
                          </td>  
                    </tr>  
            </table>  
  </div>  
  <div   id="lay3499_1_1"   onClick=""   style="position:absolute;   width:720px;   height:20px;   z-           index:3499;left:290px;   top:   355px;   background-color:   #FFCCCC;   layer-background-  
            color:   #FFCCCC;   border:   1px   none   #000000;">  
            <table   width="100%"   height="20"   border="1"   bgcolor="#FFBFAA"   cellpadding="0"    
                    cellspacing="0">  
                    <tr>  
                          <td>  
                              <a   href=""   title="标题3"   onClick="openurl(id);return   false;">&nbsp;</a>  
                          </td>  
                    </tr>  
            </table>  
  </div>  
  以上是三个图层,现在我想用JavaScript来控制这四个图层,DIV的ID分别是:lay3498_3_1,lay3498_3_2,lay3498_3_3,lay3499_1_1,他们的z-index的值分别是:3498,3498,3498,3499,第四个图层在第三个图层的后面(第四个图层的left值为:290,第三个图层的left值为:277),现要获取DIV的ID属性值,lay3498_3_1代表的意思是:第一个下划线前是定值(通过获取数据),第一个下划线后的值是代表有几个z-index值是一样的,这里是3个,最后一个数字代表当前相同z-index的时候是第几个.现要的结果是当我选中z-index值是一样的层是,其它的层也要同时出现在最上面,这样如何来写JavaScript来实现,谢谢各位!谢谢!

NO.1   作者: vivianfdlpw

<style>  
  div{t:expression(this.onclick=function(){show(this)})}  
  </style>  
  <script>  
  function   show(obj)  
  {  
      if(/lay3498/.test(obj.id))    
        {  
              for(var   i=1;i<=3;i++)  
                  {  
                      document.getElementById(lay3498_3_+i.toString()).style.zIndex=document.getElementById(lay3499_1_1).style.zIndex+1;  
                  }  
        }  
        else  
        {  
              for(var   i=1;i<=3;i++)  
                  {  
                      document.getElementById(lay3498_3_+i.toString()).style.zIndex=document.getElementById(lay3499_1_1).style.zIndex-1;  
                  }  
        }  
   
  }  
  </script>  
  <body>  
  <div   id="lay3498_3_1"   onClick=""   style="position:absolute;   width:720px;   height:20px;   z-index:3498;left:277px;   top:   169px;   background-color:   #FFCCCC;   layer-background-  
            color:   #FFCCCC;   border:   1px   none   #000000;">  
            <table   width="100%"   height="20"   border="1"   bgcolor="#FFBFAA"   cellpadding="0"    
                    cellspacing="0">  
                    <tr>  
                          <td>  
                              <a   href=""   title="标题1"   onClick="openurl(id);return   false;">&nbsp;</a>  
                          </td>  
                    </tr>  
            </table>  
  </div>  
  <div   id="lay3498_3_2"   onClick=""   style="position:absolute;   width:720px;   height:20px;   z-index:3498;left:277px;   top:   242px;   background-color:   #FFCCCC;   layer-background-  
            color:   #FFCCCC;   border:   1px   none   #000000;">  
            <table   width="100%"   height="20"   border="1"   bgcolor="#FFBFAA"   cellpadding="0"    
                    cellspacing="0">  
                    <tr>  
                          <td>  
                              <a   href=""   title="标题2"   onClick="openurl(id);return   false;">&nbsp;</a>  
                          </td>  
                    </tr>  
            </table>  
  </div>  
  <div   id="lay3498_3_3"   onClick=""   style="position:absolute;   width:720px;   height:20px;   z-index:3498;left:277px;   top:   355px;   background-color:   #FFCCCC;   layer-background-  
            color:   #FFCCCC;   border:   1px   none   #000000;">  
            <table   width="100%"   height="20"   border="1"   bgcolor="#FFBFAA"   cellpadding="0"    
                    cellspacing="0">  
                    <tr>  
                          <td>  
                              <a   href=""   title="标题3"   onClick="openurl(id);return   false;">&nbsp;</a>  
                          </td>  
                    </tr>  
            </table>  
  </div>  
  <div   id="lay3499_1_1"   onClick=""   style="position:absolute;   width:720px;   height:20px;   z-index:3499;left:290px;   top:   355px;   background-color:   #FFCCCC;   layer-background-  
            color:   #FFCCCC;   border:   1px   none   #000000;">  
            <table   width="100%"   height="20"   border="1"   bgcolor="#FFBFAA"   cellpadding="0"    
                    cellspacing="0">  
                    <tr>  
                          <td>  
                              <a   href=""   title="标题3"   onClick="openurl(id);return   false;">&nbsp;</a>  
                          </td>  
                    </tr>  
            </table>  
  </div>  
   
  </body>


 ·+100分,求sql语句    »显示摘要«
    摘要: 我用的是access 数据库procs: id pname typea typeb 数据库typea: id tname 数据库typeb; id tname 这样三个表,由于在procs表中的typea,typeb字端代表相应表中的内容,我想在select procs表中内容时,typea,typeb字缎显示相应typea,typeb表中的名称,请问sql语句怎么写? string sq......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE