如题,只要在页面刷新时或者打开时让<input id="xzqh" type="button" class="inputbox" onClick="showOptions(this)" value="行政区划选择"/>
<input id="sj" type="button" class="inputbox" onClick="showOptions(this)" value="时间选择"/>
这两个的value等于隐藏域的value就行<body OnLoad=load()>
<!-- <FORM method="POST" name="myform" action="<%=request.getContextPath()%>/specialConfig!saveReport.action"> -->
<FORM method="POST" name="myform" action="<%=request.getContextPath()%>/specialConfig!saveReport.action">
<input name="S_SPECIAL_ID" type="hidden" value="<ww:property value="S_SPECIAL_ID"/>"/>
<input name="S_AREA_NO" type="hidden" value="<ww:property value="S_XZQH"/>"/>
<input name="S_TAB" type="hidden" value="<ww:property value="S_TAB"/>"/>
<input name="S_FOREVER_TAB_ID" type="hidden" value="<ww:property value="S_FOREVER_TAB_ID"/>"/>
<input name="S_SJ" value="<ww:property value="S_SJ"/>"/>
<input name="S_XZQH" value="<ww:property value="S_XZQH"/>"/>
<input name="S_TARGET_NAME" value="<ww:property value="S_TARGET_NAME"/>"/>
<input name="S_SJ_DESC" value="<ww:property value="S_SJ_DESC"/>"/>
<TABLE border="0" cellpadding="2" cellspacing="1">
<tr>
<td><input id="xzqh" type="button" class="inputbox" onClick="showOptions(this)" value="行政区划选择"/></td>
<td><input id="sj" type="button" class="inputbox" onClick="showOptions(this)" value="时间选择"/></td>
<td><input type=button name=xxx value="查询" onclick="chacha()" ></td>
</tr>
<div id="xzqh_options" class="optionsbox" targetBox="xzqh" style="overflow-y:auto;overflow-x:false">
<table class='tb_noline'><tr><td><input name='button2' onClick='closeOptPanel("xzqh_options");' type='button' class='annu_bj_fang' id='button2' value='关闭' /></td></tr></table>
</div>
<div id="sj_options" class="optionsbox" style="z-index:10;position:absolute;left:270;top:50;background-color:white;border:2px solid orange;display:none">
<table class='tb_noline'><tr><td><input name='button2' onClick='closeOptPanel("sj_options");' type='button' class='annu_bj_fang' id='button2' value='关闭' /></td></tr></table>
</div>
<script language="javascript" type="text/javascript">
//parent.frames["mframe"].cols="200,*";
window.xzqhtree = new MzTreeView("xzqhtree"); xzqhtree.setIconPath("<%=request.getContextPath()%>/js/MzTreeView12/images/"); //可用相对路径
<ww:iterator value="xzqhList" status="dll">
xzqhtree.N["<ww:property value="xzqhList[#dll.index].S_SUPER_TARGET_ID"/>-<ww:property value="xzqhList[#dll.index].S_TARGET_ID"/>"] = "T:<ww:property value="xzqhList[#dll.index].S_TARGET_NAME"/>;hint:<ww:property value="xzqhList[#dll.index].S_TARGET_DESC"/>;C:f_modify_xzqh('<ww:property value="xzqhList[#dll.index].S_TYPE_ID"/>','<ww:property value="xzqhList[#dll.index].S_SELF_TARGET_ID"/>','<ww:property value="xzqhList[#dll.index].S_TARGET_ID"/>','<ww:property value="xzqhList[#dll.index].S_TARGET_NAME"/>','<ww:property value="xzqhList[#dll.index].S_TARGET_DESC"/>');"
</ww:iterator>
xzqhtree.relateParent = false
xzqhtree.relateChild = false
xzqhtree.setURL("#");
xzqhtree.wordLine = false;
//tree.setTarget("main");
//document.getElementById("xzqh_options").innerHTML="<table class=\'tb_noline'><tr><td><input name='button2' onClick='closeOptPanel(\"xzqh_options\");' type='button' class='annu_bj_fang' id='button2' value='关闭' /></td></tr></table>"+xzqhtree.toString();
document.getElementById("xzqh_options").innerHTML=xzqhtree.toString();
//xzqhtree.expandAll();
</script>
<script language="javascript" type="text/javascript">
//parent.frames["mframe"].cols="200,*";
var ihtml = '<table>';
//ihtml = ihtml + '<tr><td><ww:property value="sjList[#dll.index].S_SJ"/>-<ww:property value="sjList[#dll.index].S_SJ_DESC"/></td></tr>';
//ihtml = ihtml + '<tr><td><a href="javascript:xuan(\'<ww:property value="sjList[#dll.index].S_SJ"/>\');"><ww:property value="sjList[#dll.index].S_SJ_DESC"/></a></td></tr>';
//ihtml = ihtml + '<tr><td><ww:property value="sjList[#dll.index].S_SJ"/></td></tr>';
<ww:iterator value="sjList" status="dll">
ihtml = ihtml + '<tr><td><a href="javascript:xuan(\'<ww:property value="sjList[#dll.index].S_SJ"/>\');"><ww:property value="sjList[#dll.index].S_SJ_DESC"/></a></td></tr>';
</ww:iterator> ihtml = ihtml + '</table>';
document.getElementById("sj_options").innerHTML=ihtml;</script>
<TR>
<TD>编辑内容:</TD>
<TD>
<ww:if test="listSpecialAnalyzeReport.size==0">
<INPUT type="hidden" name="content1" value="<ww:property value="null"/>">
</ww:if>
<ww:else>
<INPUT type="hidden" name="content1" value="<ww:property value="listSpecialAnalyzeReport[0].S_ANALYZE_REPORT"/>">
</ww:else>
<IFRAME ID="eWebEditor1" src="<%=request.getContextPath()%>/eWebEditor/eWebEditor.jsp?id=content1&style=standard" frameborder="0" scrolling="no" width="650" height="350"></IFRAME>
</TD>
</TR>
<TR>
<TD colspan=2 align=right>
<INPUT type=submit name=b1 value="提交">
<INPUT type=reset name=b2 value="重填">
</TD>
</TR></TABLE>
</FORM></body>
</HTML>
<input id="sj" type="button" class="inputbox" onClick="showOptions(this)" value="时间选择"/>
这两个的value等于隐藏域的value就行<body OnLoad=load()>
<!-- <FORM method="POST" name="myform" action="<%=request.getContextPath()%>/specialConfig!saveReport.action"> -->
<FORM method="POST" name="myform" action="<%=request.getContextPath()%>/specialConfig!saveReport.action">
<input name="S_SPECIAL_ID" type="hidden" value="<ww:property value="S_SPECIAL_ID"/>"/>
<input name="S_AREA_NO" type="hidden" value="<ww:property value="S_XZQH"/>"/>
<input name="S_TAB" type="hidden" value="<ww:property value="S_TAB"/>"/>
<input name="S_FOREVER_TAB_ID" type="hidden" value="<ww:property value="S_FOREVER_TAB_ID"/>"/>
<input name="S_SJ" value="<ww:property value="S_SJ"/>"/>
<input name="S_XZQH" value="<ww:property value="S_XZQH"/>"/>
<input name="S_TARGET_NAME" value="<ww:property value="S_TARGET_NAME"/>"/>
<input name="S_SJ_DESC" value="<ww:property value="S_SJ_DESC"/>"/>
<TABLE border="0" cellpadding="2" cellspacing="1">
<tr>
<td><input id="xzqh" type="button" class="inputbox" onClick="showOptions(this)" value="行政区划选择"/></td>
<td><input id="sj" type="button" class="inputbox" onClick="showOptions(this)" value="时间选择"/></td>
<td><input type=button name=xxx value="查询" onclick="chacha()" ></td>
</tr>
<div id="xzqh_options" class="optionsbox" targetBox="xzqh" style="overflow-y:auto;overflow-x:false">
<table class='tb_noline'><tr><td><input name='button2' onClick='closeOptPanel("xzqh_options");' type='button' class='annu_bj_fang' id='button2' value='关闭' /></td></tr></table>
</div>
<div id="sj_options" class="optionsbox" style="z-index:10;position:absolute;left:270;top:50;background-color:white;border:2px solid orange;display:none">
<table class='tb_noline'><tr><td><input name='button2' onClick='closeOptPanel("sj_options");' type='button' class='annu_bj_fang' id='button2' value='关闭' /></td></tr></table>
</div>
<script language="javascript" type="text/javascript">
//parent.frames["mframe"].cols="200,*";
window.xzqhtree = new MzTreeView("xzqhtree"); xzqhtree.setIconPath("<%=request.getContextPath()%>/js/MzTreeView12/images/"); //可用相对路径
<ww:iterator value="xzqhList" status="dll">
xzqhtree.N["<ww:property value="xzqhList[#dll.index].S_SUPER_TARGET_ID"/>-<ww:property value="xzqhList[#dll.index].S_TARGET_ID"/>"] = "T:<ww:property value="xzqhList[#dll.index].S_TARGET_NAME"/>;hint:<ww:property value="xzqhList[#dll.index].S_TARGET_DESC"/>;C:f_modify_xzqh('<ww:property value="xzqhList[#dll.index].S_TYPE_ID"/>','<ww:property value="xzqhList[#dll.index].S_SELF_TARGET_ID"/>','<ww:property value="xzqhList[#dll.index].S_TARGET_ID"/>','<ww:property value="xzqhList[#dll.index].S_TARGET_NAME"/>','<ww:property value="xzqhList[#dll.index].S_TARGET_DESC"/>');"
</ww:iterator>
xzqhtree.relateParent = false
xzqhtree.relateChild = false
xzqhtree.setURL("#");
xzqhtree.wordLine = false;
//tree.setTarget("main");
//document.getElementById("xzqh_options").innerHTML="<table class=\'tb_noline'><tr><td><input name='button2' onClick='closeOptPanel(\"xzqh_options\");' type='button' class='annu_bj_fang' id='button2' value='关闭' /></td></tr></table>"+xzqhtree.toString();
document.getElementById("xzqh_options").innerHTML=xzqhtree.toString();
//xzqhtree.expandAll();
</script>
<script language="javascript" type="text/javascript">
//parent.frames["mframe"].cols="200,*";
var ihtml = '<table>';
//ihtml = ihtml + '<tr><td><ww:property value="sjList[#dll.index].S_SJ"/>-<ww:property value="sjList[#dll.index].S_SJ_DESC"/></td></tr>';
//ihtml = ihtml + '<tr><td><a href="javascript:xuan(\'<ww:property value="sjList[#dll.index].S_SJ"/>\');"><ww:property value="sjList[#dll.index].S_SJ_DESC"/></a></td></tr>';
//ihtml = ihtml + '<tr><td><ww:property value="sjList[#dll.index].S_SJ"/></td></tr>';
<ww:iterator value="sjList" status="dll">
ihtml = ihtml + '<tr><td><a href="javascript:xuan(\'<ww:property value="sjList[#dll.index].S_SJ"/>\');"><ww:property value="sjList[#dll.index].S_SJ_DESC"/></a></td></tr>';
</ww:iterator> ihtml = ihtml + '</table>';
document.getElementById("sj_options").innerHTML=ihtml;</script>
<TR>
<TD>编辑内容:</TD>
<TD>
<ww:if test="listSpecialAnalyzeReport.size==0">
<INPUT type="hidden" name="content1" value="<ww:property value="null"/>">
</ww:if>
<ww:else>
<INPUT type="hidden" name="content1" value="<ww:property value="listSpecialAnalyzeReport[0].S_ANALYZE_REPORT"/>">
</ww:else>
<IFRAME ID="eWebEditor1" src="<%=request.getContextPath()%>/eWebEditor/eWebEditor.jsp?id=content1&style=standard" frameborder="0" scrolling="no" width="650" height="350"></IFRAME>
</TD>
</TR>
<TR>
<TD colspan=2 align=right>
<INPUT type=submit name=b1 value="提交">
<INPUT type=reset name=b2 value="重填">
</TD>
</TR></TABLE>
</FORM></body>
</HTML>
window.onload=function(){
document.getElementById('xzqh').value=document.getElementById('hide1').innerHTML;
document.getElementById('sj').value=document.getElementById('hide2').innerHTML;
}
这个onload有没有结束语句啊
document.getElementById('xzqh').value=document.getElementById('hide1').innerHTML;
document.getElementById('sj').value=document.getElementById('hide2').innerHTML;
});
function load()
{
alert(!!!!);
}
</SCRIPT>
<body onload="load()">
我的动能现在好使了,但是它刷新两遍就出个This application is not currently
这是为啥呢