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

 ·关于图层的问题,谢谢    »显示摘要«
    摘要: 我想要的结果是这样的: <div id="lay3498_3_1" onclick="" style="position:absolute; width:720px; height:20px; z- index:3498;left:277px; top: 169px; background-color: #ffcccc; layer-......
    摘要: 我要自定义一个open对话框,除了common filedialog,添加了一些control,同时使用了hook,在hook proc中有 wm_initdialog的定义,那么请问添加的control在什么地方定义,比如说我要 bool fdex_mfc_dlg::oninitdialog() { cfiledialog::oninitdialog(); clistbox* plb......


关于层的叠加问题,谢谢

我想要的结果是这样的:  
  <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   作者: LuckyBall

up

NO.2   作者: sunxutx

看着有点晕  
  也没看明白楼主的意思


 ·framework本地化工具(可能)    »显示摘要«
    摘要: http://www.thinstall.com/help/index.html?microsoft_netframeworklinki.htm ......
» 本期热门文章:

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