Code
<br><div id="showurls" style="display: none;"><table border="0" cellpadding="4" cellspacing="0" width="100%" style="border:0px"><tr><td style="background:#000;"><center>BBCode: <input id="newslinkbbcode" readonly="readonly" class="newslink" onclick="this.select()" value=""></center><center>HTML: <input id="newslink" readonly="readonly" class="newslink" onclick="this.select()" value=""> </center></td></tr></table></div><center id="showurl">[ <a href="#" onclick="return false;">Получить прямую ссылку на файл</a> ]</center><center id="hidenax" style="display: none;">[ <a href="#" onclick="return false;">Скрыть ссылки</a> ]</center><script type="text/javascript">$(document).ready(function() {$('#showurl').click(function(){$('#showurls').show('slow'); $('#showurl').hide('fast'); $('#hidenax').show('fast');}); $('#hidenax').click(function(){$('#showurls').hide('slow'); $('#hidenax').hide('fast'); $('#showurl').show('fast');});}); document.getElementById('newslink').value='<a href="'+location.href+'" title="$ENTRY_TITLE$">$ENTRY_TITLE$</a>'; document.getElementById('newslinkbbcode').value='[url='+location.href+']$ENTRY_TITLE$[/url]'</script>