Ich habe mal das hier gefunden:
Ist es mit diesem möglich und habe ich das "hornav" und "user-top" richtig reingeschrieben?<Script Language=\"JavaScript\">
$(document).ready(function(){
$(window).scroll(function(){
if ($(window).scrollTop() > $("#user-top").offset({ scroll: false }).top){
$("#hornav").css("position", "fixed");
$("#hornav").css("top", "0");
}
if ($(window).scrollTop() <= $("#user-top").offset({ scroll: false }).top){
$("#hornav").css("position", "relative");
$("#hornav").css("top", $("#user-top").offset);
}
});
});
</Script>


LinkBack URL
About LinkBacks
Zitieren
Lesezeichen