<?php echo "<script type=\"text/javascript\"> document.documentElement.className = document.documentElement.className + ' js'; function show(elem) { elem = document.getElementById(elem); if (elem.style && elem.style['display']) { var disp = elem.style['display']; } else if (elem.currentStyle) { var disp = elem.currentStyle['display']; } else if (window.getComputedStyle) { var disp = document.defaultView.getComputedStyle(elem, null).getPropertyValue('display'); } elem.style.display = disp == 'block' ? 'none' : 'block'; return false; } </script> <div onclick=\"return show('block')\">Скрыть \ Показать</div> <div id=\"block\" style=\"display: none;\">Скрытый текст.</div> "; ?>