div > .delete { color: #CCCCCC; cursor: pointer; display: block; float: right; font: 14px Verdana; height: 6px; margin: -3px 5px; text-decoration: none; visibility: hidden; } div > .delete span { color: #AAAAAA; font: bold 14px "Arial Black"; } div > .delete:hover { color: #666666; font: 14px Verdana; text-decoration: none; } div > .delete:hover span { color: #666666; font: bold 14px "Arial Black"; text-decoration: none; } div:hover > .delete { display: block; visibility: visible; }
/* Кнопка удаления сообщения */ var closebut = '<a href="#" title="Удалить это сообщение" onMouseOver="this.parentNode.style.backgroundColor = '#cecece'" onMouseOut="this.parentNode.style.backgroundColor=null" onclick="parent.hidden.location.href = \'index.php?inc=write&\'+ parent.yourkey+\'&text=/remove \'+ this.parentNode.getElementsByTagName(\'font\')[0].innerHTML; return false" class="delete"><span>×</span></a>'; /* Ники удаляющих строки лога (/remove): remover['nick']=1; */ var remover = new Array(); remover['Alex']=1; var cb = ''; if (remover[mynick]) cb = closebut; /* Ники невидимок, пример: invisible['nick']=1; */ var invisible = new Array(); invisible['adm']=1; ....