2012-02-17 4 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; ?> 

答えて

0

YouTube動画のライトボックスエフェクトを作成する方法については、このクイックチュートリアルをご覧ください。

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

希望はこのことができます:)