Ciao Andrea,
grazie per la risposta al volo. Ho risolto e posto per chi ne avesse bisogno.
Nello script che ho trovato (e che ho inserito direttamente nella pagina) non era stato inserito la riga "Document ready". Quindi il codice javascript incluso in HTML è il seguente:
Ciao!codice:<script type="text/javascript"> $(document).ready(function(){ $('a[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) { var targetOffset = $target.offset().top; $('html,body').animate({scrollTop: targetOffset}, 1000); return false;} } }) }); </script>

Rispondi quotando