19 августа 2014
Нет комментариев
SELECT COUNT(*) FROM ( (SELECT DISTINCT `id` FROM `tbl_1` WHERE 1) UNION ALL (SELECT DISTINCT `id` FROM `tbl_2` WHERE 1) UNION ALL (SELECT DISTINCT `id` FROM `tbl_3` WHERE 1) ) AS t1;
SELECT COUNT(*) FROM ( (SELECT DISTINCT `id` FROM `tbl_1` WHERE 1) UNION ALL (SELECT DISTINCT `id` FROM `tbl_2` WHERE 1) UNION ALL (SELECT DISTINCT `id` FROM `tbl_3` WHERE 1) ) AS t1;
document.onmousewheel=document.onwheel=function(){ return false; }; document.addEventListener("MozMousePixelScroll",function(){return false},false); document.onkeydown=function(e) { if (e.keyCode>=33&&e.keyCode<=40) return false; }
разрешить прокрутку страницы (обратное действие):
document.onmousewheel=document.onwheel=function(){ return true; }; document.addEventListener("MozMousePixelScroll",function(){return true},true); document.onkeydown=function(e) { if (e.keyCode>=33&&e.keyCode<=40) return true; }
var scrollTop=window.pageYOffset||document.documentElement.scrollTop;
.classname { border:2px solid #000000; box-sizing:border-box; }