我使用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>但是我现在想让lightbox出现在页面加载上,这样就不需要点击观看视频链接了。选项?想法?
谢谢。
发布于 2011-06-04 12:12:23
您必须通过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。我真的不知道是不是
https://stackoverflow.com/questions/6234608
复制相似问题