<script>
$(document).ready(function () {
setInterval(function () {
$.magnificPopup.open({
items: {
src: '#test-popup'
},
type: 'inline'
});
}, <?php echo $time_popup; ?>);
});
</script>
This is my script. I try to reset set interval function, when click close to popup. I use magnific popup, try with this, without result.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…