FancyVideo Light Box - 在页面加载时显示

发布于 2024-11-13 12:23:37 字数 555 浏览 3 评论 0原文

我正在使用 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>

但我现在希望灯箱出现在页面加载时,即不需要单击“观看视频”链接。选项?有想法吗?

谢谢。

I am using fancyVideo light box (http://chadly.net/demos/video-lightbox.html) to have a light box and YouTube video show when a link is clicked.

See coding:

<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>

But I would now like to have the lightbox appear on page load ie so no need to click the Watch video link. Options? Ideas?

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半透明的墙 2024-11-20 12:23:37

您必须通过 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。我真的不知道是不是

You will have to trigger the function via 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();
});

But that's assuming it's even possible to trigger a Flash video to play jQuery. I don't really know if it is

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文