skimo: Problem gelöst

Beitrag lesen

Vielen Dank,

vielen Dank für Eure Hilfe, das Problem ist nun gelöst.
 Offenbar war es vor allem ein Problem der Reihenfolge im Head. Ist allerdings merkwürdig, das hatte ich schon ales durch.

so sieht der Head jetzt aus:

<script src="js/jquery.min.js" type="text/javascript"></script>  
<script src="js/smooth-scroll.js" type="text/javascript"></script>  
<script src="js/jquery-scrolltofixed.js" type="text/javascript"></script>  
<script src="js/scrolltofixed.js" type="text/javascript"></script>

und so die Skripte:

smooth-scroll.js:

$(function() {  
	  $('a[href*=#]:not([href=#])').click(function() {  
	    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {  
  
	      var target = $(this.hash);  
	      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');  
	      if (target.length) {  
	        $('html,body').animate({  
	          scrollTop: target.offset().top  
	        }, 1000);  
	        return false;  
	      }  
	    }  
	  });  
	});

scrolltofixed.js:

$(document).ready(function() {  
  
        // Dock the header to the top of the window when scrolled past the banner.  
        // This is the default behavior.  
  
        $('#zwei').scrollToFixed();  
  
  
        // Dock the footer to the bottom of the page, but scroll up to reveal more  
        // content if the page is scrolled far enough.  
  
        $('.footer').scrollToFixed( {  
            bottom: 0,  
            limit: $('.footer').offset().top  
        });  
  
  
        // Dock each summary as it arrives just below the docked header, pushing the  
        // previous summary up the page.  
  
        var summaries = $('.summary');  
        summaries.each(function(i) {  
            var summary = $(summaries[i]);  
            var next = summaries[i + 1];  
  
            summary.scrollToFixed({  
                marginTop: $('#zwei').outerHeight(true) + 10,  
                limit: function() {  
                    var limit = 0;  
                    if (next) {  
                        limit = $(next).offset().top - $(this).outerHeight(true) - 10;  
                    } else {  
                        limit = $('.footer').offset().top - $(this).outerHeight(true) - 10;  
                    }  
                    return limit;  
                },  
                zIndex: 999  
            });  
        });  
    });

Der Header bleibt nun stehen am oberen Bildschirmrand und auf Knopfdruck wandert die Seite zum nächsten Kapitel.
Ganz besonderen Dank an alle, die mein Anliegen Ernst genommen haben und lösungsorientierte Vorschäge beisteuern konnten.

Viele Grüße
skimo