///////////////////////////////////////////////////////// function onscroll(){ var nov = document.getElementById('nov') var fon = document.getElementById('fon') if(nov && fon){ nov.style.top = document.body.scrollTop nov.style.left = document.body.scrollLeft fon.style.top = document.body.scrollTop fon.style.left = document.body.scrollLeft } ten() } ///////////////////////////////////////////////////////// function onresize(){ var nov = document.getElementById('nov') var fon = document.getElementById('fon') var width = document.body.clientWidth var height = document.body.clientHeight if(nov && fon){ nov.style.width = width nov.style.height = height nov.style.left = document.body.scrollLeft fon.style.width = width fon.style.height = height fon.style.left = document.body.scrollTop } ten() } //////////////////////////////////////////////// function prosmotr(img){ var nov = document.createElement('div') nov.setAttribute("id","nov") nov.style.position = 'absolute' nov.style.zIndex = '100' nov.style.width = document.body.clientWidth nov.style.height = document.body.clientHeight nov.style.left = document.body.scrollLeft nov.style.top = document.body.scrollTop nov.innerHTML = '
щелчок для закрытия
' document.body.appendChild(nov) fon() } ///////////////////////////////////////////////////////// function fon(){ var fon = document.createElement('div') fon.setAttribute("id","fon") fon.style.position = 'absolute' fon.style.backgroundColor = '#000' fon.style.opacity = '.6' fon.style.filter = 'alpha(opacity=60)' fon.style.width = document.body.clientWidth fon.style.height = document.body.clientHeight fon.style.left = document.body.scrollLeft fon.style.top = document.body.scrollTop document.body.appendChild(fon) var selectList = document.getElementsByTagName("SELECT"); for(var i = 0; i