Скачать архив js.zip.
Скопировать файлы jquery-1.3.2.js и jquery.timers.js в: /styles/subsilver2/template/
Открыть: styles/subsilver2/template/overall_header.html
Найти:
Код: Выделить всё
</head>
Код: Выделить всё
<script type="text/javascript" src="{T_TEMPLATE_PATH}/jquery-1.3.2.js"></script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/jquery.timers.js"></script>
Найти:
Код: Выделить всё
<form id="postform" method="post" action="{U_QR_ACTION}">
Код: Выделить всё
<script type="text/javascript">
// <![CDATA[
$(document).ready(function(){
$("div.postbody").mouseup(function(e){
pt = $(this).parents("table.tablebg");
if (window.getSelection)
{
theSelection = window.getSelection().toString();
}
else if (document.getSelection)
{
theSelection = document.getSelection();
}
else if (document.selection)
{
theSelection = document.selection.createRange().text;
}
if (theSelection)
{
$("#addQuote").remove();
$("body").append('<div id="addQuote" style="left: '+(e.pageX+15)+'px; top: '+(e.pageY+15)+'px;">{L_REQUETE}</div>');
$("#addQuote").click(function () {
$(this).hide();
username = pt.find("b[class='postauthor']:first").text();
insert_text('[quote="' + username + '"]' + theSelection + '[/quote]');
});
$("#addQuote").oneTime(3000, function() {
if ($(this).is(':visible')) {$(this).animate({height:0 , opacity:0}, 150)};
});
}
});
});
// ]]>
</script>
Найти:
Код: Выделить всё
.postbody {
font-size: 1.3em;
line-height: 1.4em;
font-family: "Lucida Grande", "Trebuchet MS", Helvetica, Arial, sans-serif;
}
Код: Выделить всё
#addQuote {
position: absolute;
z-index:100;
border: 1px solid #8FBC8F;
padding: 3px;
background: #E0FFE0;
color: #008000;
cursor: pointer;
font-size: 11px;
}
Найти:
Код: Выделить всё
'REPLY_WITH_QUOTE' => 'Ответить с цитатой',
Код: Выделить всё
'REQUETE' => 'Цитировать выделенное',
Автор "пожелал остаться неизвестным(".