$(function () { $('a[href^=#]').stop(true).click(function () { var speed = 1000; var href = $(this).attr("href"); var target = $(href == "#" || href == "" ? 'html' : href); var position = target.offset().top; $($.browser.safari ? 'body' : 'html').animate({ scrollTop: position }, speed, 'swing'); return false }) }); ez-HTML jQueryでスムーススクロール [Cool Web Window] #mainIndex #frame #subFrame #overHeader
![『スムーススクロール』](https://cdn-ak-scissors.b.st-hatena.com/image/square/d519f73d467855e461c038cf0f63afd692206fb8/height=288;version=1;width=512/https%3A%2F%2Fstat.profile.ameba.jp%2Fprofile_images%2F20110620%2F19%2Ff5%2F65%2Fj%2Fo020002001308565289873.jpg)