如何在单击视频帧中的任何位置时重定向页面,网址链接页面应打开
代码:
$(document).ready(function(){
$("#ytplayer").attr('src', 'http://www.youtube.com/embed/' + getValue("id") +'?autoplay=1&origin=http://example.com');
$("#back").click(function(){
if(getValue("Animat")==1 || getValue("Animat")==2 || getValue("Animat")==3 || getValue("Animat")==4)
{
window.location.href = "Week-Animations.html?Animat=" + getValue("Animat") + "&week=" + getValue("week") + "&tier=" + getValue("tier");
}});});
<iframe id="f" width="300" height="320" src=" " frameborder="0" allowfullscreen></iframe>
</div>