日期:2014-05-20  浏览次数:20566 次

50分 求如何让三个页面轮流显示
我现在有一个大屏幕     我想让三个页面轮流显示       比如a.aspx   b.aspx     c.aspx   每5分钟交替一次

------解决方案--------------------
a刷b b刷c c刷a
<META http-equiv= 'Refresh ' content= '300;URL= <%=meaturl()%> '>


------解决方案--------------------
用框架可以实现
主框架页面
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head>
<TITLE> 无标题文档 </TITLE>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 ">
</head>
<frameset rows= "100%,0 " frameborder= "no " border= "0 " framespacing= "0 ">
<frame src= "a.aspx " name= "mainFrame " id= "mainFrame " title= "mainFrame ">
<frame src= "redir.aspx " name= "bottomFrame " scrolling= "no " noresize id= "bottomFrame " title= "bottomFrame ">
</frameset>
<noframes>
<body>
</body>
</noframes>
</html>

然后建一个 redir.aspx也可以是html文件
页面代码添加(后台无需代码)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN " >
<HTML>
<HEAD>
<title> redir </title>
<script>
arr = new Array();
arr[0] = 'a.aspx ';
arr[1] = 'b.aspx ';
arr[2] = 'c.aspx ';
var i = 0;
function getUrl()
{
top.window.frames[ 'mainFrame '].location.href = arr[i];
i++;
if (i > 2)
{
i = 0;
}
}
</script>
</HEAD>
<body>
<form id= "Form1 " method= "post " runat= "server ">

<script> window.setInterval( 'getUrl() ', 300000); </script>
</form>
</body>
</HTML>