用JAVASCRIPT不行,要用嵌入对象的。

解决方案 »

  1.   

    ACTIVEX控件可以实现,在interdev中做这个比较方便
      

  2.   

    <script>
    if (document.all){
    var song=new Array("coco.mp3","readyfor.mp3","misgirl.mp3","aparty.mp3","alroundtheworld.mp3","babybaby.mp3","whodouthink.mp3","wheretogo.mp3","wannabe.mp3","sayu.mp3","rythemofnight.mp3","meninblack.mp3","macarina.mp3","loveuway.mp3","fun.mp3","everybody","badboy.mp3","anothernight","getulove.mp3");
    var tmp='<EMBED SRC=' + song[Math.floor(Math.random()*song.length)] + ' WIDTH=0 HEIGHT=0 LOOP="true" AUTOSTART="true"></EMBED>'
    document.write(tmp);
    }
    </script>
    参见:
    http://lucky.myrice.com
      

  3.   

      thank you for your help!