Aspetta che lo faccia qualche moderatore.
In ogni caso credo si debba andare a modificare direttamente la funzione initLightbox in questo modo:
Originale:
codice:
if (anchor.getAttribute("href") && (anchor.getAttribute("rel") == "lightbox")){
anchor.onclick = function () {showLightbox(this); return false;}
}
Modifica:
codice:
if (anchor.getAttribute("href") && (anchor.getAttribute("rel") == "lightbox")){
anchor.onclick = function () {showLightbox(this);removeScrollbar(); return false;}
}
Dopodichè andrai a modificare
codice:
objLink.onclick = function () {hideLightbox(); return false;}
in
codice:
objLink.onclick = function () {hideLightbox();showScrollbar(); return false;}
e dovrai andarti a creare le funzioni removeScrollbar() e showScrollbar():
codice:
removeScrollbar = function(){
document.getElementById("text").style.overflow="hidden";
}
showScrollbar = function(){
document.getElementById("text").style.overflow="",
}