[spoiler="Скрин"][/spoiler]
[TableYellow]Установка: [/TableYellow]
[Table] ПУ-управление дизайном (шаблоны)-каталог файлов-страница материала и комментариев к нему. Ищем там тег (условный оператор комментариев) [/Table]
[Table] $COM_IS_ACTIVE$ [/Table]
[Table] Вот перед ним ставим скрипт: [/Table]
Code
<link type="text/css" rel="StyleSheet" href="http://webo4ka.ru/Ucoz3/ccilki_na_mater/css.css" />
<script type="text/javascript" src="http://webo4ka.ru/Ucoz3/ccilki_na_mater/js.js"></script>
<table align="center" border="0" cellpadding="1" cellspacing="1" width="100%">
<tbody><tr>
<th scope="row" align="left" valign="middle" width="31%"><fieldset><legend>Ссылка</legend>
<div id="source">$HOME_PAGE_LINK$$ENTRY_URL$</div>
</fieldset></th>
<td width="69%"><a href="javascript://" id="copyButton" class="button"><img src="http://webo4ka.ru/Ucoz3/ccilki_na_mater/copy.png" border="0" alt="Копировать в буфер обмена"></a></td>
</tr>
</tbody></table>
<table align="center" border="0" cellpadding="1" cellspacing="1" width="100%">
<tbody><tr>
<th scope="row" align="left" valign="middle" width="31%"><fieldset><legend>BB-код</legend>
<div id="sources">[url=$HOME_PAGE_LINK$$ENTRY_URL$]$ENTRY_TITLE$[/url]</div>
</fieldset>
</th>
<td width="69%"><a href="javascript://" id="copyButtons" class="button"><img src="http://webo4ka.ru/Ucoz3/ccilki_na_mater/copy.png" border="0" alt="Копировать в буфер обмена"></a></td>
</tr></tbody></table>
<table align="center" border="0" cellpadding="1" cellspacing="1" width="100%">
<tbody><tr>
<th scope="row" align="left" valign="middle" width="31%"><fieldset><legend>HTML-код</legend>
<div id="sourcess"><a href="$HOME_PAGE_LINK$$ENTRY_URL$" target="_blank">$ENTRY_TITLE$</a></div>
</fieldset></th>
<td width="69%"><a href="javascript://" id="copyButtonss" class="button"><img src="http://webo4ka.ru/Ucoz3/ccilki_na_mater/copy.png" border="0" alt="Копировать в буфер обмена"></a></td>
</tr>
</tbody></table>
<script type="text/javascript">
var clip = new ZeroClipboard.Client();
clip.setText('');
clip.addEventListener( 'complete', function(client, text) {
_uWnd.alert("Скопированно: " + text );
} );
clip.addEventListener( 'mouseDown', function(client) {
clip.setText( document.getElementById('source').innerHTML );
} );
clip.glue('copyButton');
var clips = new ZeroClipboard.Client();
clips.setText('');
clips.addEventListener( 'complete', function(client, text) {
_uWnd.alert("Скопированно: " + text );
} );
clips.addEventListener( 'mouseDown', function(client) {
clips.setText( document.getElementById('sources').innerHTML );
} );
clips.glue('copyButtons');
var clipss = new ZeroClipboard.Client();
clipss.setText('');
clipss.addEventListener( 'complete', function(client, text) {
_uWnd.alert("Скопированно: " + text );
} );
clipss.addEventListener( 'mouseDown', function(client) {
clipss.setText( document.getElementById('sourcess').innerHTML );
} );
clipss.glue('copyButtonss');
</script>