сейчас на сайте:
Лучшие сказки мира
Детектив и фантастика
Песни прошлых лет
Для досуга
смотреть оглавлениепримерразмер кода
Include onload="preCheck()" in the opening body tag
Note: The width and height of the layer must be stated inline.
<script type="text/javascript"> function preCheck(){ var mid_width = parseInt(document.getElementById("mid").style.width) var posX = (document.body.clientWidth - mid_width) / 2 document.getElementById("mid").style.left=posX lefty=parseInt(document.getElementById("left_side").style.width) document.getElementById("left_side").style.left=posX - lefty-20 document.getElementById("right_side").style.left=posX+mid_width + 20 } onresize=preCheck // include onload="preCheck()" in the opening body tag </script>