我如何编写代码以使播放器不会自动启动?

How Can I Code This So The Player Won't Start Automatically?

这是我的页面底部。

<BR>
<BR>

    <table width=145 border=1 cellspacing=0 cellpadding=0>
      <tr><td align=center><font face="arial" size="-5">Mp3 Control Console</font></td></tr>
      <tr><td><EMBED SRC="https://www.fanficparadise.com/Music/mp3/Hiru_no_Tsuki.mp3" AUTOSTART="FALSE" controls="smallconsole" width=295 height=45></embed></td></tr>
      <tr><td align=center><font face="arial" size="-5">Hiru_no_Tsuki.mp3 from Outlaw Star</font></td></tr>
      <tr><td align=center><font face="arial" size="-5"><a href="https://www.fanficparadise.com/Music/mp3/Hiru_no_Tsuki.mp3">Download this .mp3</A></font></td></tr>
    </table>

<BR>
<BR>

AUTOSTART="FALSE" 无效。 .mp3 开始播放。如何让它不自动启动?

我想在页面上放置更多这些内容。但是,如果他们都同时开始演奏,我就做不到。我希望访问者有一些选择。

请帮帮我好吗?

不要使用 <embed> 标签。请改用 <audio> 标签。要让控制面板只需添加 controls 属性,它是一个空属性,没有任何值。还要加一个type attribute。默认情况下,音频不会自动播放,除非您添加 autoplay 属性,该属性也是一个空属性且没有值。

最后但不是弹性的,不要将表格用于样式目的。它不是表格数据。使用 display: block;flexbox.

进行布局设计

只需将 <embed> 行替换为以下行:

<audio width="295px" height="45px" controls>
  <source src="https://www.fanficparadise.com/Music/mp3/Hiru_no_Tsuki.mp3"  
          type="audio/mpeg">
</audio>

    <table width=145 border=1 cellspacing=0 cellpadding=0>
      <tr><td align=center><font face="arial" size="-5">Mp3 Control Console</font></td></tr>
      <tr><td><audio width="295px" height="45px" controls><source src="https://www.fanficparadise.com/Music/mp3/Hiru_no_Tsuki.mp3"  type="audio/mpeg"></audio></td></tr>
      <tr><td align=center><font face="arial" size="-5">Hiru_no_Tsuki.mp3 from Outlaw Star</font></td></tr>
      <tr><td align=center><font face="arial" size="-5"><a href="https://www.fanficparadise.com/Music/mp3/Hiru_no_Tsuki.mp3">Download this .mp3</A></font></td></tr>
    </table>

感谢大家对我的帮助!^_^

我已经把原来的东西换成了这个!^_^

<BR>
<BR>

<hr>

<BR>

Choose your music while enjoying the images.

<BR>
<BR>

<hr>

<BR>

    <table width=145 border=1 cellspacing=0 cellpadding=0>
      <tr><td align=center><font face="arial" size="-5">Mp3 Control Console</font></td></tr>
      <tr><td><audio style="width:295px; height:45px;" controls>
<source src="https://www.fanficparadise.com/arielschnee/Music/mp3/Hiru_no_Tsuki.mp3" type="audio/mp3" />
</audio>
</td></tr>
      <tr><td align=center><font face="arial" size="-5">Hiru_no_Tsuki.mp3 from Outlaw Star</font></td></tr>
      <tr><td align=center><font face="arial" size="-5"><a href="https://www.fanficparadise.com/arielschnee/Music/mp3/Hiru_no_Tsuki.mp3">Download this .mp3</A></font></td></tr>
    </table>

<BR>

<hr>

<BR>

    <table width=145 border=1 cellspacing=0 cellpadding=0>
      <tr><td align=center><font face="arial" size="-5">Mp3 Control Console</font></td></tr>
      <tr><td><audio style="width:295px; height:45px;" controls>
<source src="https://www.fanficparadise.com/arielschnee/Music/mp3/Blackmore's_Night_-_Ghost_Of_A_Rose.mp3" type="audio/mp3" />
</audio>
</td></tr>
      <tr><td align=center><font face="arial" size="-5">Blackmore's_Night_-_Ghost_Of_A_Rose.mp3 from Blackmore's Night</font></td></tr>
      <tr><td align=center><font face="arial" size="-5"><a href="https://www.fanficparadise.com/arielschnee/Music/mp3/Blackmore's_Night_-_Ghost_Of_A_Rose.mp3">Download this .mp3</A></font></td></tr>
    </table>

<BR>

<hr>

<BR>

    <table width=145 border=1 cellspacing=0 cellpadding=0>
      <tr><td align=center><font face="arial" size="-5">Mp3 Control Console</font></td></tr>
      <tr><td><audio style="width:295px; height:45px;" controls>
<source src="https://www.fanficparadise.com/arielschnee/Music/mp3/Shadow_of_the_Moon_-_Blackmore's_Night_(lyrics).mp3" type="audio/mp3" />
</audio>
</td></tr>
      <tr><td align=center><font face="arial" size="-5">Shadow_of_the_Moon_-_Blackmore's_Night_(lyrics).mp3 from Blackmore's Night</font></td></tr>
      <tr><td align=center><font face="arial" size="-5"><a href="https://www.fanficparadise.com/arielschnee/Music/mp3/Shadow_of_the_Moon_-_Blackmore's_Night_(lyrics).mp3">Download this .mp3</A></font></td></tr>
    </table>

<BR>

<hr>

<BR>

    <table width=145 border=1 cellspacing=0 cellpadding=0>
      <tr><td align=center><font face="arial" size="-5">Mp3 Control Console</font></td></tr>
      <tr><td><audio style="width:295px; height:45px;" controls>
<source src="https://www.fanficparadise.com/arielschnee/Music/mp3/Blackmores_Night_Fires_at_Midnight_(with_lyrics).mp3" type="audio/mp3" />
</audio>
</td></tr>
      <tr><td align=center><font face="arial" size="-5">Blackmores_Night_Fires_at_Midnight_(with_lyrics).mp3 from Blackmore's Night</font></td></tr>
      <tr><td align=center><font face="arial" size="-5"><a href="https://www.fanficparadise.com/arielschnee/Music/mp3/Blackmores_Night_Fires_at_Midnight_(with_lyrics).mp3">Download this .mp3</A></font></td></tr>
    </table>

<BR>

<hr>

<BR>

    <table width=145 border=1 cellspacing=0 cellpadding=0>
      <tr><td align=center><font face="arial" size="-5">Mp3 Control Console</font></td></tr>
      <tr><td><audio style="width:295px; height:45px;" controls>
<source src="https://www.fanficparadise.com/arielschnee/Music/mp3/White_Wings.mp3" type="audio/mp3" />
</audio>
</td></tr>
      <tr><td align=center><font face="arial" size="-5">White_Wings.mp3 from Breath of Fire II</font></td></tr>
      <tr><td align=center><font face="arial" size="-5"><a href="https://www.fanficparadise.com/arielschnee/Music/mp3/White_Wings.mp3">Download this .mp3</A></font></td></tr>
    </table>

<BR>

<hr>

<BR>

如果您想查看页面,请转到 [url=https://www.fanficparadise.com/index.htm]此处[/url].

欣赏!^_^