я добавлял просто скрипт в конец файла
<script>
var block = document.getElementById("chat");
block.scrollTop = block.scrollHeight;
</script>
function getSubscribePost($id) {
global $db;
$user_x=$db->fetchAssocList("
SELECT *
FROM `class_posts`
LEFT JOIN `class_users` ON class_posts.id = class_users.id
WHERE class_posts.id = 'id пользователя'");
return $user_x;
}
select * from `posts` order by `created_at` desc limit 0, 24mysqli_result Object ( [current_field] => 0 [field_count] => 40 [lengths] => [num_rows] => 24 [type] => 0 )
'summary' => cleanStr($row['summary'])
))
}
<div id="viewportssss"></div>
https://site.ru/details.php?jdjdsejhd__sw
for (var i = 0; i < Sa.length; i++) {
if (Sa[i].indexOf('width') === 0) {
s += Sa[i] + ': ' +Sa.getPropertyValue(Sa[i]) + '; ';
}
.topmenu_dsjOoJDd ul {display: none;
visibility: hidden;
position: absolute;
top: 40px;
}
.topmenu_dsjOoJDd li:hover>ul {display: block;
visibility: visible;}