1
我遇到了問題。我同時在高空滑翔中創建了兩個物體,但其中一個沒有激活(我無法關閉或移動他)。下面我寫的例子:創建兩個對象Highslide
hs.graphicsDir = 'http://highslide.com/highslide/graphics/';
hs.outlineType = 'rounded-white';
function paint(id){
\t
\t var element = document.getElementById('highslide-html_' + id);
\t var frame = hs.htmlExpand(element, { contentId: 'highslide-html_' + id });
\t return frame;
}
paint("id1");
paint("id2");
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script type="text/javascript" src="http://highslide.com/highslide/highslide.js.php?full=true"></script>
<link rel="stylesheet" type="text/css" href="http://highslide.com/highslide/highslide.css" />
<div class="highslide-html-content highslide-move" id="highslide-html_id1">
\t <div class="highslide-header">
\t \t <ul>
\t \t \t <li class="highslide-close">
\t \t \t \t <a href="#" onclick="return hs.close(this)">Close</a>
\t \t \t </li>
\t \t </ul>
\t </div>
\t <div class="highslide-body">
\t \t Panel 1
\t </div>
<div class="highslide-footer">
<div>
<span class="highslide-resize" title="Resize">
<span></span>
</span>
</div>
</div>
</div>
<div class="highslide-html-content highslide-move" id="highslide-html_id2">
\t <div class="highslide-header">
\t \t <ul>
\t \t \t <li class="highslide-close">
\t \t \t \t <a href="#" onclick="return hs.close(this)">Close</a>
\t \t \t </li>
\t \t </ul>
\t </div>
\t <div class="highslide-body">
\t \t Panel 2
\t </div>
<div class="highslide-footer">
<div>
<span class="highslide-resize" title="Resize">
<span></span>
</span>
</div>
</div>
</div>
,當我一次創建兩個對象它不只是工作。如果我將繪畫(...)放入onclick處理程序中,我可以創建任意數量的對象,並且它們都將是交互式的。
也許有人可以幫助我嗎?