Code
<script language=JavaScript>
function tagcode(tag)
{
doInsert("[" + tag + "]", "[/" + tag + "]")
}
function doInsert(ibTag, ibClsTag)
{
var obj_ta = document.post.Post;
var sel = document.selection;
var rng = sel.createRange();
rng.colapse;
if((sel.type == "Text" || sel.type == "None") && rng != null)
{
if(ibClsTag != "" && rng.text.length > 0)
ibTag += rng.text + ibClsTag;
}
}
</script>
Code
<div style="display:none">
<input name="hide" type="button" onmouseover="document.addform.helpbox.value='Выделение Скрытого текста'" onclick="tagcode('hide');" class="codeButtons" value="hide" />
</div>
<script>
e=document.getElementsByTagName("TD");
for(k=15; k<e.length;k++) {
if(e[k].className=='posttdMessage') {
s=e[k].innerHTML;
s=s.replace('
','<br><table cellpadding="1" width="100%" class="menu1"><tr><td align="center" vAlign="center"><b>текст скрыт для просмотра. необходимо зарегистрироваться</b>%IF($USER_LOGGED_IN$)%%ELSE%. %ENDIF%</td></tr><tr><td align="center" class="menu1" vAlign="center" style="display:%IF($USER_LOGGED_IN$)%block%ELSE%none%ENDIF%"><p> '); s=s.replace('
','</p></td></tr></table><br>');
e[k].innerHTML=s;
} }
</script>
<script>
Nn=21;
elem=document.all.hide;
obj=document.addform.i.parentNode;
obj.insertBefore(elem, obj.childNodes[Nn]);
var newText = document.createTextNode(unescape('%A0'));
obj.insertBefore(newText, obj.childNodes[Nn]);
</script>
u menya eto rabotaet na forume no mne nujno na glavnoy skrivat ssilki chto vnyom ispravit nado?
P.S. sprashivayu tut potomuchto aragorn uehal na kanikuli.... a sama ya nemagu ispravit...