document.onclick = function(event) { if (GetCookie('sfqzgj') == "true") { $('html').css("pointer-events", "none") } } document.onmousemove = function(event) { if (GetCookie('sfqzgj') == "true") { $('html').css("pointer-events", "none") } }