-
Use jquery + animation according to the scroll height to change the header menu background color, but encounter problems
$(window).scroll(function() {
if ($(this).scrollTop() > 0) {
$( .header-menu-layout ).css( background-color , white );
$( .header-menu-layout ).animate({
backgroundColor: white
}, 300);
}
if ($(this).scrollTop() =...
-
Use scrollTop, but the element is not available
I want to get the scrollTop value when the mouse is pressed, but when I press it, I can t find that element.
dragStartScrollPosition = self.$cont[0].scrollTop;
I think the element is not fetched, but the newly created object has been checked and the ...
-
In iOS, when you are at the bottom of the page, use scrollTop (0) to scroll to the top, and the input in the first screen will focus automatically. How to avoid this problem?
function scrollTo(dom, dis, dir = up ) {
if(dir == up ) {
var scroll = function() {
var timer = setTimeout( function() {
if(dom.scrollTop() > dis) {
dom.scrollTop(dom.scrollTop() -50);...
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b329c8-2be11.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b329c8-2be11.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?