Dear Mailing List,
I have the problem to translate a short script from jquery to
mootools. Can somebody please help and give me a hint? Thank you.
That's the script:
$(document).ready( function() {
startnavigation();
});
function startnavigation()
{
$(window).scroll(function(){
scrolltop = $(window).scrollTop();
if(scrolltop>= 320)
{
if(!ie6)
{
$('#navigation').css('position','fixed');
$('#navigation').css('top','-60px');
}else{
$('#navigation').css('top',(scrolltop-330) +
'px');
}
}else{
if(!ie6)
{
$('#navigation').css('position','relative');
}else{
$
('#navigation').css('position','absolute');
}
$('#navigation').css('top','0px');
}
});
}
Thanx in advance, manuel