jwk811 Posted December 11, 2006 Share Posted December 11, 2006 when someone clicks a link i want it to go to another page and scroll down to a specific paragraph, how can i do this? Quote Link to comment https://forums.phpfreaks.com/topic/30177-go-to-paragraph/ Share on other sites More sharing options...
AndyB Posted December 11, 2006 Share Posted December 11, 2006 scroll down - not really. Jump down, yes. html named anchors - http://www.w3schools.com/html/html_links.asp Quote Link to comment https://forums.phpfreaks.com/topic/30177-go-to-paragraph/#findComment-138741 Share on other sites More sharing options...
john010117 Posted December 13, 2006 Share Posted December 13, 2006 Just put this code in front of a paragraph:[code]<A name="NAME"></A>[/code]And to link to that, just put this:[code]<A href="pagename.html#NAME[/code] Quote Link to comment https://forums.phpfreaks.com/topic/30177-go-to-paragraph/#findComment-140012 Share on other sites More sharing options...
DeathStar Posted January 2, 2007 Share Posted January 2, 2007 or <a href="thepage.html#top>Top</a> Quote Link to comment https://forums.phpfreaks.com/topic/30177-go-to-paragraph/#findComment-151590 Share on other sites More sharing options...
chronister Posted January 3, 2007 Share Posted January 3, 2007 Javascript would need to be used to make it scroll smoothly. I once found a script that would do just that. Cannot remember where I found it, but a search in google should get you pointed in the right direction.This would be used in combination with the anchor tag mentioned above. Quote Link to comment https://forums.phpfreaks.com/topic/30177-go-to-paragraph/#findComment-152055 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.