to search the video swf url from web.
and then use these phtml to show video image and url link
<div class="image-box">
<a class="fancybox image_gal" rel="iframeLink" href="<?php echo $item->getVideo();?>">
<img src="<?php echo $this->resizeImage($item->getFilename(), 365, 205, ''); ?>" alt="<?php echo $item->getTitle(); ?>" />
</a>
</div>
<div class="title">
<a class="link_gal fancybox" rel="iframeLink" href="<?php echo $item->getVideo();?>"><?php echo $item->getTitle(); ?></a>
</div>
and use jquery to load fancybox
<script type="text/javascript">
(function($){
$(".fancybox").click(function() {
$.fancybox({
'padding' : 0,
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'title' : this.title,
'width' : 640,
'height' : 385,
'href' : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
'type' : 'swf',
'swf' : {
'wmode' : 'transparent',
'allowfullscreen' : 'true'
}
});
return false;
});
})(jQuery);
</script>
从网页获取SWF视频链接


被折叠的 条评论
为什么被折叠?



