After lightbox ajax has been opened and closed it reopens anytime you scroll the page

Q: I have put visual lightbox in my web page. It works nicely except after lightbox has
been opened and closed it reopens anytime you scroll the page.
It doesn't matter if you use the scroll wheel on the mouse or the scroll bar on the page.
How can I fix this?

A: You calls VisualLightBox HEAD section for 2 times on your page:

<!-- Start visuallightbox.com HEAD section -->
<link rel="stylesheet" href="engine/css/vlightbox1.css" type="text/css" />
<link rel="stylesheet" href="engine/css/visuallightbox.css" type="text/css" media="screen" /> 
<script src="engine/js/jquery.min.js" type="text/javascript"></script> 
<script src="engine/js/visuallightbox.js" type="text/javascript"></script>
<script src="engine/js/vlbdata.js" type="text/javascript"></script>
<!-- End visuallightbox.com HEAD section -->


in the <head></head> tags and directly before the VisualLightBox Body section.
It is not necessary. You should remove extra call.

Related