2012-02-17 2 views
1

이미지에 JQuery.lightbox를 적용 할 수 있지만이를 YouTube 비디오에 어떻게 적용합니까?jQuery.lightbox : youtube 비디오?

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

답변