有一个根据不同参数返回不同信息的页面(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的刷新过程中才出现渐变的页面效果,其它都是直接跳转,无任何渐变效果.不知何故,望高手不吝赐教.感谢!

解决方案 »

  1.   

    <Meta http-equiv="Page-Enter" Content="blendTrans(Duration=10)">是用来在两个页面转换的时候做混合效果的,楼主直接用的地址访问,当然没有渐变效果了。
      

  2.   

    <Meta http-equiv="Page-Enter" Content="blendTrans(Duration=10)">这是哪里的特效?DHTML 手册里查不到呀?粘到页面里也没啥反映?!
      

  3.   

    <meta http-equiv="Page-Enter" content="revealTrans(duration(时间), transition(特效))">仅用于不带frame(框架)的页面!