...

View Full Version : something like html anchors



veryval82
06-29-2009, 05:43 AM
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.
So each page would have the same links that would either correspond to an image src or keyword that is found on that same page. Can anyone help :confused: ? I figured javascript would be the way to go.

Thanks :o

Old Pedant
06-29-2009, 07:45 AM
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).



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum