[javasctipt]讓Table隱藏

[javasctipt]讓Table隱藏

<script runat="server">
    
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
        Dim cn As BPMConnection = New BPMConnection
        cn.WebOpen(Me.Page)
        Dim _owner As String = Request.QueryString("owner")
        Dim tid As String = Request.QueryString("tid")  '取得taskid,在申請時判斷如果有表示被退回
        TaskID.Text = tid
    
     
    
       '退回申請人時需顯示簽核歷程
        If tid = "" Then
            
    
        Else
    
            If (Not Page.ClientScript.IsStartupScriptRegistered("alert")) Then
                Page.ClientScript.RegisterStartupScript(Me.GetType(), "alert", "hide_tb();", True)
                'Page.ClientScript.RegisterStartupScript(Me.GetType(), "alert", "tryhidd(); default_hidden();", True)
            End If
    
        End If
 
      End Sub
    
  

</script>
<html xmlns:xform="xmlns:xform">
<head runat="server">
    <title>資訊系統服務申請單</title> <style>
    BODY {FONT-SIZE: 12px; FONT-FAMILY: verdana}
    TABLE {border-collapse: collapse; FONT-SIZE: 12px; FONT-FAMILY: verdana}
    P {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; FONT-SIZE: 12px; FONT-FAMILY: verdana}
    TD {PADDING-RIGHT: 0px; PADDING-LEFT: 2px; PADDING-BOTTOM: 0px}
    TD.NoPadding {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px}
    INPUT {HEIGHT: 20px}
    INPUT.UL {BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: #33ff33 1px solid}
    TEXTAREA {FONT-SIZE:12px}
                                 .style1
                                 {
                                     height: 23px;
                                 }
    </style>
    <%--<script src="browseFolder.js"></script>
    <script language="javascript" type="text/javascript">

    </script>--%> <script src="../../../../js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">


        //隱藏Table
        function hide_tb()
        {
            //alert("hide");
           
            var a;
            a=document.getElementById("table1");
            a.style.visibility = "hidden";
            
        }

  </script>
</head>