Oh, sorry
ja, stimmt, ich bräuchte hier hilfe.
Ich hab auch schon bei ELSE ein IF eingebaut, hat aber auch nicht funktioniert.
Code:
<script>
$(function(){
$('#header').data('size','big');
});
$(window).scroll(function(){
if($(document).scrollTop() > 0)
{
if($('#header').data('size') == 'big')
{
$('#header').data('size','small');
$('#header').stop().animate({
height:'110px'
},600);
$('.mod_onepage_navigation a, .navbar a').animate({paddingTop: '80px'},600);
$('.logo').animate({height: '60px', width: '236px', top: '20px'},600);
}
}
else
{
if($('#header').data('size') == 'small')
{
$('#header').data('size','big');
$('#header').stop().animate({
height:'250px'
},600);
$('.mod_onepage_navigation a, .navbar a').animate({paddingTop: '220px'},600);
$('.logo').animate({height: '140px', width: '551px', top: '50px'},600);
}
}
});
</script>
Lesezeichen