Если кнопку в форме делать блоком или линком, то по нажатию кнопки "enter" ничего не происходит, обидно...
Вот так можно исправить:
$("body, form, input, textarea").keypress(function(e){
if(e.which == 13){
$("form").submit();
}
});
Прижать Footer 2
Как вариант:
html {height: 100%;}
body {
height: auto !important;
height: 100%;
min-height: 100%;
position: relative;
}
.content {
padding-bottom: 80px;
}
.footer {
position: absolute;
bottom: 0;
height: 80px;
}
html {height: 100%;}
body {
height: auto !important;
height: 100%;
min-height: 100%;
position: relative;
}
.content {
padding-bottom: 80px;
}
.footer {
position: absolute;
bottom: 0;
height: 80px;
}
выпадающее меню
вот как-то так:
$(document).ready(function(){
$('li.menu').hover(
function() { $('ul', this).css('display', 'block'); },
function() { $('ul', this).css('display', 'none'); });
});
при наведении мыши на элемент, список появляется, а при забирании мыши срабатывает вторая функция и список исчезает
$(document).ready(function(){
$('li.menu').hover(
function() { $('ul', this).css('display', 'block'); },
function() { $('ul', this).css('display', 'none'); });
});
при наведении мыши на элемент, список появляется, а при забирании мыши срабатывает вторая функция и список исчезает
Підписатися на:
Дописи (Atom)