简体   繁体   中英

Jquery smooth scroll external anchor link

okay can you please help me with a peice of jquery code. Here is what i want to happen. My website is cyberfanatic.com right so. So for example lets just use the footer for now. i have aa tag with the id of footer right. so say if someone visits cyberfanatic.com/#footer right now the page will load and the then jump directly to the bottom of the page to where the anchor link with footer is. How can i get it so that when the page cyberfanatic.com#footer loads that the page loads and the smooth scrolls to the anchor with the id of footer. Please help me out.

使用scrollTo() 插件函数

$.scrollTo("#footerid");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM