在Youtube视频链接

时间:2018-06-14 05:35:35

标签: php html laravel youtube

我在laravel网站主页上加载了一个弹出模式,随机显示Youtube嵌入的视频。像

shows Youtube embedded videos

现在,如果我转到另一个页面并单击后退按钮返回主页而不是模式显示错误

  

抱歉,找不到您要查找的页面。

Error

随机更改嵌入式网址链接会发生这种情况。

但如何解决这个问题!!

这是我的HTML代码

<div class="modal fade" id="videoModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">

  <div class="modal-content">
    <div class="modal-body">
        <center><h2 style="background:#7CB235;color:#fff">{{ $technology_video_link->name }}</h2></center>      
        <iframe width="100%" height="350" src="{{ $technology_video_link->video_link }}?modestbranding=1&rel=0&controls=0&showinfo=0&html5=1&autoplay=1" frameborder="0" allowfullscreen></iframe>
    </div>
  </div>

  <button type="button" class="close" data-dismiss="modal">
    <a href="#0"><span aria-hidden="true">&times;</span></a></button>
</div>

0 个答案:

没有答案