图片循环问题!请各位大虾帮帮忙,急啊!!!!!!
JSP1.jsp
<%@ page contentType="text/html; charset=GBK" %>
<html>
<head>
<title>
jsp6
</title>
</head>
<body bgcolor="#ffffff">
<jsp:include flush="" page="jsp10.jsp" />
<jsp:include flush="" page="jsp11.jsp" />
</form>
</body>
</html>
JSP10.jsp
<%@ page contentType="text/html; charset=GBK" %>
<script>
var bannerAD = new Array();
var bannerADlink = new Array();
var bannerADinfo = new Array();
var adNum = -1;
bannerAD[0] ="CAL7GGGRXC/right_11.gif" ;
bannerADlink[0] = "N9O9IGPb2E.jsp?Id=B000000281" ;
bannerADinfo[0] = "aaaaaaaaa";
bannerAD[1] = "CAL7GGGRXC/logo1.jpg";
bannerADlink[1] = "http://10.0.2.9/info/list.jsp?Id=B000000200";
bannerADinfo[1] = "bbbbbbb";
function nextAd(){
if (adNum != -1) clearTimeout(theTimer);
if(adNum<bannerAD.length-1)adNum++ ;
else adNum=0;
document.all.bannerpic.src = bannerAD[adNum];
ele = document.getElementById("p"+eval(adNum));
clearbg();
ele.bgColor="red";
theTimer=setTimeout("nextAd()", 15000);
}
function cAd(){
ele = document.getElementById("p"+eval(adNum));
clearbg();
ele.bgColor="red";
theTimer2=setTimeout("cAd()", 1000);
}
function clearbg()
{
for (i=0;i<bannerAD.length;i++)document.getElementById("p"+eval(i)).bgColor="";
}
function jump2url()
{
jumpUrl=bannerADlink[adNum];
jumpTarget="_blank";
if (jumpUrl != '') {
if (jumpTarget != '')window.open(jumpUrl,jumpTarget);
else location.href=jumpUrl;
}
}
</script>
<table cellspacing=1 cellpadding=0 width=770 align=center border=0 style=font-size:12px>
<tr><td valign=top align=right >
<img id="bannerpic" src="#" onclick="jump2url()" style="cursor:hand;width:770px;height:70px border=0"><br>
<table cellspacing=1 cellpadding=0 style="position:relative;font-size:14px;font-family:Arial;font-weight:bold;color:white;cursor:hand;FILTER:Alpha(Opacity=50);top:-16px" bgcolor=white border=0>
<tr bgcolor=black >
<script>
{
for (k=0;k<bannerAD.length;k++)
{
prek = k - 1;
if (k==-1){prek=bannerAD.length;}
document.write("<td width='30px' height='5px' id=p"+eval(k)+" align='center' onclick=\"adNum='"+eval(prek)+"';clearTimeout(theTimer);nextAd()\" valign=top><a title='"+bannerADinfo[k]+"'>"+eval(k+1)+"<br></a>")
}
}
</script>
</tr>
</table>
</table>
<script>
{
nextAd();
cAd();
}
</script>
jsp11.jsp
<%@ page contentType="text/html; charset=GBK" %>
<script language="JavaScript1.2">
var scrollerwidth='300px'
var scrollerheight='250px'
var scrollerbgcolor='white'
var pausebetweenimages=1000
var slideimages=new Array()
slideimages[0]='<img src=CAL7GGGRXC/2008052602.jpg width=280 height=210><br><table width=300><tr><td align=center>1 </td></tr></table>'
slideimages[1]='<img src=CAL7GGGRXC/2008052601.jpg width=280 height=210><br><table width=300><tr><td align=center>2</td></tr></table>'
slideimages[2]='<img src=CAL7GGGRXC/2008052301.jpg width=280 height=210><br><table width=300><tr><td align=center>3</td></tr></table>'
slideimages[3]='<img src=CAL7GGGRXC/2008011702.jpg width=280 height=210><br><table width=300><tr><td align=center>4</td></tr></table>'
slideimages[4]='<img src=../../info/RMKALSGK8V/a01.jpg width=280 height=210><br><table width=300><tr><td align=center>5</td></tr></table>'
slideimages[5]='<img src=../../info/RMKALSGK8V/a02.jpg width=280 height=210><br><table width=300><tr><td align=center>6</td></tr></table>'
slideimages[6]='<img src=../../info/RMKALSGK8V/a03.jpg width=280 height=210><br><table width=300><tr><td align=center>7</td></tr></table>'
slideimages[7]='<img src=../../info/RMKALSGK8V/a04.jpg width=280 height=210><br><table width=300><tr><td align=center>8</td></tr></table>'
slideimages[8]='<img src=../../info/RMKALSGK8V/a05.jpg width=280 height=210><br><table width=300><tr><td align=center>9</td></tr></table>'
var ie=document.all
var dom=document.getElementById
if (slideimages.length>1)
i=2
else
i=0
function move1(whichlayer){
tlayer=eval(whichlayer)
if (tlayer.left>0&&tlayer.left<=5){
tlayer.left=0
setTimeout("move1(tlayer)",pausebetweenimages)
setTimeout("move2(document.main.document.second)",pausebetweenimages)
return
}
if (tlayer.left>=tlayer.document.width*-1){
tlayer.left-=5
setTimeout("move1(tlayer)",50)
}
else{
tlayer.left=parseInt(scrollerwidth)+5
tlayer.document.write(slideimages[i])
tlayer.document.close()
if (i==slideimages.length-1)
i=0
else
i++
}
}
function move2(whichlayer){
tlayer2=eval(whichlayer)
if (tlayer2.left>0&&tlayer2.left<=5){
tlayer2.left=0
setTimeout("move2(tlayer2)",pausebetweenimages)
setTimeout("move1(document.main.document.first)",pausebetweenimages)
return
}
if (tlayer2.left>=tlayer2.document.width*-1){
tlayer2.left-=5
setTimeout("move2(tlayer2)",50)
}
else{
tlayer2.left=parseInt(scrollerwidth)+5
tlayer2.document.write(slideimages[i])
tlayer2.document.close()
if (i==slideimages.length-1)
i=0
else
i++
}
}
function move3(whichdiv){
tdiv=eval(whichdiv)
if (parseInt(tdiv.style.left)>0&&parseInt(tdiv.style.left)<=5){
tdiv.style.left=0+"px"
setTimeout("move3(tdiv)",pausebetweenimages)
setTimeout("move4(scrollerdiv2)",pausebetweenimages)
return
}
if (parseInt(tdiv.style.left)>=tdiv.offsetWidth*-1){
tdiv.style.left=parseInt(tdiv.style.left)-5+"px"
setTimeout("move3(tdiv)",50)
}
else{
tdiv.style.left=scrollerwidth
tdiv.innerHTML=slideimages[i]
if (i==slideimages.length-1)
i=0
else
i++
}
}
function move4(whichdiv){
tdiv2=eval(whichdiv)
if (parseInt(tdiv2.style.left)>0&&parseInt(tdiv2.style.left)<=5){
tdiv2.style.left=0+"px"
setTimeout("move4(tdiv2)",pausebetweenimages)
setTimeout("move3(scrollerdiv1)",pausebetweenimages)
return
}
if (parseInt(tdiv2.style.left)>=tdiv2.offsetWidth*-1){
tdiv2.style.left=parseInt(tdiv2.style.left)-5+"px"
setTimeout("move4(scrollerdiv2)",50)
}
else{
tdiv2.style.left=scrollerwidth
tdiv2.innerHTML=slideimages[i]
if (i==slideimages.length-1)
i=0
else
i++
}
}
function startscroll(){
if (ie||dom){
scrollerdiv1=ie? first2 : document.getElementById("first2")
scrollerdiv2=ie? second2 : document.getElementById("second2")
move3(scrollerdiv1)
scrollerdiv2.style.left=scrollerwidth
}
else if (document.layers){
document.main.visibility='show'
move1(document.main.document.first)
document.main.document.second.left=parseInt(scrollerwidth)+5
document.main.document.second.visibility='show'
}
}
window.onload=startscroll
</script>
<ilayer id="main" width=&{scrollerwidth}; height=&{scrollerheight}; bgColor=&{scrollerbgcolor}; visibility=hide>
<layer id="first" left=1 top=0 width=&{scrollerwidth}; >
<script language="JavaScript1.2">
if (document.layers)
document.write(slideimages[0])
</script>
</layer>
<layer id="second" left=0 top=0 width=&{scrollerwidth}; visibility=hide>
<script language="JavaScript1.2">
if (document.layers)
document.write(slideimages[1])
</script>
</layer>
</ilayer>
<script language="JavaScript1.2">
if (ie||dom){
document.writeln('<div id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden;background-color:'+scrollerbgcolor+'">')
document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0px;top:0px">')
document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:1px;top:0px;">')
document.write(slideimages[0])
document.writeln('</div>')
document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:0px">')
document.write(slideimages[1])
document.writeln('</div>')
document.writeln('</div>')
document.writeln('</div>')
}
</script>
相关推荐
基于混合储能协调控制的三相并网逆变系统设计【附说明文档】
内容概要:本文围绕“基于混合储能协调控制的三相并网逆变系统设计”展开,系统阐述了蓄电池与飞轮储能等混合储能系统在微电网中的协同控制策略。研究涵盖三相并网逆变器的能量管理、SOC(荷电状态)恒压恒流充放电控制、PQ控制与双闭环控制等核心技术,并基于Matlab/Simulink仿真平台实现了系统建模与动态仿真验证。文中深入探讨了飞轮储能系统的机侧PQ控制与网侧变流器的恒压双闭环控制,分析了微电网在调频调峰、功率协同分配等方面的运行特性,强调多能源间的协调优化与系统的快速动态响应能力,旨在提升微电网的运行稳定性、电能质量及能源利用效率。; 适合人群:具备电力电子、自动化或电气工程等相关专业背景,从事新能源发电、微电网控制、储能系统集成与优化等领域研究的研究生、科研人员及工程技术人员。; 使用场景及目标:①深入研究混合储能系统在微电网中的协调控制机制与能量管理策略;②掌握三相并网逆变器的建模、控制算法设计及Matlab/Simulink仿真方法;③实现储能系统的高效充放电管理与并网功率精确控制;④为学术论文撰写、科研课题申报、工程项目开发或实验复现提供完整的技术方案与参考实例。; 阅读建议:建议结合所提供的仿真模型、说明文档及参考文献,按照系统架构从单元控制到整体协调的顺序分模块学习,重点关注各控制策略的设计原理、参数整定方法与协同逻辑。推荐在Matlab环境中动手复现仿真,通过调整参数和工况来观察系统响应,以深化对理论知识的理解和工程应用能力的掌握。
科技中介服务机构在服务企业时,如何通过平台降低服务门槛和操作复杂度?.docx
科技中介服务机构在服务企业时,如何通过平台降低服务门槛和操作复杂度?
运维管理基于Hyperfilelens的Docker Compose业务系统备份恢复:机房设备更换场景下的数据迁移与验证方案设计
内容概要:本文介绍了在机房存储设备更换及固件升级背景下,通过 Hyperfilelens 实现多套 Docker Compose 部署的业务系统备份与恢复的全过程。文章围绕备份迁移的实际操作,详细阐述了从主机接入、备份路径选择、策略配置、恢复执行到业务验证的七个关键步骤,并结合截图说明各环节的操作要点。特别强调了不仅要完成数据备份与恢复,还需核对目录结构、服务启动状态和业务功能可用性,确保迁移后系统完整可用。最终总结了 Hyperfilelens 在集中管理保护对象、制定备份策略、明确恢复目标和提供可核查记录方面的核心价值,倡导将备份作为常态化运维机制而非临时应急措施。; 适合人群:从事运维、系统管理及相关技术岗位,具备一定 Docker 和服务器管理经验的技术人员,尤其是面临机房设备更新或系统迁移任务的团队成员。; 使用场景及目标:①解决老旧存储设备更换过程中的业务系统平滑迁移问题;②实现基于 Docker Compose 架构的应用数据可靠备份与异机恢复;③建立可复用的备份恢复流程,提升运维自动化与可靠性。; 阅读建议:建议结合文中提到的平台界面和操作命令逐步实践,重点关注备份范围确认、一致性保护、恢复路径核对及业务端到端验证,避免仅依赖工具状态而忽视实际业务可用性。
chromedriver-mac-arm64-158.0.8127.18(Beta).zip
chromedriver-mac-arm64-158.0.8127.18(Beta).zip
政府科技管理者在推动区域科技成果转化时,如何实现科技成果与产业需求的精准对接?.docx
科易网基于AI模型+行业大数据,在技术转移、成果转化、技术经纪、知识产权、产业创新、科技招商等垂直领域的多样化应用场景,推出科技创新领域的AI+工具与数智化解决方案,推动科技创新与产业创新智能化发展。


Web 开发

