Chozdzi mi o coś takiego, że kiedy kliknę w jakiś link to footer jedzie do gory i zjezdza na dol i pokazuje nawa tresc cos takiego jak na tej stronie: http://www.ep-archprojekt.pl/(tutaj takie przeladowanie jest w galeri)
Pomoze ktos?
(function(){ "use strict"; $('#galleryList a').click(function(){ var gallery = $("#gallery"), height = gallery.height(), request = null; gallery.animate({height: 0}, 800, function() { request = $.ajax({ url: "gallery/get/", type: "GET", data: {id : this.rel}, dataType: "html" }); request.done(function(result) { $("#gallery") .html(result) .animate({height: height+'px'}, 800); }); }); return false; }); }());
<?php echo' <head> <script type="text/javascript" src="js/jquery-1.6.js" ></script> </head> <script type="text/javascript"> (function(){ "use strict"; $(\'#galleryList a\').click(function(){ var gallery = $("#gallery"), height = gallery.height(), request = null; gallery.animate({height: 0}, 800, function() { request = $.ajax({ url: "gallery/get/", type: "GET", data: {id : this.rel}, dataType: "html" }); request.done(function(result) { $("#gallery") .html(result) .animate({height: height+\'px\'}, 800); }); }); return false; }); }()); </script> <nav id="galleries"> <ul> <li><a href="gallery/get/1.html">Cars</a></li> <li><a href="gallery/get/2.html">Airplanes</a></li> <li><a href="gallery/get/3.html">Ships</a></li> </ul> </nav> <div id="footer" style="background:#000000; height:300px; width:100%;"></div> '; ?>
(function () { $('#galleries a').click(function () { var gallery = $("#gallery"), height = 500; //tutaj sobie ustaw swoja wartość, wysokośc galerii w px gallery.animate({ height: 0 }, 800, function () { $.ajax({ url: this.href, type: 'GET', //lub POST lub całkiem wywal success: function (result) { $("#gallery") .html(result) .animate({ height: height + 'px' }, 800); } }); }); return false; }); }());