如何解决FancyVideo灯箱-在页面加载中显示
| 我正在使用fancyVideo灯箱(http://chadly.net/demos/video-lightbox.html)来创建一个灯箱,并在单击链接时显示YouTube视频。 参见编码:<div class=\"messageContainer\" div id=\"watch_video\">
<div class=\"containerWarning3\" style=\"color:#f96f00\">
<center><h2>Watch <a href=\"http://www.youtube.com/watch?v=gVLt2dMKx6k&feature=aso\" rel=\"fancyvideo\">this funny video</a> It is a good watch</h2></center>
</div>
</div>
但是我现在想让灯箱显示在页面加载中,即不需要单击“观看视频”链接。选项?有想法吗?
谢谢。
解决方法
您将必须通过jQuery触发函数:
// .load() waits for EVERYTHING to load.
// .ready() waits for the document to be ready (i.e. not all the images have to be loaded).
// Swap them and see what happens.
$(document).load(function() {
your_lightbox_trigger_function();
});
但这是假设甚至可以触发Flash视频以播放jQuery。我真的不知道是不是
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。