0
iframe을 표시하려고 할 때 문제가 있습니다. 여기에 html5로 비디오를로드하고 나서 비디오가 비디오를 숨기고 비디오를 숨기고 jQuery로 iframe div (오컬트)를 표시하지만 비디오가 iframe을 숨길 때 어떤 이유로 나타나면 요소를 검사 할 때 태그가 있지만 src가 비어있는과 함께 나타납니다.Wordpress에서 iframe 표시
<div id="video-promo">
<video width="680" height="371" id="video" autoplay="autoplay">
<source src="/video/first_test.m4v" type="video/mp4" />
</video>
</div>
<div id="video-streaming" style="display:none;">
<iframe width="560" height="315" src="http://www.youtube.com/embed/FmxSk0wZxss" frameborder="0" allowfullscreen></iframe>
</div>
아이디어 :
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" charset="utf-8">
jQuery(document).ready(function() {
jQuery("#video").bind("ended", function() {
jQuery("#video-promo").hide();
jQuery("#video-streaming").show();
});
});
</script>
그리고 여기에는 HTML을 간다? 미리 감사드립니다.
'display : none'을 제거하고'jQuery ('video-streaming'). hide()'를'jQuery (document) .ready' 이벤트에 넣으면 처음에는 숨길 수 있습니다. –
아직 작동하지 않습니다. 여기에있는 것은 숨기기 및 표시 이벤트가 작동하지만 요소를 검사 할 때 다음과 같이 표시됩니다. ' ' – Andres