Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: something like html anchors
06-29-2009, 04:43 AM #1
- Join Date
- Jul 2007
- Thanked 0 Times in 0 Posts
something like html anchors
Hi there -
I need to create links to sections of my page. I was wondering if there was an easier way to do this other than going through each page and creating anchors.
06-29-2009, 06:45 AM #2
There are probably a handful of ways to do this.
The obvious way is to use JS code to insert anchors at appropriate spots on the page.
Another way would be to use scrollTop to force the <body> to scroll to a certain locations.
But it's hard for me to imagine that you have several pages so similar that you can use the same links on each of the pages. And if they *are* that similar, than why not just use a smart text editor that could insert the same tags at the same places on all the pages in one go?
Anyway, maybe the biggest question is the obvious one: What will your "scroll to XYZ" links *look* like? How will you keep them visible on the page at all times (several ways to do that, but that's just another example of questions to be answered).