Answer the question
In order to leave comments, you need to log in
How to replace image with video in code?
</div>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 col-lg-4 html css">
<div class="work-wrapper">
<a class="fancybox-media" title="Image Title Goes Here" href="assets/img/portfolio/2.jpg">
<img src="assets/img/portfolio/2.jpg" class="img-responsive img-rounded" alt="" />
</a>
Answer the question
In order to leave comments, you need to log in
So, as offsite says (4. Show youtube clips.):
$("#tip4").click(function() {
$.fancybox({
'padding' : 0,
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'title' : this.title,
'width' : 680,
'height' : 495,
'href' : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
'type' : 'swf',
'swf' : {
'wmode' : 'transparent',
'allowfullscreen' : 'true'
}
});
return false;
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question