<img id=xxx >
<你的javascript随即函数,产生一个数字然后对相应的图片名称然后window.xxx.src=你的图片名称就可以了>

解决方案 »

  1.   

    是asp文件的话,他有一个adrotate组件,很方便的,用javascript的话,如楼上的所说。
      

  2.   


    <BODY>
    <script>
    if (document.all){
    var pic=new Array("aa.gif","bb.png","cc.jpg");
    var tmp='<img src='+pic[Math.floor(Math.random()*pic.length)]+'width=468 height=60></img>'
    document.write(tmp);
    }
    </script>
    </BODY>