у меня есть спойлер на форуме внутри которого код (замена HTML):
Код: Выделить всё
<noindex><div style="margin:2px; margin-top:2px;" width="100%">
<div class="quotetitle" width="100%">
<input type="button" value="Показать" style="width:65px;font-size:10px;margin:0px;padding:0px;" onclick="
if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('iframe')[0].style.display != '')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('iframe')[0].style.display = '';
this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('iframe')[0].style.height = Math.round((4*((document.compatMode=='CSS1Compat' && window.opera) ? (window.innerHeight) : (document.compatMode=='CSS1Compat' && !window.opera ? document.documentElement.clientHeight : document.body.clientHeight)))/1) + 'px';
if (this.textContent == undefined) { this.innerText=''; } else { this.textContent=''; }
this.value = 'Скрыть';
} else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('iframe')[0].style.display = 'none';
if (this.textContent == undefined) { this.innerText=''; } else { this.textContent=''; }
this.value = 'Показать';
}
" />
</div>
<br></br>
<div class="quotecontent" width="100%">
<iframe src="{URL}" style="display: none; width:94%; height:600px; max-height:4000px; position: absolute; z-index: 999; left: 30px; margin: 0 auto; box-shadow: -35px -24px 27px rgba(50, 50, 50, 1), 35px -24px 27px rgba(50, 50, 50, 1); scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe>
</div>
</div></noindex>