It's very simple but I didn't spent too much time.   you just need to add your image with x.png       paste the js or include it in an external .js file.    JS     <script> $(document).ready(function(){ var overlay = jQuery('<div id="overlay"></div><div id="box" class="videoWrapper"><iframe src="https://www.youtube.com/embed/B-HCMfaOkL0?autoplay=1&rel=0&enable_js=1" frameborder="0" allowfullscreen></iframe></div><div id="closebox"><img src="images/x.png" /></div>'); overlay.appendTo(document.body).fadeIn('fast');     $("#box").width($(window).width());     $("#box").height($(window).height());     $("#box").css('width','90%');     $("#box").css('margin-left','5%');     $("#box").css('margin-right','5%');          $("#closebox...