try this:css of the div( or layer) "filter:Alpha(Opacity=100)"

解决方案 »

  1.   


    to  diozhu(diozhu): 你那是什麼屬性,沒起作用。下面是源碼
    <HTML>
    <HEAD>
    <SCRIPT>
    <!--
    function com_sssw_AgpPage()
    {
    }function Shandle_B_paster_onClick()
    {
    Page.Field1.value = Page.File1.value;
    Page.submit(this.B_paster.name);
    }
    function Shandle_B_del_onClick()
    {
    if (Page.Ch_list.options.length>0)
       Page.submit(this.B_del.name);
    }
    function Shandle_Button2_onClick()
    {
    if (Page.Ch_list.options.length>0)
       Page.submit(this.Button2.name);
    }function Shandle_B_edit_onClick()
    {

    }
    var Page=new com_sssw_AgpPage();
    function com_sssw_submit(name){document.forms[0].elements['AgEvtSrc'].value=name;document.forms[0].submit();}Page.submit=com_sssw_submit;
    Page.handle_B_paster_onClick=Shandle_B_paster_onClick;
    Page.handle_B_del_onClick=Shandle_B_del_onClick;
    Page.handle_Button2_onClick=Shandle_Button2_onClick;
    Page.handle_B_edit_onClick=Shandle_B_edit_onClick;
    function com_sssw_onBodyLoad(){
    Page.File1=document.forms[0].elements["S33_"];
    Page.Field1=document.forms[0].elements["S34_"];
    Page.B_paster=document.forms[0].elements["S36_"];
    Page.Ch_list=document.forms[0].elements["S38_"];
    Page.B_del=document.forms[0].elements["S39_"];
    Page.Button2=document.forms[0].elements["S42_"];
    Page.F_id=document.forms[0].elements["S57_"];
    Page.Ch_type=document.forms[0].elements["S66_"];
    Page.F_name=document.forms[0].elements["S81_"];
    Page.F_author=document.forms[0].elements["S90_"];
    Page.F_desc=document.forms[0].elements["S105_"];
    Page.B_find=document.forms[0].elements["S110_"];
    Page.B_save=document.forms[0].elements["S124_"];
    Page.B_return=document.forms[0].elements["S125_"];
    Page.Choice2=document.forms[0].elements["S179_"];
    Page.Choice1=document.forms[0].elements["S184_"];
    Page.Field4=document.forms[0].elements["S189_"];
    Page.Field5=document.forms[0].elements["S207_"];
    Page.B_edit=document.forms[0].elements["S208_"];
    Page.TextArea1=document.forms[0].elements["S224_"];
    Page.B_ok=document.forms[0].elements["S226_"];
    Page.B_cancle=document.forms[0].elements["S227_"];
    document.all.Layer1.style.visibility = 'visible'
    }
    //-->
    </SCRIPT>
    </HEAD>
    <BODY onload="com_sssw_onBodyLoad();" BGCOLOR="#FFFFFF"><FORM ENCTYPE="multipart/form-data" ACTION="http://10.1.1.1:8080/TSMTTEST/SilverStream/Pages/file_upload.html" NAME="AG" METHOD="POST"><INPUT TYPE=HIDDEN NAME="AgEvtSrc" VALUE=""><INPUT TYPE=HIDDEN NAME="AgStateCode" VALUE="3">
    <TABLE HEIGHT="200" BORDER="0" BORDERCOLOR="#808080" CELLPADDING="0" WIDTH="800" CELLSPACING="0"><TR><TD><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=0><TR><TD NOWRAP VALIGN="TOP" BGCOLOR="#D3D3D3">
    <INPUT BORDER="0" SRC="/SilverStream/Objectstore/Images/tabicon1.gif" NAME="S8_0" TYPE="IMAGE"></TD><TD NOWRAP VALIGN="TOP">
    <INPUT BORDER="0" SRC="/SilverStream/Objectstore/Images/tabicon2.gif" NAME="S8_1" TYPE="IMAGE"></TD><TD NOWRAP VALIGN="TOP" BGCOLOR="#D3D3D3">
    <INPUT BORDER="0" SRC="/SilverStream/Objectstore/Images/tabicon1.gif" NAME="S8_2" TYPE="IMAGE"></TD></TR></TABLE></TD></TR><TD VALIGN="TOP" HEIGHT="180">
    <TABLE BORDER=0 BORDERCOLOR="#808080" CELLPADDING=0 CELLSPACING=1>
    <TR>
    <TD VALIGN=TOP>
    </TD>
    </TR>
    <TR>
    <TD VALIGN=TOP>
    <TABLE BORDER="0" CELLSPACING="1" CELLPADDING="0" BORDERCOLOR="#808080"><TR><TD VALIGN="TOP">
    <FONT SIZE=2><SPAN STYLE="font-size:12;">文檔ID:</SPAN></FONT></TD><TD VALIGN="TOP">
    <INPUT NAME="S57_" TYPE="TEXT" VALUE SIZE="20"></TD><TD VALIGN="TOP">
    <FONT SIZE=2><SPAN STYLE="font-size:12;">文档类型:</SPAN></FONT></TD><TD VALIGN="TOP">
    <SELECT NAME="S66_">
    <OPTION VALUE=0 SELECTED>1--原料</OPTION>
    <OPTION VALUE=1>2--成品</OPTION>
    <OPTION VALUE=2>3--半成品</OPTION>
    </SELECT>
    </TD><TD VALIGN="TOP">
    </TD></TR><TR><TD VALIGN="TOP">
    <FONT SIZE=2><SPAN STYLE="font-size:12;">文档名称:</SPAN></FONT></TD><TD VALIGN="TOP">
    <INPUT NAME="S81_" TYPE="TEXT" VALUE SIZE="20"></TD><TD VALIGN="TOP">
    <FONT SIZE=2><SPAN STYLE="font-size:12;">作者:</SPAN></FONT></TD><TD VALIGN="TOP">
    <INPUT NAME="S90_" TYPE="TEXT" VALUE SIZE="12"></TD><TD VALIGN="TOP">
    </TD></TR><TR><TD VALIGN="TOP">
    <FONT SIZE=2><SPAN STYLE="font-size:12;">文檔描述:</SPAN></FONT></TD><TD VALIGN="TOP">
    <INPUT NAME="S105_" TYPE="TEXT" VALUE SIZE="20"></TD><TD VALIGN="TOP">
    <INPUT NAME="S110_" TYPE="SUBMIT" VALUE="查  询"></TD><TD VALIGN="TOP">
    </TD><TD VALIGN="TOP">
    </TD></TR></TABLE></TD>
    </TR>
    <TR>
    <TD VALIGN=TOP>
    <TABLE BORDER=0 BORDERCOLOR="#808080" CELLPADDING=0 CELLSPACING=1>
    <TR>
    <TD VALIGN=TOP WIDTH=220>
    <P><INPUT NAME="S124_" TYPE="SUBMIT" VALUE="保    存"><INPUT NAME="S125_" TYPE="SUBMIT" VALUE="返    回"></TD>
    <TD VALIGN=TOP WIDTH=166>
    <P></TD>
    <TD VALIGN=TOP WIDTH=164>
    <P></TD>
    <TD VALIGN=TOP>
    <P></TD>
    </TR>
    </TABLE></TD>
    </TR>
    <TR>
    <TD VALIGN=TOP>
    </TD>
    </TR>
    <TR>
    <TD VALIGN=TOP>
    <TABLE CELLSPACING="0" BORDER="1" BORDERCOLOR="#808080" CELLPADDING="0" WIDTH="755"><TR><TD VALIGN="BOTTOM" WIDTH="124" ALIGN="CENTER">
    <FONT SIZE=2><SPAN STYLE="font-size:12;">文檔ID</SPAN></FONT></TD><TD VALIGN="BOTTOM" WIDTH="80" ALIGN="CENTER">
    <FONT SIZE=2><SPAN STYLE="font-size:12;">文档名称</SPAN></FONT></TD><TD VALIGN="BOTTOM" WIDTH="51" ALIGN="CENTER">
    <FONT SIZE=2><SPAN STYLE="font-size:12;">单位</SPAN></FONT></TD><TD VALIGN="BOTTOM" WIDTH="67" ALIGN="CENTER">
    <FONT SIZE=2><SPAN STYLE="font-size:12;">文档类型</SPAN></FONT></TD><TD VALIGN="BOTTOM" WIDTH="78" ALIGN="CENTER">
    <FONT SIZE=2><SPAN STYLE="font-size:12;">作者</SPAN></FONT></TD><TD VALIGN="BOTTOM" WIDTH="62" ALIGN="CENTER">
    <FONT SIZE=2><SPAN STYLE="font-size:12;">操作员</SPAN></FONT></TD><TD VALIGN="BOTTOM" WIDTH="118" ALIGN="CENTER">
    <FONT SIZE=2><SPAN STYLE="font-size:12;">文文件路径</SPAN></FONT></TD><TD VALIGN="BOTTOM" WIDTH="157" ALIGN="CENTER">
    <FONT SIZE=2><SPAN STYLE="font-size:12;">文檔描述</SPAN></FONT></TD></TR><TR><TD VALIGN="TOP" WIDTH="124">
    <FONT SIZE=2><SPAN STYLE="font-size:12;">file200303170030
    </SPAN></FONT></TD><TD VALIGN="TOP" WIDTH="80">
    <FONT SIZE=2><SPAN STYLE="font-size:12;">project1.pdm
    </SPAN></FONT></TD><TD VALIGN="TOP" WIDTH="51">
    <SELECT NAME="S127_R0_179_">
    </SELECT>
    </TD><TD VALIGN="TOP" WIDTH="67">
    <SELECT NAME="S127_R0_184_">
    <OPTION VALUE=0 SELECTED>1--原料</OPTION>
    <OPTION VALUE=1>2--成品</OPTION>
    <OPTION VALUE=2>3--半成品</OPTION>
    </SELECT>
    </TD><TD VALIGN="TOP" WIDTH="78">
    <FONT SIZE=2><SPAN STYLE="font-size:12;"><INPUT NAME="S127_R0_189_" MAXLENGTH="12" TYPE="TEXT" VALUE="james" SIZE="12"></SPAN></FONT></TD><TD VALIGN="TOP" WIDTH="62">
    <FONT SIZE=2><SPAN STYLE="font-size:12;">james
    </SPAN></FONT></TD><TD VALIGN="TOP" WIDTH="118">
    <FONT SIZE=2><SPAN STYLE="font-size:12;">upload_file/project1.pdm
    </SPAN></FONT></TD><TD VALIGN="TOP" WIDTH="157">
    <FONT SIZE=2><SPAN STYLE="font-size:12;"><INPUT NAME="S127_R0_207_" TYPE="TEXT" VALUE SIZE="10"><INPUT NAME="S127_R0_208_" TYPE="SUBMIT" onClick="Page.handle_B_edit_onClick();" VALUE="编辑"></SPAN></FONT></TD></TR></TABLE></TD>
    </TR>
    <TR>
    <TD VALIGN=TOP>
    </TD>
    </TR>
    <TR>
    <TD VALIGN=TOP>
    </TD>
    </TR>
    </TABLE></TD></TABLE>
    <P><DIV ID="Layer1" STYLE="position:absolute; left:200px; top:150px; width:329px; background-color: #CCCCCC; layer-background-color: #CCCCCC;哈height:112px; z-index:100; visibility: hidden;filter:Alpha(Opacity=100)">
    <TABLE BORDER=1 BORDERCOLOR="#808080" CELLPADDING=0 CELLSPACING=1 WIDTH=0%>
    <TR>
    <TD VALIGN=TOP>
    </TD>
    </TR>
    <TR>
    <TD VALIGN=TOP>
    请输入文档描述:</TD>
    </TR>
    <TR>
    <TD VALIGN=TOP>
    <TEXTAREA NAME="S224_" ROWS="6" COLS="40"></TEXTAREA>
    </TD>
    </TR>
    <TR>
    <TD VALIGN=TOP>
    <INPUT NAME="S226_" TYPE="SUBMIT" VALUE="确定"><INPUT NAME="S227_" TYPE="SUBMIT" VALUE="取消"></TD>
    </TR>
    </TABLE></DIV>
    </FORM></BODY>
    </HTML>
      

  2.   

    我上面的那个属性是透明值,遇到下啦框肯定没用。
    晕死
    好乱的代码,建议你不要用div,用个frame吧,(或者iframe)应该可以解决的。
    如果还不行就自己写一个下啦菜单,用table写不占资源(相对div)。
      

  3.   

    to diozhu(diozhu) :
    能不能給個用个frame吧,(或者iframe)应该可以解决的例子
      

  4.   

    看看这个例子,ie5下通过
    <style>
    .pad {position:absolute;display:none;z-index:100}
    </style><table>
    <tr>
     <td onclick="ShowPopMenu('pad1')">pad1</td>
     <td onclick="ShowPopMenu('pad2')">pad2</td>
    </tr>
    </table>
    <span id="pad1" class="pad">
     <iframe src=w2.htm width=100 height=100 frameborder=no style="position:relative;"></iframe>
    </span>
    <span id="pad2" class="pad">
     <iframe src=about:blank name=popmenu2 width=100 height=100 frameborder=no style="position:relative;"></iframe>
    </span><div style="z-index:0">
    <select>
    <option>aaa
    <option>bbb
    <option>ccc
    </select>
    <br>
    <iframe src=></iframe>
    <span id="view" style="position:absolute;z-index:0"></span>
    </div><script>
    function test(v) {
      v.innerHTML = "ssss<br><iframe src=w2.htm width=200 height=100 style=\"position:relative\"></iframe>";
    }popmenu2.document.write("aaaaaaa<br>ssssssssss<br>ccccccccc<br>tttttttt");function CloseAllPopMenu() {
      var i = 1;
      while(document.all["pad"+i]) {
        document.all["pad"+i].style.display = "none";
        i++;
      }
    }function ShowPopMenu(v) {
      var el = event.srcElement;
      v = document.all[v];
      CloseAllPopMenu();
      v.style.left = el.offsetLeft;
      v.style.display = "block";
    }</script>