<script language="javascript">
<!--
function mysub()
{
esave.style.visibility="visible";
}
-->
</script>
<div id="esave" style="position:absolute; top:0px; left:20px; z-index:0; visibility:hidden"> 
<TABLE WIDTH=340 BORDER=0 CELLSPACING=0 CELLPADDING=0>
      <TR><td width=20%></td>
<TD bgcolor=#104A7B width="60%"> 
<TABLE WIDTH=100% height=120 BORDER=0 CELLSPACING=1 CELLPADDING=0>
<TR> 
          <td bgcolor=#eeeeee align=center><font color=red>哈哈~显示啦~
...</font></td>
</tr>
</table>
</td><td width=20%></td>
</tr></table></div>
<input type="submit" name="Submit" value="上传" style="border: 1px solid #F0E6DC" onclick="javascript:mysub()">

解决方案 »

  1.   

    <Script Language="JavaScript">
    <!--
    function clear_obj() {
       document.all.obj_1.style.display = "none";
       document.all.obj_2.style.display = "none";
       document.all.obj_3.style.display = "none";
       document.all.obj_4.style.display = "block";
    }
    function re_set() {
       document.all.obj_1.style.display = "block";
       document.all.obj_2.style.display = "block";
       document.all.obj_3.style.display = "block";
       document.all.obj_4.style.display = "none";
    }
    //-->
    </Script><div id="obj_1">对象一</div>
    <div id="obj_2">对象二</div>
    <div id="obj_3">对象三</div>
    <div id="obj_4" style="display:none">对象四</div>
    <br>
    <input type="button" value="清除" onClick="clear_obj();"><input type="button" value="恢复" onClick="re_set();">
      

  2.   

    <script language="javascript">
    <1--
      
    //-->
    </script><table>
    <tr>
    <td><div id=d1>aaa</td>
    </tr>
    <tr>
    <td><div id=d2>bbb</td>
    </tr>
    <tr>
    <td><div id=d3>ccc</td>
    </tr>
    <tr>
    <td><div id=d4 style=display:none>ddd</td>
    </tr>
    </table><p>
    <input type=button value=show onclick="for(var i=1;i<4;i++){document.getElementById('d'+i).style.display='none';}document.all.d4.style.display='';">
    <input type=button value=hidden onclick="for(var i=1;i<4;i++){document.getElementById('d'+i).style.display='';}document.all.d4.style.display='none';">
      

  3.   

    谢谢大家,但我想大家可能理解错了。
    我是说样式表,不是层或表格.flash0008(虫子) 的方式不错,不知道可不可以再帮俺改进一下样式表应该是读 title 而不是 id
    隐藏样式表应该是将原来的 rel="stylesheet" 改变成 rel="alternate stylesheet"。
    例如:
    <link rel="stylesheet" title="obj_1" href="/css/Screen.css" type="text/css" media="screen">
    <link rel="stylesheet" title="obj_2" href="/css/Style.css" type="text/css" media="all">
    <link rel="stylesheet" title="obj_3" href="/css/KM.css" type="text/css" media="screen">
    <link rel="alternate stylesheet" title="obj_4" href="/css/Print.css" type="text/css" media="all">
    点了清除之后rel数值应该变成
    <link rel="alternate stylesheet" title="obj_1" href="/css/Screen.css" type="text/css" media="screen">
    <link rel="alternate stylesheet" title="obj_2" href="/css/Style.css" type="text/css" media="all">
    <link rel="alternate stylesheet" title="obj_3" href="/css/KM.css" type="text/css" media="screen">
    <link rel="stylesheet" title="obj_4" href="/css/Print.css" type="text/css" media="all">...现在大家看明白我的问题了吧?
    帮帮忙..thx.
      

  4.   


    <link rel="stylesheet" id="xxxx" href="xxxx.css" type="text/css" media="all"><script>
    function RemoveStyle()
    {
    document.all.xxxx.ref="alternate stylesheet";
    alert(document.all.xxxx.ref);
    }
    </script>
      

  5.   

    function clear_obj() {
      document.styleSheets[0].disabled = true;
       document.styleSheets[1].disabled = true;
       document.styleSheets[2].disabled = true;
       document.styleSheets[3].disabled = false;
    }
    function re_set() {
       document.styleSheets[0].disabled = false;
       document.styleSheets[1].disabled = false;
       document.styleSheets[2].disabled = false;
       document.styleSheets[3].disabled = true;
    }
      

  6.   

    LINK--------------------------------------------------------------------------------DescriptionUsed to specify a typed hyperlink between the document and some other resource.Syntax
    <LINK
    DISABLED
    HREF=url
    ID=value
    MEDIA=SCREEN | PRINT | ALL
    REL=STYLESHEET
    TITLE=text
    TYPE="text/css" 
    >Parameter Description 
    DISABLED  Used to disable an element. This attribute prevents an element from receiving the focus, and causes the element to appear "grayed out."  
    HREF=url  Specifies the destination URL or anchor point. 
    ID=value  An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position. 
    MEDIA= SCREEN | PRINT | ALL  Describes the output device for the document. A value of "PRINT" does not affect the on-screen layout. Default value is ALL. SCREEN  Output is intended for non-paged computer screens.  
    PRINT  Output is intended for paged, opaque material and for documents on screen viewed in print preview mode.  
    ALL  Applies to all devices.  
     
    REL=STYLESHEET  The REL attribute gives the relationship(s) described by the hypertext link from the anchor to the target. Values and their semantics will be registered by the HTML registration authority. The default relationship if none other is given is void. The REL attribute is only used when the HREF= attribute is present. 
    TITLE=text  Used to provide advisory information.  
    TYPE="text/css"  Indicates the type of style sheet. ResThis element may only be used within the HEAD tag. Example<LINK REL=stylesheet HREF="styles.css" TYPE="text/css">Scripting ObjectLINK 
      

  7.   

    function clear_obj() {
      document.styleSheets[0].disabled = true;
       document.styleSheets[1].disabled = true;
       document.styleSheets[2].disabled = true;
       document.styleSheets[3].disabled = false;
    }
    function re_set() {
       document.styleSheets[0].disabled = false;
       document.styleSheets[1].disabled = false;
       document.styleSheets[2].disabled = false;
       document.styleSheets[3].disabled = true;
    }请问那link 里我要加什么?ID="0" - "3" ?????????
      

  8.   

    <script>
    function  aa(){
      if(document.table4.visibility=hidden){
         document.table1.visibility=default
         document.table2.visibility=default
         document.table3.visibility=default
                                            }
      else{
         document.table1.visibility=hidden
         document.table2.visibility=hidden
         document.table3.visibility=hidden
          }
    }
    function bb(){
         document.table4.visibility=hidden
         document.table1.visibility=default
         document.table2.visibility=default
         document.table3.visibility=default
                    }
    </script>
    <body>
    <table name=table1 boder=1>
    <tr>
    <td></td>
    </tr>
    </table>
    <table name=table2 boder=1>
    <tr>
    <td></td>
    </tr>
    </table><table name=table3 boder=1>
    <tr>
    <td></td>
    </tr>
    </table>
    <table name=table4 boder=1>
    <tr>
    <td></td>
    </tr>
    </table>
    <from name="from1">
    <input type="submit" name="submint1" onclick=aa() value="向下翻">
    <input type="submit" name="submint1" onclick=bb() value="向上翻">
    >
    </body>
      

  9.   

    哎...看来csdn高手并不是很多...