Я создал эффект всплывающего нижнего колонтитула с помощью jquery для www.brunodejonghe.be .
Работает в FF, Safari, IE7 + и Opera. Когда я открываю нижний колонтитул в Google Chrome, под нижний колонтитул добавляется пробел.
Кто-нибудь знает, что я могу с этим поделать?
спасибо заранее!
JQuery-скрипт:
$('#contact').click(function() {
<!-- show panel -->
$("#contactpanel").slideToggle(1500);
if ($activated == 1) {
$('#contact').html("<h4>Contacteer me</h4>");
$('#contactpanel').css('height', $('#contactpanel').height() + 'px');
$activated = 0;
}
else {
$('#contact').html("<h4>Verberg</h4>");
// fluid toggle
$('#contactpanel').css('height', $('#contactpanel').height() + 'px');
// scroll to bottom page for pop up footer effect
// detect opera and fix scroll bug
if ($.browser.opera == true)
{
$('html').animate({
scrollTop: $(document).height() - $('#contactpanel').height() + 'px'
}, 1500);
$activated = 1;
}
else {
$('html, body').animate({
scrollTop: $(document).height() - $('#contactpanel').height() + 'px'
}, 1500);
$activated = 1;
}
}
});