07-16-2015 06:27 PM
<object type="application/x-shockwave-flash" data="https://www.youtube.com/v/WkddF7F0zvs" width="640" height="400" title="Adobe Flash Player">
<param name="movie" value="https://www.youtube.com/v/WkddF7F0zvs">
<param name="wmode" value="transparent">
</object>
<iframe src="//www.youtube.com/embed/WkddF7F0zvs" width="640" height="400" frameborder="0" allowfullscreen="true"></iframe>
javascript:$("object").each(function(){var $this = $(this);var data = $this.attr("data");var i;var id;var iframe;var $iframe;if(data.indexOf("//www.youtube.com") > -1){i = data.lastIndexOf("/") + 1;id = data.substring(i);if(id.length > 0){$iframe = $(iframe = document.createElement("iframe"));$iframe.attr({src: "//www.youtube.com/embed/" + id, width:$this.attr("width"),height:$this.attr("height"),frameborder: 0, allowfullscreen:true,});$this.replaceWith($iframe);}}});
07-16-2015 07:02 PM
07-16-2015 07:11 PM