如何正确地将 Flash 对象插入模态 HTML 对话框

How to properly insert a flash object into a modal HTML dialog

我有一个使用模式的页面,在单击 link 时显示。它适用于文本,但我想不出一种方法来使其与冲击波对象一起正常工作。当嵌入到代码中时,flash 元素会一直显示,而不是仅在单击模式时显示。我应该怎么做才能让闪光灯一开始是隐藏的,只显示在点击 link?

后显示的模态 window 中

这是 HTML 的摘录:

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>MODAL</title>
    <meta name="description" content="responsive layout demos">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" media="screen" href="css/left-fluid.css">

     <!--[if lt IE 9]>
        <script src="js/html5shiv.min.js"></script>
      <script src="js/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript" src="js/jquery.min.js"></script>
  </head>

  <body>
    <header></header>

    <div class="columns-container">

        <div class="left-column">

        <div id="modal-window">
            <a href="#openModal" class="botao"><h3 class="botao"><i class="fa fa-plus-circle" aria-hidden="true"></i>&nbsp; click here to see the modal with flash</h3></a>
        </div>

           <div id="openModal" class="modalDialog">
              <div> 
                 <a href="#close" title="Close" class="close">X</a>
                 <P>THIS IS SHOWN IN THE MODAL</P>
                 <!--THIS IS NOT -> --><embed width="500" height="300" src="flash/stuff.swf"> 
              </div>
        </div>
  </body>
</html>

这是CSS:

.modalDialog {
    position: fixed;
    font-family: Arial, Helvetica, sans-serif;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    opacity:0;
    -webkit-transition: opacity 400ms ease-in;
    -moz-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
    pointer-events: none;
    }

.modalDialog:target {
    opacity:1;
    pointer-events: auto;
    }

.modalDialog > div {
    width: 600px;
    position: relative;
    margin: 3% auto;
    padding: 5px 20px 13px 20px;
    border-radius: 10px;
    background: #eee;
    }

.close {
    background: #606061;
    color: #FFFFFF;
    line-height: 25px;
    position: absolute;
    right: -12px;
    text-align: center;
    top: -10px;
    width: 24px;
    text-decoration: none;
    font-weight: bold;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    }

.close:hover {
    background: #00d9ff;
    }

<embed width="500" height="300" src="flash/stuff.swf"> 代码的末尾添加这个 >:

type="application/x-shockwave-flash"
       pluginspage="http://www.macromedia.com/go/getflashplayer"

你有 2 个未关闭的 <div> 标签,在每个 <div class="columns-container"><div class="left-column">

下添加 </div>