Hi tiofelix,
Thanks for your solution, it’s awesome.
But I have another condition, I’ve changed my D.innerHTML code before applying yours, so when I click on the image it will show next image.
But after applying you codes, the function is gone, because its on the shWrap. So how could I keep both of the function(click image to show next image and click background to close view)?
D.innerHTML = '<div id="shWrap" onclick="shutterReloaded.hideShutter();"><img src="'+shutterLinks[ln].link+'" id="shTopImg" title="' + t.msgClose + '" onload="shutterReloaded.showImg();" onclick="shutterReloaded.make('+next+');" /></div>' + NavBar;
Thanks for your time