Ciao ragazzi... da completo ignorante, sto cercando di far coesistere lo script che mi permette di avere uno sfondo pagina adattato allo schermo e lightbox... Solo che vanno in conflitto, perchè il secondo non funge... Come risolvere???
Ecco lo script fixedbackground:
var backgroundset1=false; // do not change, for internal use only
function fixedBackground(url)
{
if(!backgroundset1)
{
document.body.style.overflow = 'hidden';
document.body.style.padding = '0px';
document.body.style.margin = '0px';
var overlay1 = document.createElement('DIV');
overlay1.style.position = 'absolute';
overlay1.style.top = '0px';
overlay1.style.left = '0px';
overlay1.style.height = '100%';
overlay1.style.width = '100%';
overlay1.style.overflow = 'auto';
overlay1.innerHTML = document.body.innerHTML;
document.body.innerHTML = '[img]' + url + '[/img]';
document.body.appendChild(overlay1);
backgroundset1=true;
}
else
background.src=url;
}
Grazie!