我有一段录像,内容如下:
一台录像显示,当页数时,会发生故障。
有两条内容表格,每个表格都有一个录像带。 当你点击一个umb子时,缺省录像消失,被点击的录像带上。
I m using a bit of code I found here: Flash video still playing on DIV that is removed using jQuery (IE bug) - to remove the video and clone it because I was having an issue in IE where the previous video was still playing even though the new video was being loaded.
如今,IE9中的首个制片的录像栏不会消失。 不过,第二栏将列出。
这是超文本:
<div class="video-holder">
<div id="video17" class="large-video" style="display: none;">
<div class="embed-video">the video</div>
</div>
<div id="video18" class="large-video" style="display: none;">
<div class="embed-video">the video</div>
</div>
<div id="video19" class="large-video" style="display: none;">
<div class="embed-video">the video</div>
</div>
<div id="video20" class="large-video" style="display: none;">
<div class="embed-video">the video</div>
</div>
</div>
<ul>
<li><a href="#video-tab1">Tab 1</a></li>
<li><a href="#video-tab2">Tab 2</a></li>
</ul>
<div id="video-tab1">
<a href="#" id="link17" class="video-link">thumbnail</a>
<a href="#" id="link18" class="video-link">thumbnail</a>
</div>
<div id="video-tab2">
<a href="#" id="link19" class="video-link">thumbnail</a>
<a href="#" id="link20" class="video-link">thumbnail</a>
</div>
这里是联合材料:
jQuery(".large-video").hide(); //hides all the .large-video divs
jQuery("#video17").show(); // this is the default video to show
jQuery(".video-link").click(function(e){
e.preventDefault();
$(".large-video").hide()
$("#video"+$(this).attr("id").replace("link","")).show();
var clone = $(".large-video").clone(true);
$(".large-video").remove();
$(".video-holder").html(clone);
});
感谢你能够提供的任何帮助!