- Code:
<div id="nisuk"></div>
<script type="text/javascript">
$(document).ready(function(fdf_EN) {
var numb_limit = 5;
var globalTopic = 'Общее объявление';
var colorGlobalTopic = '#b1b7a3';
var fixTopic = 'Важно!';
var colorfixTopic = '#afafaf';
var announcementTopics = 'Объявление';
var colorannouncementTopics = '#649958';
$.ajax({
type: "GET",
url: $('ul#navstrip li:last-child a[href*="f"]').attr('href'),
dataType: "html",
success: function(crowleys) {
$("#nisuk").before('<div id="shekTraff" class="row1"><div class="clearfix"><div align="center" class="maintitle floated"><font size="6">темы из раздела</font><img src="https://i.servimg.com/u/f10/20/33/56/10/aaaa11.gif"></div></div><div id="topiclist" align="center"></div></div>');
$(crowleys).find('table.ipbtable:not(:last-child) tbody tr td.row1:nth-child(3)').each(function(fdf,shek) {
$('#topiclist').append('? <a id="'+ fdf +'" href="' + $(this).find('a.topictitle').attr('href') + '" title="'+ $(this).text() +'">'+ $(this).text() +'</a><br><br>');
$('#topiclist a:contains("'+ globalTopic +'")').css('color',colorGlobalTopic);
$('#topiclist a:contains("'+ fixTopic +'")').css('color',colorfixTopic);
$('#topiclist a:contains("'+ announcementTopics +'")').css('color',colorannouncementTopics);
if(fdf == numb_limit) {return false;}
});
}
});
});
</script>
- Code:
<div class="next-prev">
« <a href="#shekTraff">Посмотреть темы раздела</a> · <a href="{U_VIEW_NEWER_TOPIC}">Тема ниже</a> »
</div>
Hello. I want this script not to immediately move to the list of topics, but to scroll smoothly. When you click on this link at the bottom of the topic, it moves under the quick reply form where the topics are from this forum. threads from this forum are shown by this script. you need to move slowly like "down or up" like a page. and it’s not clear where I ended up
Last edited by poesia-verses on September 29th 2024, 5:02 am; edited 1 time in total