Demo: Lazy Loading Videos - VIEW TUTORIAL ON AEXT.NET

jQuery Approach

<script type="text/javascript">
//<![CDATA[
$(document).ready(function(){
   $("a.video-in-link").one('click',function(){
      var anchor = $(this);
      anchor.html(anchor.html().replace('<!--','').replace('-->',''));
      anchor.removeAttr('href');
      return false;
   })
})
//]]>
</script>

Non jQuery Approach

<script type="text/javascript">
//<![CDATA[
function videoInLink(anchor){
   anchor.innerHTML = anchor.innerHTML.replace('<!--','').replace('-->','');
   anchor.removeAttribute('href');
   anchor.onclick= null;
   return false;
};
//]]>
</script>