如何使用当前代码将视频放入下拉菜单?

时间:2018-08-25 16:43:18

标签: html

这是我当前的代码:

  <div  style="width: 640px; height: 480px; position: relative;">

  <iframe src="https://drive.google.com/file/d/LINKTOMYFILE/preview"   width="640" height="480" frameborder="0" scrolling="no" seamless=""></iframe>

  <div style="width: 80px; height: 80px; position: absolute; opacity: 0; right: 0px; top: 0px;">&nbsp;</div>
  </div>

如何将其包装到这种下拉菜单中?

<p style="text-align: center;"><select style="margin: 5px auto; width: 146px;" onchange="document.getElementById('11qq').src=this.options[this.selectedIndex].value;">
<option value="VIDEOLINK1">Video1</option>
<option value="VIDEOLINK2">Video2</option>

</select></p>
<p style="text-align: center;"><iframe id="11qq" src="START VIDEO" width="960" height="540" frameborder="0" allowfullscreen="allowfullscreen"></iframe></p>

我现在尝试了几种变体,但似乎都没有用。甚至有可能吗?

欢呼

0 个答案:

没有答案