不是问过了吗?
google 下

解决方案 »

  1.   

    我自己试过了,不行啊,又不知道哪里出了问题,帮帮忙吧。
    <script language="javascript">
    function start(a, b, c) {
      if (a<100 && b<100 && c<100) {
            images=['1.jpg','2.jpg','3.jpg']
            circle();
            return;
      }
      
      if (a>100 && b<100 && c<100) {
            images=['2.jpg','3.jpg']
            circle();
            return;
      }
      
      if (a<100 && b>100 && c<100) {
            images=['1.jpg', '3.jpg']
            circle();
            return;
      }
      
      if (a<100 && b<100 && c>100) {
            images=['1.jpg', '2.jpg']
            circle();
      }
    }var counter=0;
    var images=[];function circle() {
      container.src=images[counter];
      counter++;
      
      if (counter >= images.length) {
        counter=0;
      }
      
      setTimeout("circle();", 200);
    }function loadRes() {
    var loader = new Image();loader.src="1.jpg";
    loader.src="2.jpg";
    loader.src="3.jpg";info.innerText="Loaded.";start(10,10,180);
    }
    </script><body onload="loadRes();"><img id="container" src="1.jpg"/>
    <div id="info" style="font-size: 9; color: red"></div>
    </body>我知道要container这要改,但是改不出来,请帮下忙了,万分感谢