Hi,
I am developing a site using Actinic e-commerce system. It is causing all sorts of trouble, but this time I am completely stuck. It breaks a lovely lightbox script I am using and causes it to misbehave. Perhaps someone more experienced with JS could have a look and point me to where the problem may be.
Original site with lightbox working fine:
http://www.nutri-linkltd.co.uk/products/
New e-commerce generated site with lighbox plugin misbehaving:
http://www.n-ll.co.uk/products/
When you click on ‘X Close’ on the latter, nothing happens. But when you hit ‘Esc’ on the keyboard it closes.
The lightbox script is here: http://www.nutri-linkltd.co.uk/cms/w…-2/lightbox.js
And it seems like this bit of the code isn’t working so well:
Code:
var objBottomNavCloseLink = document.createElement(“a”);
objBottomNavCloseLink.setAttribute(‘id’,‘stimuli_bottomNavClose’);
objBottomNavCloseLink.setAttribute(‘href’,’#’);
objBottomNavCloseLink.onclick = function() { myLightbox.end(); return false; }
objBottomNav.appendChild(objBottomNavCloseLink);
Or something is stopping it from working…
Can someone please help me out?
________________________________________________________