В примере устанавливаем для всех элементов с class catalog_item высоту самого высокого.
function setEqualHeight(columns){
var tallestcolumn=0;
columns.each(
function(){
currentHeight=$(this).height();
if(currentHeight>tallestcolumn) {
tallestcolumn=currentHeight;
}
}
);
columns.height(tallestcolumn);
}
$(window).load(function() {
setEqualHeight($(".catalog_item"));
});
Читать далее…
Для удаления всех скриптов из текста:
preg_replace('#<script(.*?)>(.*?)</script>#is','',$text);
Аналог header(‘Location: ‘.$arResult[‘ITEMS’][0][‘DETAIL_PAGE_URL’])
localredirect($arResult['ITEMS'][0]['DETAIL_PAGE_URL'],false,"301 Moved permanently");
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;
}