本帖最后由 qq283868910 于 2011-03-23 21:57:36 编辑

解决方案 »

  1.   

    <body>
    <span id="sec"></span>
    <script type="text/javascript">
    function readtime(){    
        var now=new Date();
        var shi=now.getHours();
        var miao=now.getSeconds();
        var fen=now.getMinutes();
        //document.write(miao);
    document.getElementById("sec").innerHTML=miao;
      if(shi<0){
          shi="0"+shi
            }
       if(miao==0 && fen==0){
          document.write("<embed src=\"timeer/"+shi+".mp3\" width=\"32\" height=\"32\"></embed>")    ;   
           } 
    window.setTimeout('readtime()',1000);
        }
        readtime();
    </script></body>