<html><body bgcolor="#fef4d9" onload="Clicked()">
<SCRIPT>
<!--
transeffect = 0;
theeffects = new Array(24);current_image = "image1";
function Clicked()
 {
setTimeout("Clicked()",2000)
var the_image, the_other;
text2.style.visiblity="hidden";
if (image1.style.visibility=="inherit")      
            {
the_image = image2;
the_other = image1;
   }
else 
   {
the_image = image1;
the_other = image2;

the_other.style.visibility="hidden";
the_image.filters.item(0).Apply();
the_image.filters.item(0).Transition = transeffect;
the_image.filters.item(0).Play(2.0);
the_image.style.visibility="inherit";
text2.innerText=theeffects[transeffect];
transeffect++;
if (transeffect == 24)
transeffect = 0;
text2.style.visibility="visible";
}
//-->
</SCRIPT>
<DIV id=image>
<DIV id=text1></DIV>
  <IMG id=image2 src="054.gif" 
style="FILTER: revealTrans(Duration=3.0,Transition=1); VISIBILITY: hidden"> <img id=image1 
src="054.gif" 
style="FILTER: revealTrans(Duration=3.0,Transition=1); VISIBILITY: hidden"></DIV>
<DIV id=text2></DIV></body>
</html>

解决方案 »

  1.   

    原来不就是同一张图片吗? src="054.gif" ..
      

  2.   

    呵呵,把
     <IMG id=image2 src="054.gif" 
    style="FILTER: revealTrans(Duration=3.0,Transition=1); VISIBILITY: hidden"> <img id=image1 
    src="054.gif" 
    style="FILTER: revealTrans(Duration=3.0,Transition=1); VISIBILITY: hidden">中的054.gif改为你自己的图片的地址
      

  3.   

    我好笨,不明白。<html>
    <body bgcolor="#fef4d9" onload="Clicked()">
    <SCRIPT>
    transeffect = 0;
    function Clicked()
     {
    setTimeout("Clicked()",2000)
    var the_image, the_other;
    the_image = image;
    the_image.style.visibility="hidden";
    the_image.filters.item(0).Apply();
    the_image.filters.item(0).Transition = transeffect;
    the_image.filters.item(0).Play(2.0);
    the_image.style.visibility="inherit";
    transeffect++;
    if (transeffect==24) transeffect = 0;
    }
    </SCRIPT><IMG id=image src="054.gif" style="FILTER: revealTrans(Duration=3.0,Transition=1); VISIBILITY: hidden"></body>
    </html>
      

  4.   

    再改改,呵呵,加个速度控制.<html><body bgcolor="#fef4d9" onload="imgPlay()">
    <SCRIPT>
    settime = 1; //翻转速度(秒)
    transeffect=0;
    function imgPlay()
     {
    setTimeout("imgPlay()",settime*1000)
    var the_image;
    the_image = image;
    the_image.style.visibility="hidden";
    the_image.filters.item(0).Apply();
    the_image.filters.item(0).Transition = transeffect;
    the_image.filters.item(0).Play(settime);
    the_image.style.visibility="inherit";
    transeffect++;
    if (transeffect==24) transeffect=0;
    }
    </SCRIPT><IMG id=image src="054.gif" style="FILTER: revealTrans(Duration=3.0,Transition=1); VISIBILITY: hidden"></body>
    </html>
      

  5.   

    多谢你的帮忙,我的主页已经基本改好,现在的新问题是图片的变化和滚动信息有冲突,我知道原因,但不会改,请帮改一下,请去http://www15.brinkster.com/amartapple看一下就知道哪儿不行啦,滚动明显有停顿,谢谢!
      

  6.   

    看不你的主页,你试试:把:
    setTimeout("imgPlay()",settime*1000);
    改成:
    var lotime = setTimeout("imgPlay()",settime*1000);
      

  7.   

    能看到的,你再试试
    改成:
    var lotime = setTimeout("imgPlay()",settime*1000);
    还是不行,你去掉图片后对比一下效果就知道了
      

  8.   

    偶访问不了http://www15.brinkster.com/amartapple
    :(
      

  9.   

    我觉得把setTimeout("Clicked()",2000)放到Clicked()的末尾要好些。此外setTimeout("Clicked()",2000)后面没有用";"结束