// JavaScript Document var xx = document.getElementById("myVideo22"); $(window).scroll(function(){ if($(window).scrollTop() > $(".e_container-49").offset().top){ xx.play(); } });