- 浏览: 191635 次
- 性别:
- 来自: 深圳
最新评论
-
shis_y:
那是你的localhost或者web服务器的80端口被占用或者 ...
通过虚拟地址解决fckeditor错误的加载/fckeditor/fckstyles.xml -
forcer521:
com.gemt.dataswap.util.Constant ...
使用DES算法进行加密和解密 -
ngn9999:
dTree确实不错,这是我的使用经验: http://www. ...
javascript树型菜单(Dtree和Xtree) -
yueliangwolf:
这个dhtmlxtree.js里面有enableSmartXM ...
使用xml或者json方式生成dhtmlxtree -
yanMouse:
谢谢,能否有个联系方式,我现在也在看这方面的东西
dhtmlxtree的一个实用demo
<%@page contentType="text/html;charset=UTF-8" %>
<%@taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>main</title>
<link href="${pageContext.request.contextPath}/css/main.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="${pageContext.request.contextPath}/js/prototype-1.4.0.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/scriptaculous.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/overlibmws.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/ajaxtags-1.2-beta2.js"></script>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/ajaxtags.css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/displaytag.css" />
<script language="javascript">
var baseUrl = "${pageContext.request.contextPath}";
var currTimeT='FTD0311_SNPH_R';
var histT='FTD0322_SNP_C';
var fName='BRFL';
var currentTable=currTimeT;
var disPicUrl=baseUrl+'/qxxx/cache/images/'+currentTable+'/BRFL/';
</script>
<script src="${pageContext.request.contextPath}/js/comm.js" type="text/javascript"></script>
<script language="javascript">
window.onload=Page_Load;
function showHistory(flag)
{
if (flag==1)
{
<c:if test="${param.meeting != '1'}">
document.all.showHistoryYear.style.display = '';
document.all.showHistoryYearInfor.style.display = '';
document.all.showHistoryTypes.style.display='';
</c:if>
$('selectpic').value=2;
currentTable=histT;
disPicUrl=baseUrl+'/qxxx/cache/images/'+currentTable+'/BRFL/';
}
else
{
document.all.showHistoryYear.style.display = 'none';
document.all.showHistoryYearInfor.style.display = 'none';
document.all.showHistoryTypes.style.display='none';
$('selectpic').value=1;
currentTable=currTimeT;
disPicUrl=baseUrl+'/qxxx/cache/images/'+currentTable+'/BRFL/';
}
//alert(disPicUrl);
$('seltime').fireEvent("onchange");
}
function getPictList()
{
var retStr = "";
for (i=0;i<document.all["drpPicture"].options.length;i++)
{
if (retStr == "")
{
retStr = document.all["drpPicture"].options[i].value;
}
else
{
retStr = retStr + "," + document.all["drpPicture"].options[i].value;
}
}
return retStr;
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" height="100%">
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table-space">
<!-- 上弧 -->
<tr>
<td height="7"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="7"><img src="${pageContext.request.contextPath}/images/table_top_left.gif" width="7" height="7"></td>
<td background="${pageContext.request.contextPath}/images/table_top_bg.gif"><img src="${pageContext.request.contextPath}/images/spacer.gif" width="1" height="1"></td>
<td width="7"><img src="${pageContext.request.contextPath}/images/table_top_right.gif" width="7" height="7"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<!-- 左直线 -->
<td width="1" bgcolor="B8B8B8"><img src="${pageContext.request.contextPath}/images/spacer.gif" width="1" height="1"></td>
<td class="table-bg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="ititle">云图选择</td>
</tr>
<tr>
<td align="center">当前卫星:
<select name="seltime" id="seltime" style="width:86"><!-- onChange=showhistory()-->
<c:forEach var="scnm" items="${requestScope.scnmList}" >
<option value="${scnm.satcd}">${scnm.satnm}</option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<td class="b1">
<input type="hidden" id="selectpic" name="selectpic" value="1" />
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr><td width="18"><input id="selectpic1" type="radio" name="radiobutton" value="radiobutton" onClick="showHistory(0,this);" checked></td><td><label for="selectpic1" class="lbl">实时气象云图</label></td></tr>
<tr><td><input id="selectpic2" type="radio" name="radiobutton" value="radiobutton" onClick="showHistory(1,this);"></td><td><label for="selectpic2" class="lbl">历史气象云图</label></td></tr>
<tr><td> </td><td><table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td width="18"><input id="radioButton12" type="radio" name="radioButton2" onClick="$('imgTyp').value=2019;$('seltime').fireEvent('onchange');" value="radiobutton" checked></td><td><label href="#" onClick="$('radioButton12').click();return false;" class="lbl2">红外云图</label></td></tr></table></td></tr>
<tr><td> </td><td><table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td width="18"><input id="radioButton13" type="radio" name="radioButton2" onClick="$('imgTyp').value=2018;$('seltime').fireEvent('onchange');" value="radiobutton"></td><td><label href="#" onClick="$('radioButton13').click();return false;" class="lbl2">可见光云图</label></td></tr></table></td>
<tr><td> </td><td><table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td width="18"><input id="radioButton14" type="radio" name="radioButton2" onClick="$('imgTyp').value=8787;$('seltime').fireEvent('onchange');" value="radiobutton"></td><td><label href="#" onClick="$('radioButton14').click();return false;" class="lbl2">水汽云图</label></td></tr></table></td>
</tr>
</table><input type="hidden" name="imgTyp" value="2019"/></td>
</tr>
<tr id="showHistoryYear" style="display:none">
<td align="left"> 年月选择:<select name=selYear style="width:52" id=selYear><!-- onChange=showYearPic() -->
<c:forEach var="year" items="${requestScope.yearList}" >
<option value="${year}" <c:if test="${year eq curYear}">selected</c:if> >${year}</option>
</c:forEach>
</select>
<select name=selMonth style="width:38" id=selMonth><!-- onChange=showYearPic() -->
<c:forEach var="month" items="${requestScope.monthList}" >
<option value="${month}" <c:if test="${month eq curMonth}">selected</c:if> >${month}</option>
</c:forEach>
</select>
</td>
</tr>
<tr id="showHistoryTypes" style="display:none">
<td align="left"> 类别选择:<select name=selTypes style="width:94" id=selTypes><!-- onChange=showYearPic() -->
<option value="">全部</option>
<option value="6266">暴雨</option>
<option value="6267">台风</option>
</select>
</td>
</tr>
<tr id="showHistoryYearInfor" style="display:none">
<td align="left"> 天气过程:<select name=selYearPic style="width:94" id=selYearPic>
</select>
</td>
</tr>
<!-- 右直线 --> </table></td>
<td width="1" bgcolor="B8B8B8"><img src="/images/spacer.gif" width="1" height="1"></td>
</tr>
</table></td>
</tr>
<!-- 下弧 -->
<tr>
<td height="8"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="7"><img src="${pageContext.request.contextPath}/images/table_bottom_left.gif" width="7" height="8"></td>
<td background="${pageContext.request.contextPath}/images/table_bottom_bg.gif"><img src="/images/spacer.gif" width="1" height="1"></td>
<td width="7"><img src="${pageContext.request.contextPath}/images/table_bottom_right.gif" width="7" height="8"></td>
</tr>
</table></td>
</tr>
</table>
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table-space">
<tr>
<td height="7"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="7"><img src="${pageContext.request.contextPath}/images/table_top_left.gif" width="7" height="7"></td>
<td background="${pageContext.request.contextPath}/images/table_top_bg.gif"><img src="/images/spacer.gif" width="1" height="1"></td>
<td width="7"><img src="${pageContext.request.contextPath}/images/table_top_right.gif" width="7" height="7"></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1" bgcolor="B8B8B8"><img src="${pageContext.request.contextPath}/images/spacer.gif" width="1" height="1"></td>
<td class="table-bg"><table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="ititle">播放控制</td>
</tr>
<tr>
<td align="left">
选择卫星云图:</td>
</tr>
<tr>
<td align="center">
<select name="drpPicture" id="drpPicture" size="8" multiple class="width" onChange="changePicture();">
<c:forEach var="snph" items="${requestScope.snphList}" >
<option value="${snph.imagePath}"><fmt:formatDate value="${snph.dateTime}" pattern="yyyy-MM-dd HH时mm分"/></option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<td align="center"> <input name="Submit" type="submit" class="buttons" value="第一张" onClick="first()">
<input name="Submit2" type="submit" class="buttons" value="末一张" onClick="last();">
</td>
</tr>
<tr>
<td align="center"> <input name="Submit4" type="submit" class="buttons" value="上一张" onClick="previous();">
<input name="Submit22" type="submit" class="buttons" value="下一张" onClick="next();">
</td>
<tr>
<td align="center"> <input name="Submit3" type="submit" class="buttons" value="动画显示" onclick="autoPlay(this);">
<input name="Submit32" type="submit" class="buttons" value="全 屏" onclick="showall($('imgTyp').value, getPictList());">
</td>
</tr>
<tr>
<td align="left">
播放速度:
<select name="showspeed" style="width:86" class=select onChange="changespeed()" id="showspeed">
<option value="200">非常快</option>
<option value="500">快</option>
<option value="1000" selected>正常</option>
<option value="1500">慢</option>
<option value="2500">非常慢</option>
</select></td>
</tr>
</table></td>
<td width="1" bgcolor="B8B8B8"><img src="${pageContext.request.contextPath}/images/spacer.gif" width="1" height="1"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="8"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="7"><img src="${pageContext.request.contextPath}/images/table_bottom_left.gif" width="7" height="8"></td>
<td background="${pageContext.request.contextPath}/images/table_bottom_bg.gif"><img src="/images/spacer.gif" width="1" height="1"></td>
<td width="7"><img src="${pageContext.request.contextPath}/images/table_bottom_right.gif" width="7" height="8"></td>
</tr>
</table></td>
</tr>
</table>
</td>
<!--td width="9" align="right"><a href="#"><img src="images/mini2.gif" width="8" height="87" border="0"></a></td-->
</tr>
</table>
<span id="progressMsg" style="display:none;"><img alt="Indicator" src="${pageContext.request.contextPath}/img/indicator.gif" /> Loading...</span>
<div id="errorMsg" style="display:none;border:1px solid #e00;background-color:#fee;padding:2px;margin-top:8px;width:300px;font:normal 12px Arial;color:#900"></div>
<div>
<img id="makerEmblem"
src="${pageContext.request.contextPath}/img/placeholder.gif"
width="76" height="29" />
</div>
<script type="text/javascript">
function initProgress() {
Element.show('progressMsg');
//autoPlay(document.all.Submit3);
document.all.Submit3.value="动画显示";
document.all.Submit3.title="动画显示";
autoplaypicture=false;
//$('selYearPic').value = document.all.selYearPic.value;
//alert($('selYear').value + " ?= " + $('selYearPic').value);
parent.showdiv();
}
function resetProgress() {
parent.closediv();
// show marker emblem
document.all.drpPicture[0].selected=true;
var imgTag = $('makerEmblem');
Effect.Fade('progressMsg');
if (document.all.showHistoryYear.style.display == '')
{
//$('selYearPic').fireEvent("onchange");
}
Page_Load();
}
function reportError() {
Element.show('errorMsg');
setTimeout("Effect.DropOut('errorMsg')", 2500);
}
function selectedMe()
{
}
function loadseltimepic()
{
$('selYearPic').fireEvent("onchange");
}
</script>
<script type="text/javascript">
<c:choose>
<c:when test="${param.meeting != '1'}">
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=selectSnph", {
source: "seltime",
preFunction: initProgress,
target: "drpPicture",
parameters: "seltime={seltime},imgTyp={imgTyp},selYear={selYear},,selMonth={selMonth},selTypes={selTypes},selectpic={selectpic},mode=2",
parser: new ResponseXmlParser(),
postFunction: resetProgress,
errorFunction: reportError
});
/*
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=getYearBysatellite", {
source: "seltime",
preFunction: initProgress,
target: "selYear",
parameters: "seltime={seltime},imgTyp={imgTyp},mode=1",
parser: new ResponseXmlParser(),
postFunction: resetProgress,
errorFunction: reportError
});
*/
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=getWeatherProcess", {
source: "seltime",
preFunction: initProgress,
target: "selYearPic",
parameters: "seltime={seltime},imgTyp={imgTyp},selYear={selYear},selMonth={selMonth},selTypes={selTypes},mode=2",
parser: new ResponseXmlParser(),
postFunction: resetProgress,
errorFunction: reportError
});
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=getWeatherProcess", {
source: "selYear",
preFunction: initProgress,
target: "selYearPic",
parameters: "seltime={seltime},imgTyp={imgTyp},selYear={selYear},selMonth={selMonth},selTypes={selTypes},mode=2",
parser: new ResponseXmlParser(),
postFunction: loadseltimepic,
errorFunction: reportError
});
/*
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=selectHistSnpc", {
source: "selYear",
preFunction: initProgress,
target: "drpPicture",
parameters: "seltime={seltime},imgTyp={imgTyp},selYear={selYear},selMonth={selMonth},selTypes={selTypes},selYearPic={selYearPic},mode=2",
parser: new ResponseXmlParser(),
postFunction: resetProgress,
errorFunction: reportError
});
*/
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=getWeatherProcess", {
source: "selMonth",
preFunction: initProgress,
target: "selYearPic",
parameters: "seltime={seltime},imgTyp={imgTyp},selYear={selYear},selMonth={selMonth},selTypes={selTypes},mode=2",
parser: new ResponseXmlParser(),
postFunction: loadseltimepic,
errorFunction: reportError
});
/*
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=selectHistSnpc", {
source: "selMonth",
preFunction: initProgress,
target: "drpPicture",
parameters: "seltime={seltime},imgTyp={imgTyp},selYear={selYear},selMonth={selMonth},selTypes={selTypes},selYearPic={selYearPic},mode=2",
parser: new ResponseXmlParser(),
postFunction: resetProgress,
errorFunction: reportError
});
*/
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=getWeatherProcess", {
source: "selTypes",
preFunction: initProgress,
target: "selYearPic",
parameters: "seltime={seltime},imgTyp={imgTyp},selYear={selYear},selMonth={selMonth},selTypes={selTypes},mode=2",
parser: new ResponseXmlParser(),
postFunction: loadseltimepic,
errorFunction: reportError
});
/*
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=selectHistSnpc", {
source: "selTypes",
preFunction: initProgress,
target: "drpPicture",
parameters: "seltime={seltime},imgTyp={imgTyp},selYear={selYear},selMonth={selMonth},selTypes={selTypes},selYearPic={selYearPic},mode=2",
parser: new ResponseXmlParser(),
postFunction: resetProgress,
errorFunction: reportError
});
*/
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=selectHistSnpc", {
source: "selYearPic",
preFunction: initProgress,
target: "drpPicture",
parameters: "seltime={seltime},imgTyp={imgTyp},selYear={selYear},selMonth={selMonth},selTypes={selTypes},selYearPic={selYearPic},mode=3",
parser: new ResponseXmlParser(),
postFunction: resetProgress,
errorFunction: reportError
});
</c:when>
<c:otherwise>
$('seltime').fireEvent("onchange");
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=selectSnph", {
source: "seltime",
preFunction: initProgress,
target: "drpPicture",
parameters: "seltime={seltime},imgTyp={imgTyp},selYear=${param.outeryear},selMonth=${param.outermonth},selTypes=${param.outerctyp},selectpic={selectpic},selYearPic=${param.outercno},mode=2",
parser: new ResponseXmlParser(),
postFunction: resetProgress,
errorFunction: reportError
});
</c:otherwise>
</c:choose>
$('imgTyp').value=2019;
</script>
</body>
</html>
<%@taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>main</title>
<link href="${pageContext.request.contextPath}/css/main.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="${pageContext.request.contextPath}/js/prototype-1.4.0.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/scriptaculous.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/overlibmws.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/ajaxtags-1.2-beta2.js"></script>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/ajaxtags.css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/displaytag.css" />
<script language="javascript">
var baseUrl = "${pageContext.request.contextPath}";
var currTimeT='FTD0311_SNPH_R';
var histT='FTD0322_SNP_C';
var fName='BRFL';
var currentTable=currTimeT;
var disPicUrl=baseUrl+'/qxxx/cache/images/'+currentTable+'/BRFL/';
</script>
<script src="${pageContext.request.contextPath}/js/comm.js" type="text/javascript"></script>
<script language="javascript">
window.onload=Page_Load;
function showHistory(flag)
{
if (flag==1)
{
<c:if test="${param.meeting != '1'}">
document.all.showHistoryYear.style.display = '';
document.all.showHistoryYearInfor.style.display = '';
document.all.showHistoryTypes.style.display='';
</c:if>
$('selectpic').value=2;
currentTable=histT;
disPicUrl=baseUrl+'/qxxx/cache/images/'+currentTable+'/BRFL/';
}
else
{
document.all.showHistoryYear.style.display = 'none';
document.all.showHistoryYearInfor.style.display = 'none';
document.all.showHistoryTypes.style.display='none';
$('selectpic').value=1;
currentTable=currTimeT;
disPicUrl=baseUrl+'/qxxx/cache/images/'+currentTable+'/BRFL/';
}
//alert(disPicUrl);
$('seltime').fireEvent("onchange");
}
function getPictList()
{
var retStr = "";
for (i=0;i<document.all["drpPicture"].options.length;i++)
{
if (retStr == "")
{
retStr = document.all["drpPicture"].options[i].value;
}
else
{
retStr = retStr + "," + document.all["drpPicture"].options[i].value;
}
}
return retStr;
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" height="100%">
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table-space">
<!-- 上弧 -->
<tr>
<td height="7"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="7"><img src="${pageContext.request.contextPath}/images/table_top_left.gif" width="7" height="7"></td>
<td background="${pageContext.request.contextPath}/images/table_top_bg.gif"><img src="${pageContext.request.contextPath}/images/spacer.gif" width="1" height="1"></td>
<td width="7"><img src="${pageContext.request.contextPath}/images/table_top_right.gif" width="7" height="7"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<!-- 左直线 -->
<td width="1" bgcolor="B8B8B8"><img src="${pageContext.request.contextPath}/images/spacer.gif" width="1" height="1"></td>
<td class="table-bg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="ititle">云图选择</td>
</tr>
<tr>
<td align="center">当前卫星:
<select name="seltime" id="seltime" style="width:86"><!-- onChange=showhistory()-->
<c:forEach var="scnm" items="${requestScope.scnmList}" >
<option value="${scnm.satcd}">${scnm.satnm}</option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<td class="b1">
<input type="hidden" id="selectpic" name="selectpic" value="1" />
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr><td width="18"><input id="selectpic1" type="radio" name="radiobutton" value="radiobutton" onClick="showHistory(0,this);" checked></td><td><label for="selectpic1" class="lbl">实时气象云图</label></td></tr>
<tr><td><input id="selectpic2" type="radio" name="radiobutton" value="radiobutton" onClick="showHistory(1,this);"></td><td><label for="selectpic2" class="lbl">历史气象云图</label></td></tr>
<tr><td> </td><td><table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td width="18"><input id="radioButton12" type="radio" name="radioButton2" onClick="$('imgTyp').value=2019;$('seltime').fireEvent('onchange');" value="radiobutton" checked></td><td><label href="#" onClick="$('radioButton12').click();return false;" class="lbl2">红外云图</label></td></tr></table></td></tr>
<tr><td> </td><td><table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td width="18"><input id="radioButton13" type="radio" name="radioButton2" onClick="$('imgTyp').value=2018;$('seltime').fireEvent('onchange');" value="radiobutton"></td><td><label href="#" onClick="$('radioButton13').click();return false;" class="lbl2">可见光云图</label></td></tr></table></td>
<tr><td> </td><td><table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td width="18"><input id="radioButton14" type="radio" name="radioButton2" onClick="$('imgTyp').value=8787;$('seltime').fireEvent('onchange');" value="radiobutton"></td><td><label href="#" onClick="$('radioButton14').click();return false;" class="lbl2">水汽云图</label></td></tr></table></td>
</tr>
</table><input type="hidden" name="imgTyp" value="2019"/></td>
</tr>
<tr id="showHistoryYear" style="display:none">
<td align="left"> 年月选择:<select name=selYear style="width:52" id=selYear><!-- onChange=showYearPic() -->
<c:forEach var="year" items="${requestScope.yearList}" >
<option value="${year}" <c:if test="${year eq curYear}">selected</c:if> >${year}</option>
</c:forEach>
</select>
<select name=selMonth style="width:38" id=selMonth><!-- onChange=showYearPic() -->
<c:forEach var="month" items="${requestScope.monthList}" >
<option value="${month}" <c:if test="${month eq curMonth}">selected</c:if> >${month}</option>
</c:forEach>
</select>
</td>
</tr>
<tr id="showHistoryTypes" style="display:none">
<td align="left"> 类别选择:<select name=selTypes style="width:94" id=selTypes><!-- onChange=showYearPic() -->
<option value="">全部</option>
<option value="6266">暴雨</option>
<option value="6267">台风</option>
</select>
</td>
</tr>
<tr id="showHistoryYearInfor" style="display:none">
<td align="left"> 天气过程:<select name=selYearPic style="width:94" id=selYearPic>
</select>
</td>
</tr>
<!-- 右直线 --> </table></td>
<td width="1" bgcolor="B8B8B8"><img src="/images/spacer.gif" width="1" height="1"></td>
</tr>
</table></td>
</tr>
<!-- 下弧 -->
<tr>
<td height="8"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="7"><img src="${pageContext.request.contextPath}/images/table_bottom_left.gif" width="7" height="8"></td>
<td background="${pageContext.request.contextPath}/images/table_bottom_bg.gif"><img src="/images/spacer.gif" width="1" height="1"></td>
<td width="7"><img src="${pageContext.request.contextPath}/images/table_bottom_right.gif" width="7" height="8"></td>
</tr>
</table></td>
</tr>
</table>
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table-space">
<tr>
<td height="7"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="7"><img src="${pageContext.request.contextPath}/images/table_top_left.gif" width="7" height="7"></td>
<td background="${pageContext.request.contextPath}/images/table_top_bg.gif"><img src="/images/spacer.gif" width="1" height="1"></td>
<td width="7"><img src="${pageContext.request.contextPath}/images/table_top_right.gif" width="7" height="7"></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1" bgcolor="B8B8B8"><img src="${pageContext.request.contextPath}/images/spacer.gif" width="1" height="1"></td>
<td class="table-bg"><table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="ititle">播放控制</td>
</tr>
<tr>
<td align="left">
选择卫星云图:</td>
</tr>
<tr>
<td align="center">
<select name="drpPicture" id="drpPicture" size="8" multiple class="width" onChange="changePicture();">
<c:forEach var="snph" items="${requestScope.snphList}" >
<option value="${snph.imagePath}"><fmt:formatDate value="${snph.dateTime}" pattern="yyyy-MM-dd HH时mm分"/></option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<td align="center"> <input name="Submit" type="submit" class="buttons" value="第一张" onClick="first()">
<input name="Submit2" type="submit" class="buttons" value="末一张" onClick="last();">
</td>
</tr>
<tr>
<td align="center"> <input name="Submit4" type="submit" class="buttons" value="上一张" onClick="previous();">
<input name="Submit22" type="submit" class="buttons" value="下一张" onClick="next();">
</td>
<tr>
<td align="center"> <input name="Submit3" type="submit" class="buttons" value="动画显示" onclick="autoPlay(this);">
<input name="Submit32" type="submit" class="buttons" value="全 屏" onclick="showall($('imgTyp').value, getPictList());">
</td>
</tr>
<tr>
<td align="left">
播放速度:
<select name="showspeed" style="width:86" class=select onChange="changespeed()" id="showspeed">
<option value="200">非常快</option>
<option value="500">快</option>
<option value="1000" selected>正常</option>
<option value="1500">慢</option>
<option value="2500">非常慢</option>
</select></td>
</tr>
</table></td>
<td width="1" bgcolor="B8B8B8"><img src="${pageContext.request.contextPath}/images/spacer.gif" width="1" height="1"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="8"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="7"><img src="${pageContext.request.contextPath}/images/table_bottom_left.gif" width="7" height="8"></td>
<td background="${pageContext.request.contextPath}/images/table_bottom_bg.gif"><img src="/images/spacer.gif" width="1" height="1"></td>
<td width="7"><img src="${pageContext.request.contextPath}/images/table_bottom_right.gif" width="7" height="8"></td>
</tr>
</table></td>
</tr>
</table>
</td>
<!--td width="9" align="right"><a href="#"><img src="images/mini2.gif" width="8" height="87" border="0"></a></td-->
</tr>
</table>
<span id="progressMsg" style="display:none;"><img alt="Indicator" src="${pageContext.request.contextPath}/img/indicator.gif" /> Loading...</span>
<div id="errorMsg" style="display:none;border:1px solid #e00;background-color:#fee;padding:2px;margin-top:8px;width:300px;font:normal 12px Arial;color:#900"></div>
<div>
<img id="makerEmblem"
src="${pageContext.request.contextPath}/img/placeholder.gif"
width="76" height="29" />
</div>
<script type="text/javascript">
function initProgress() {
Element.show('progressMsg');
//autoPlay(document.all.Submit3);
document.all.Submit3.value="动画显示";
document.all.Submit3.title="动画显示";
autoplaypicture=false;
//$('selYearPic').value = document.all.selYearPic.value;
//alert($('selYear').value + " ?= " + $('selYearPic').value);
parent.showdiv();
}
function resetProgress() {
parent.closediv();
// show marker emblem
document.all.drpPicture[0].selected=true;
var imgTag = $('makerEmblem');
Effect.Fade('progressMsg');
if (document.all.showHistoryYear.style.display == '')
{
//$('selYearPic').fireEvent("onchange");
}
Page_Load();
}
function reportError() {
Element.show('errorMsg');
setTimeout("Effect.DropOut('errorMsg')", 2500);
}
function selectedMe()
{
}
function loadseltimepic()
{
$('selYearPic').fireEvent("onchange");
}
</script>
<script type="text/javascript">
<c:choose>
<c:when test="${param.meeting != '1'}">
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=selectSnph", {
source: "seltime",
preFunction: initProgress,
target: "drpPicture",
parameters: "seltime={seltime},imgTyp={imgTyp},selYear={selYear},,selMonth={selMonth},selTypes={selTypes},selectpic={selectpic},mode=2",
parser: new ResponseXmlParser(),
postFunction: resetProgress,
errorFunction: reportError
});
/*
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=getYearBysatellite", {
source: "seltime",
preFunction: initProgress,
target: "selYear",
parameters: "seltime={seltime},imgTyp={imgTyp},mode=1",
parser: new ResponseXmlParser(),
postFunction: resetProgress,
errorFunction: reportError
});
*/
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=getWeatherProcess", {
source: "seltime",
preFunction: initProgress,
target: "selYearPic",
parameters: "seltime={seltime},imgTyp={imgTyp},selYear={selYear},selMonth={selMonth},selTypes={selTypes},mode=2",
parser: new ResponseXmlParser(),
postFunction: resetProgress,
errorFunction: reportError
});
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=getWeatherProcess", {
source: "selYear",
preFunction: initProgress,
target: "selYearPic",
parameters: "seltime={seltime},imgTyp={imgTyp},selYear={selYear},selMonth={selMonth},selTypes={selTypes},mode=2",
parser: new ResponseXmlParser(),
postFunction: loadseltimepic,
errorFunction: reportError
});
/*
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=selectHistSnpc", {
source: "selYear",
preFunction: initProgress,
target: "drpPicture",
parameters: "seltime={seltime},imgTyp={imgTyp},selYear={selYear},selMonth={selMonth},selTypes={selTypes},selYearPic={selYearPic},mode=2",
parser: new ResponseXmlParser(),
postFunction: resetProgress,
errorFunction: reportError
});
*/
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=getWeatherProcess", {
source: "selMonth",
preFunction: initProgress,
target: "selYearPic",
parameters: "seltime={seltime},imgTyp={imgTyp},selYear={selYear},selMonth={selMonth},selTypes={selTypes},mode=2",
parser: new ResponseXmlParser(),
postFunction: loadseltimepic,
errorFunction: reportError
});
/*
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=selectHistSnpc", {
source: "selMonth",
preFunction: initProgress,
target: "drpPicture",
parameters: "seltime={seltime},imgTyp={imgTyp},selYear={selYear},selMonth={selMonth},selTypes={selTypes},selYearPic={selYearPic},mode=2",
parser: new ResponseXmlParser(),
postFunction: resetProgress,
errorFunction: reportError
});
*/
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=getWeatherProcess", {
source: "selTypes",
preFunction: initProgress,
target: "selYearPic",
parameters: "seltime={seltime},imgTyp={imgTyp},selYear={selYear},selMonth={selMonth},selTypes={selTypes},mode=2",
parser: new ResponseXmlParser(),
postFunction: loadseltimepic,
errorFunction: reportError
});
/*
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=selectHistSnpc", {
source: "selTypes",
preFunction: initProgress,
target: "drpPicture",
parameters: "seltime={seltime},imgTyp={imgTyp},selYear={selYear},selMonth={selMonth},selTypes={selTypes},selYearPic={selYearPic},mode=2",
parser: new ResponseXmlParser(),
postFunction: resetProgress,
errorFunction: reportError
});
*/
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=selectHistSnpc", {
source: "selYearPic",
preFunction: initProgress,
target: "drpPicture",
parameters: "seltime={seltime},imgTyp={imgTyp},selYear={selYear},selMonth={selMonth},selTypes={selTypes},selYearPic={selYearPic},mode=3",
parser: new ResponseXmlParser(),
postFunction: resetProgress,
errorFunction: reportError
});
</c:when>
<c:otherwise>
$('seltime').fireEvent("onchange");
new AjaxJspTag.Select(
"${pageContext.request.contextPath}/qxxx/qxxxCasadeMenuAjaxAction.do?action=selectSnph", {
source: "seltime",
preFunction: initProgress,
target: "drpPicture",
parameters: "seltime={seltime},imgTyp={imgTyp},selYear=${param.outeryear},selMonth=${param.outermonth},selTypes=${param.outerctyp},selectpic={selectpic},selYearPic=${param.outercno},mode=2",
parser: new ResponseXmlParser(),
postFunction: resetProgress,
errorFunction: reportError
});
</c:otherwise>
</c:choose>
$('imgTyp').value=2019;
</script>
</body>
</html>
相关推荐
在很多典型的环境中都可以使用 AjaxTags,这样一来,不仅可以方便开发人员,而且还可以提高应用程序的用户体验。其中的一些用例包括: * 基于第一个下拉框中所做的选择来修改第二个下拉框的内容 * 基于...
- **简单易用**:AjaxTags通过JSP标签的形式,使得Ajax功能的实现对开发者来说变得直观且易于理解。 - **可定制化**:每个Ajax标签都有丰富的属性,允许开发者根据需求进行配置,如设置请求类型、URL、更新的目标...
Ajaxtags.jar是一个专门为Java Web开发者设计的库,它封装了Ajax技术,简化了在JSP页面中实现异步数据交互的过程。这个zip压缩包包含了核心组件ajaxtags.jar,是开发者在项目中引入Ajax功能的一个便捷工具。 Ajax...
《AjaxTags 1.2 Beta1 源码解析:实现DisplayTag的无刷新功能》 AjaxTags 1.2 Beta1 是一个专门用于增强Java Web应用中DisplayTag功能的库,它使得开发者能够实现分页、查询和导出等功能的无刷新效果,极大地提升了...
**Ajaxtags**是一个Java开发的项目,主要用于演示和实现AJAX(Asynchronous JavaScript and XML)技术。在Web应用中,AJAX允许页面部分更新,无需整个页面刷新,从而提供了更流畅、更快捷的用户体验。本项目是为...
AjaxTags项目是在现有的Struts ... AjaxTags改写了Struts标签类org.apache.struts.taglib.html.FormTag和org.apache.struts.taglib.html.BaseHandlerTag,并使用Struts的plugin技术,使得Struts提供了对AJAX的支持。
ajaxtags-1.1.5.jar 版本比较古老,不过,用于学习练习还是不错的
API文档通常会详细介绍各种函数、方法、类和对象,以及它们的参数、返回值和使用示例,帮助开发者更好地理解和使用Ajaxtags。 “最近版本”可能指的是Ajaxtags的最新更新或发行版,这通常包含了错误修复、性能提升...
**AjaxTags 1.3** 是一个专门为Struts框架设计的AJAX库,它使得在Struts应用中集成和使用AJAX技术变得更加便捷。这个工具包的发布版本为 **ajaxtags-1.3-beta-rc7**,表明这是一个测试版的候选发布版本,可能包含了...
例如,可以使用`<%@ taglib prefix="ajax" uri="http://ajaxtags.sourceforge.net/ajaxtags" %>`来导入AjaxTags的标签库,然后在表格中使用`<ajax:displayTag>`标签,通过配置`pageUrl`、`itemsPerPage`等属性来指定...
3. 下拉联动:在多级下拉菜单中,用户选择一项后,下级菜单会根据选择自动填充,实现数据的联动。 4. 数据检索:通过AJAX发送异步请求,后台处理后返回结果,更新前端展示,常见于搜索框的实时检索功能。 三、使用...
AjaxTags 1.5.1 是一个专门用于Web开发的Java库,它提供了一系列的JSP标签,能够帮助开发者轻松实现Ajax功能,无需深入理解底层JavaScript或XMLHttpRequest的工作原理。这个jar.zip包包含了核心的`ajaxtags-1.5.1....
4. **使用标签**:在JSP页面中使用AjaxTags提供的标签,如`<ajax:form>`、`<ajax:include>`等,实现异步交互。 5. **处理后端逻辑**:在服务器端编写相应的Servlet或Controller来处理由AjaxTags发送的AJAX请求,并...
ajaxtags框架是ajax框架之一,对一些常用的功能如自动完成等提供了非常便捷的操作。几乎不用写js代码。采用jsp标签格式。压缩包包含一个完整的web项目,拷贝在tomcat的webapps下即可运行。包含一个word文档和李刚...
1. 考虑兼容性:尽管AjaxTags使用了jQuery,但仍然需要确保目标浏览器支持JavaScript。 2. 错误处理:不要忘记处理Ajax请求可能抛出的错误,例如网络问题或服务器端异常。 3. 安全性:由于Ajax请求可以绕过页面重载...
做软件开发的可以下在这个包,别忘记添加评论哦!
"ajaxtags-1.5.1-bin" 是一个与AJAX技术相关的软件包,主要用于协助开发者进行AJAX功能的集成和开发。这个版本1.5.1表明它可能包含了一些性能改进、错误修复或者新特性相对于之前的版本。下面将详细讨论AJAX、AJAX ...
6. **依赖包**:使用AjaxTags Resources 1.5.5.jar时,可能需要其他的依赖库,如JSTL、Servlet API等。在部署项目时,确保这些依赖包已正确配置到Web应用的类路径中。 总的来说,AjaxTags Resources 1.5.5.jar.zip ...
总的来说,"ajaxtags-resources-1.5.1.jar.zip" 提供了一个用于在JSP页面中实现AJAX功能的标签库,其版本1.5.1可能包含了一些优化和改进。为了有效地利用这个库,开发者需要了解其API,处理好依赖关系,并将其适当地...