我在javascript中需要帮助,
我需要在特定的时间间隔在电视屏幕上显示3组认知报告。
1套知识报告需要在午夜00:00开始,需要显示到早上07:00,2套应该从07:00开始到晚上19:00和最后一次报告集应在19:00至00:00开始
所有这些报告每10分钟刷新一次,需要每10分钟显示一次新数据。
例如:在一组报告中,有12个单独的报告在电视屏幕上显示30秒,它将循环运行。
任何人都可以帮我解决如何在iframe中声明多个数组并将timmer设置为数组的问题。
如果您需要更多信息,请与我们联系
单个数组的示例代码
<html>
<head>
<script type="text/javascript">
var slideimages = new Array();
slideimages[0] = "http://COGDEVWEB1:80/ibmcognos/cgi-bin/cognosisapi.dll?b_action=cognosViewer&ui.action=run&ui.object=CAMID(%22dcanalyze%3au%3aa202da3d8b73bb4b954d583834a025a5%22)%2ffolder%5b%40name%3d%27My%20Folders%27%5d%2ffolder%5b%40name%3d%27Anil%27%5d%2ffolder%5b%40name%3d%27On%20Screen%20Testing%27%5d%2ffolder%5b%40name%3d%27BRACKENFELL%20SCHEDULES%27%5d%2ffolder%5b%40name%3d%27ON%20SCREEN%20DISPLAYS%27%5d%2ffolder%5b%40name%3d%27SCOREBOARD%20SCHEDULES%2007%3a00%20-%2019%3a00%27%5d%2freport%5b%40name%3d%27BRACKENFELL%20DC%20-%201ST%20PAGE%27%5d&ui.name=BRACKENFELL%20DC%20-%201ST%20PAGE&run.outputFormat=&run.prompt=true";
slideimages[1] = "http://COGDEVWEB1:80/ibmcognos/cgi-bin/cognosisapi.dll?b_action=cognosViewer&ui.action=run&ui.object=CAMID(%22dcanalyze%3au%3aa202da3d8b73bb4b954d583834a025a5%22)%2ffolder%5b%40name%3d%27My%20Folders%27%5d%2ffolder%5b%40name%3d%27Anil%27%5d%2ffolder%5b%40name%3d%27On%20Screen%20Testing%27%5d%2ffolder%5b%40name%3d%27BRACKENFELL%20SCHEDULES%27%5d%2ffolder%5b%40name%3d%27ON%20SCREEN%20DISPLAYS%27%5d%2ffolder%5b%40name%3d%27SCOREBOARD%20SCHEDULES%2007%3a00%20-%2019%3a00%27%5d%2freport%5b%40name%3d%27BRACKENFELL%20DC%20-%20FULL%20CASE%20PICKER%20SHIFT%201%27%5d&ui.name=BRACKENFELL%20DC%20-%20FULL%20CASE%20PICKER%20SHIFT%201&run.outputFormat=HTML&run.prompt=true";
slideimages[2] = "http://COGDEVWEB1:80/ibmcognos/cgi-bin/cognosisapi.dll?b_action=cognosViewer&ui.action=run&ui.object=CAMID(%22dcanalyze%3au%3aa202da3d8b73bb4b954d583834a025a5%22)%2ffolder%5b%40name%3d%27My%20Folders%27%5d%2ffolder%5b%40name%3d%27Anil%27%5d%2ffolder%5b%40name%3d%27On%20Screen%20Testing%27%5d%2ffolder%5b%40name%3d%27BRACKENFELL%20SCHEDULES%27%5d%2ffolder%5b%40name%3d%27ON%20SCREEN%20DISPLAYS%27%5d%2ffolder%5b%40name%3d%27SCOREBOARD%20SCHEDULES%2007%3a00%20-%2019%3a00%27%5d%2freport%5b%40name%3d%27BRACKENFELL%20DC%20-%20FULL%20CASE%20PICKER%20SHIFT%202%27%5d&ui.name=BRACKENFELL%20DC%20-%20FULL%20CASE%20PICKER%20SHIFT%202&run.outputFormat=HTML&run.prompt=true";
slideimages[3] = "http://COGDEVWEB1:80/ibmcognos/cgi-bin/cognosisapi.dll?b_action=cognosViewer&ui.action=run&ui.object=CAMID(%22dcanalyze%3au%3aa202da3d8b73bb4b954d583834a025a5%22)%2ffolder%5b%40name%3d%27My%20Folders%27%5d%2ffolder%5b%40name%3d%27Anil%27%5d%2ffolder%5b%40name%3d%27On%20Screen%20Testing%27%5d%2ffolder%5b%40name%3d%27BRACKENFELL%20SCHEDULES%27%5d%2ffolder%5b%40name%3d%27ON%20SCREEN%20DISPLAYS%27%5d%2ffolder%5b%40name%3d%27SCOREBOARD%20SCHEDULES%2007%3a00%20-%2019%3a00%27%5d%2freport%5b%40name%3d%27BRACKENFELL%20DC%20-%20INDIRECT%20SHIFT%27%5d&ui.name=BRACKENFELL%20DC%20-%20INDIRECT%20SHIFT&run.outputFormat=HTML&run.prompt=true";
slideimages[4] = "http://COGDEVWEB1:80/ibmcognos/cgi-bin/cognosisapi.dll?b_action=cognosViewer&ui.action=run&ui.object=CAMID(%22dcanalyze%3au%3aa202da3d8b73bb4b954d583834a025a5%22)%2ffolder%5b%40name%3d%27My%20Folders%27%5d%2ffolder%5b%40name%3d%27Anil%27%5d%2ffolder%5b%40name%3d%27On%20Screen%20Testing%27%5d%2ffolder%5b%40name%3d%27BRACKENFELL%20SCHEDULES%27%5d%2ffolder%5b%40name%3d%27ON%20SCREEN%20DISPLAYS%27%5d%2ffolder%5b%40name%3d%27SCOREBOARD%20SCHEDULES%2007%3a00%20-%2019%3a00%27%5d%2freport%5b%40name%3d%27BRACKENFELL%20DC%20-%20LATE%20PICKS%20SCOREBOARD%27%5d&ui.name=BRACKENFELL%20DC%20-%20LATE%20PICKS%20SCOREBOARD&run.outputFormat=HTML&run.prompt=true";
slideimages[5] = "http://COGDEVWEB1:80/ibmcognos/cgi-bin/cognosisapi.dll?b_action=cognosViewer&ui.action=run&ui.object=CAMID(%22dcanalyze%3au%3aa202da3d8b73bb4b954d583834a025a5%22)%2ffolder%5b%40name%3d%27My%20Folders%27%5d%2ffolder%5b%40name%3d%27Anil%27%5d%2ffolder%5b%40name%3d%27On%20Screen%20Testing%27%5d%2ffolder%5b%40name%3d%27BRACKENFELL%20SCHEDULES%27%5d%2ffolder%5b%40name%3d%27ON%20SCREEN%20DISPLAYS%27%5d%2ffolder%5b%40name%3d%27SCOREBOARD%20SCHEDULES%2007%3a00%20-%2019%3a00%27%5d%2freport%5b%40name%3d%27BRACKENFELL%20DC%20-%20LOCAL%20ROUTES%20REMAINING%20CASES%20TO%20PICK%27%5d&ui.name=BRACKENFELL%20DC%20-%20LOCAL%20ROUTES%20REMAINING%20CASES%20TO%20PICK&run.outputFormat=HTML&run.prompt=true";
slideimages[6] = "http://COGDEVWEB1:80/ibmcognos/cgi-bin/cognosisapi.dll?b_action=cognosViewer&ui.action=run&ui.object=CAMID(%22dcanalyze%3au%3aa202da3d8b73bb4b954d583834a025a5%22)%2ffolder%5b%40name%3d%27My%20Folders%27%5d%2ffolder%5b%40name%3d%27Anil%27%5d%2ffolder%5b%40name%3d%27On%20Screen%20Testing%27%5d%2ffolder%5b%40name%3d%27BRACKENFELL%20SCHEDULES%27%5d%2ffolder%5b%40name%3d%27ON%20SCREEN%20DISPLAYS%27%5d%2ffolder%5b%40name%3d%27SCOREBOARD%20SCHEDULES%2007%3a00%20-%2019%3a00%27%5d%2freport%5b%40name%3d%27BRACKENFELL%20DC%20-%20LOCAL%20ROUTES%20REMAINING%20LETDOWNS%27%5d&ui.name=BRACKENFELL%20DC%20-%20LOCAL%20ROUTES%20REMAINING%20LETDOWNS&run.outputFormat=HTML&run.prompt=true";
slideimages[7] = "http://COGDEVWEB1:80/ibmcognos/cgi-bin/cognosisapi.dll?b_action=cognosViewer&ui.action=run&ui.object=CAMID(%22dcanalyze%3au%3aa202da3d8b73bb4b954d583834a025a5%22)%2ffolder%5b%40name%3d%27My%20Folders%27%5d%2ffolder%5b%40name%3d%27Anil%27%5d%2ffolder%5b%40name%3d%27On%20Screen%20Testing%27%5d%2ffolder%5b%40name%3d%27BRACKENFELL%20SCHEDULES%27%5d%2ffolder%5b%40name%3d%27ON%20SCREEN%20DISPLAYS%27%5d%2ffolder%5b%40name%3d%27SCOREBOARD%20SCHEDULES%2007%3a00%20-%2019%3a00%27%5d%2freport%5b%40name%3d%27BRACKENFELL%20DC%20-%20LOCAL%20ROUTES%20REPICKS%20PENDING%27%5d&ui.name=BRACKENFELL%20DC%20-%20LOCAL%20ROUTES%20REPICKS%20PENDING&run.outputFormat=HTML&run.prompt=true";
slideimages[8] = "http://COGDEVWEB1:80/ibmcognos/cgi-bin/cognosisapi.dll?b_action=cognosViewer&ui.action=run&ui.object=CAMID(%22dcanalyze%3au%3aa202da3d8b73bb4b954d583834a025a5%22)%2ffolder%5b%40name%3d%27My%20Folders%27%5d%2ffolder%5b%40name%3d%27Anil%27%5d%2ffolder%5b%40name%3d%27On%20Screen%20Testing%27%5d%2ffolder%5b%40name%3d%27BRACKENFELL%20SCHEDULES%27%5d%2ffolder%5b%40name%3d%27ON%20SCREEN%20DISPLAYS%27%5d%2ffolder%5b%40name%3d%27SCOREBOARD%20SCHEDULES%2007%3a00%20-%2019%3a00%27%5d%2freport%5b%40name%3d%27BRACKENFELL%20DC%20-%20MEZZANINE%20SHIFT%27%5d&ui.name=BRACKENFELL%20DC%20-%20MEZZANINE%20SHIFT&run.outputFormat=HTML&run.prompt=true";
slideimages[9] = "http://COGDEVWEB1:80/ibmcognos/cgi-bin/cognosisapi.dll?b_action=cognosViewer&ui.action=run&ui.object=CAMID(%22dcanalyze%3au%3aa202da3d8b73bb4b954d583834a025a5%22)%2ffolder%5b%40name%3d%27My%20Folders%27%5d%2ffolder%5b%40name%3d%27Anil%27%5d%2ffolder%5b%40name%3d%27On%20Screen%20Testing%27%5d%2ffolder%5b%40name%3d%27BRACKENFELL%20SCHEDULES%27%5d%2ffolder%5b%40name%3d%27ON%20SCREEN%20DISPLAYS%27%5d%2ffolder%5b%40name%3d%27SCOREBOARD%20SCHEDULES%2007%3a00%20-%2019%3a00%27%5d%2freport%5b%40name%3d%27BRACKENFELL%20DC%20-%20SECTION%20AND%20REPORT%20GROUP%20SUMMARY%27%5d&ui.name=BRACKENFELL%20DC%20-%20SECTION%20AND%20REPORT%20GROUP%20SUMMARY&run.outputFormat=HTML&run.prompt=true";
slideimages[10] = "http://COGDEVWEB1:80/ibmcognos/cgi-bin/cognosisapi.dll?b_action=cognosViewer&ui.action=run&ui.object=CAMID(%22dcanalyze%3au%3aa202da3d8b73bb4b954d583834a025a5%22)%2ffolder%5b%40name%3d%27My%20Folders%27%5d%2ffolder%5b%40name%3d%27Anil%27%5d%2ffolder%5b%40name%3d%27On%20Screen%20Testing%27%5d%2ffolder%5b%40name%3d%27BRACKENFELL%20SCHEDULES%27%5d%2ffolder%5b%40name%3d%27ON%20SCREEN%20DISPLAYS%27%5d%2ffolder%5b%40name%3d%27SCOREBOARD%20SCHEDULES%2007%3a00%20-%2019%3a00%27%5d%2freport%5b%40name%3d%27BRACKENFELL%20DC%20-%20TOWER%20SHIFT%27%5d&ui.name=BRACKENFELL%20DC%20-%20TOWER%20SHIFT&run.outputFormat=HTML&run.prompt=true";
// style="border: 0; width: 100%; height: 100%" frameborder="0"
// style="border: 0; width: 100%; height: 100%" frameborder="0" scrolling="no" onload="resizeIframe(this)"
</script>
</head>
<style type="text/css">
body
{
margin: 0;
overflow: hidden;
}
#iframe1
{
height: 100%;
left: 0px;
position: absolute;
top: 0px;
width: 100%;
}
</style>
<body>
<iframe id="slide" src="" frameborder="0" style="height: 100%; width: 100%; position: absolute;" height="100%" width="100%" ></iframe>
<script type="text/javascript">
var step=0
function slideit(){
document.getElementById('slide').src = slideimages[step]
if (step<slideimages.length-1)
step++
else
step=0
setTimeout("slideit()",20000)
}
slideit()
</script>
</body>