点击按钮是传个值到这个页面
判断这个值是否为空.
<%if request("值")<>"" then%>
<!--Begin-->
<%end if%>
<table>
............
</table>
<%if request("值")<>"" then%>
<!--End-->
<%end if%>
判断这个值是否为空.
<%if request("值")<>"" then%>
<!--Begin-->
<%end if%>
<table>
............
</table>
<%if request("值")<>"" then%>
<!--End-->
<%end if%>
<script language="javascript">function addstr(yourhtmlfile){
var myfso,mystream;
myfso=new ActiveXObject("Scripting.FileSystemObject");
mystream=myfso.OpenTextFile(yourhtmlfile,2, true);
//遇到<table>时
mystream.WriteLine("<!--Begin-->");
//遇到</table>时
mystream.WriteLine("<!--End-->");
mystream.close();
}</script>
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<script language="javascript">
function addHtml()
{
id_test.innerHTML = "<!--Begin-->" + id_test.innerHTML + "<!--End-->";
}
</script>
</HEAD><BODY>
<DIV id="id_test">
<TABLE>
<TR>
<TD>123</TD>
<TD>456</TD>
</TR>
<TR>
<TD>789</TD>
<TD>101112</TD>
</TR>
</TABLE>
</DIV>
<INPUT TYPE="button" value="test" onclick="javascript:addHtml();">
</BODY>
</HTML>
也许对你有一定的帮助!!