javascript code

  1. auto change images:
    var x = 0;
    var images = new Array("http://www.sohndtm.com/dtmimages/lighton.gif","http://www.sohndtm.com/dtmimages/lig  htoff.gif");
    var i = setInterval(auto, 800);
    
    function auto(){
      x++;
      if(x == images.length) x=0;
      document.getElementById('myImage').src = images[x];      
    }
  2. n
  3. n
  4. n
  5. n
  6. n
  7. n
  8. n
  9. n
  10. n
  11. n
  12. n
  13. n
posted @ 2013-07-27 08:58  wxwcase  阅读(163)  评论(0编辑  收藏  举报