有一个根据不同参数返回不同信息的页面(getInfo.aspx).我在该页面中放置了如下语句:
<Meta http-equiv="Page-Enter" Content="blendTrans(Duration=10)">现在使用另一个带iframe的页面(frameJS.html),实现在该页面的iframe中定时刷新显示以上页面,代码如下:
<html>
<body>
<iframe width="100%" marginWidth="0" marginHeight="0" frameBorder="0" height="" scrolling="no" id="iframe1" name="iframe1" src="">
</iframe>
</body>
<script language="javascript">
var m=0;
goUrl();
function goUrl()
{ switch( m )
{
case 0:
{
iframe1.location.href="http://localhost/getInfo.aspx?id=0";
break;
}
case 1:
{
iframe1.location.href="http://localhost/getInfo.aspx?id=1";
break;
}
case 2:
{
iframe1.location.href="http://localhost/getInfo.aspx?id=2";
break;
}
}
m+=1;
if(m==3)
{
m=0;
}
var timer = setTimeout('goUrl()', 5000);
}
</script>
</html>运行后发现只有在从getInfo.aspx?id=0到getInfo.aspx?id=1的刷新过程中才出现渐变的页面效果,其它都是直接跳转,无任何渐变效果.不知何故,望高手不吝赐教.感谢!
<Meta http-equiv="Page-Enter" Content="blendTrans(Duration=10)">现在使用另一个带iframe的页面(frameJS.html),实现在该页面的iframe中定时刷新显示以上页面,代码如下:
<html>
<body>
<iframe width="100%" marginWidth="0" marginHeight="0" frameBorder="0" height="" scrolling="no" id="iframe1" name="iframe1" src="">
</iframe>
</body>
<script language="javascript">
var m=0;
goUrl();
function goUrl()
{ switch( m )
{
case 0:
{
iframe1.location.href="http://localhost/getInfo.aspx?id=0";
break;
}
case 1:
{
iframe1.location.href="http://localhost/getInfo.aspx?id=1";
break;
}
case 2:
{
iframe1.location.href="http://localhost/getInfo.aspx?id=2";
break;
}
}
m+=1;
if(m==3)
{
m=0;
}
var timer = setTimeout('goUrl()', 5000);
}
</script>
</html>运行后发现只有在从getInfo.aspx?id=0到getInfo.aspx?id=1的刷新过程中才出现渐变的页面效果,其它都是直接跳转,无任何渐变效果.不知何故,望高手不吝赐教.感谢!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货