dongmaopan5738 2012-02-17 17:47
浏览 44

jQuery.lightbox:youtube视频?

I'm able to apply a JQuery.lightbox to an image but how do I apply it to a youtube video?

<script src="jquery.lightbox.min.js" type="text/javascript" charset="utf-8"></script>
...
foreach ($xml->entry as $entry) :
    $kids = $entry->children('http://search.yahoo.com/mrss/');
    $attributes = $kids->group->content[0]->attributes();
    $flv = $attributes['url'];
    $attributes = $kids->group->player->attributes();
    $link = $attributes['url']; 
?>
<a rel="lightbox" href="<?=$link?>" title="youtube video title">
 <img src="http://i4.ytimg.com/vi/<?=$id?>/default.jpg" />
</a>

<?php endforeach; ?>
  • 写回答

1条回答 默认 最新

  • doujue1246 2012-02-17 17:52
    关注

    Check out this quick tutorial on how to create a lightbox effects for youtube videos !

    http://www.youtube.com/watch?v=92c3dX-AoXs

    Hope this helps :)

    评论

报告相同问题?

悬赏问题

  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制