如何让一首歌持续的播放,小弟往自己做的网站上用<bgsound>放了首歌,但是只要网页一有动作,比如点击了一个按钮就会让那首歌重新播放,请问如何才能让它持续播放,3Q

解决方案 »

  1.   

    //这是那个存放音乐的框架
    <table cellpadding="0" cellspacing="0" border="0" height="35px" width="100%">
    <tr>
    <td><iframe src="bgsound.htm" frameborder="0" scrolling="no" style="height:35px;width:100%"></iframe></td>
    </tr>
    </table>
      

  2.   

    我按xierfly说的去做
    <table   cellpadding= "0 "   cellspacing= "0 "   border= "0 "   height= "35px "   width= "100% "> 
    <tr> 
    <td> <iframe   src= "bgsound.htm "   frameborder= "0 "   scrolling= "no "   style= "height:35px;width:100% "> </iframe> </td> 
    </tr> 
    </table> 
    这样还是不行啊,一点击按钮又重新开始了,而且还冒出下载窗口....
      

  3.   

    你需要把你嵌套的这个页面设置成多个框架结构。我给你我的代码吧。你可以参考一下。
    <body scroll="no">
    <table cellpadding="0"  bgcolor="#AAC1E3" cellspacing="0" border="0" height="60px" width="100%" valign="top">
    <tr>
    <td width="100%"><iframe src="bgsound.htm" frameborder="0" scrolling="no" style="height:100%;width:100%"></iframe></td>
    </tr>
    </table>
    <table cellspacing="0" cellpadding="0" width="100%" border="0" height="100%">
    <tr>
    <td id="frmTitle" vAlign="top" noWrap width="150"><IFRAME class="buttonface" style="WIDTH: 150px; HEIGHT: 100%" src="left.aspx" frameBorder="no"
    width="150" scrolling="no" height="100%"></IFRAME></td>
    <td vAlign="top" align="center"><IFRAME name="main" src="main.aspx" frameBorder="no" scrolling="yes" width="100%" height="100%"
    id="IFRAME1"></IFRAME></td>
    </tr>
    </table>
    </body>
    </html>--------这个功能是我测试过才给你的。你根据自己的需求更改一下吧。