quietly
01-31-2008, 01:35 PM
I just started playing with JavaScript a few days ago, so pardon the simplicity of this...
While helping a friend of mine fix up a HUGE page filled with almost six years of correspondence between him and his wife, I've been doing as much as I can to make the whole mess navigable.
Seeing as separating the content would completely ruin the continuity, I decided to attempt coding a script that would rely on a fixed position side navigation panel that contains, among other things, "next" and "Previous" links that would cycle through sequentially numbered in-page anchors...
I haven't the slightest idea where to begin. I think by simply concatenating an anchor of "#0" to the end of the current URL on pageload, i could then take the current hash value and subtract or add to it by 1. Once I've finished adding anchors to each page entry, I'm pretty sure that would have the desired effect, but I still haven't the slightest clue as to how that would be implemented. The syntax JavaScript uses still confuses the hell out of me...
In any case, any pointers or good beginner tutorials would be greatly appreciated.
-Hobbes
While helping a friend of mine fix up a HUGE page filled with almost six years of correspondence between him and his wife, I've been doing as much as I can to make the whole mess navigable.
Seeing as separating the content would completely ruin the continuity, I decided to attempt coding a script that would rely on a fixed position side navigation panel that contains, among other things, "next" and "Previous" links that would cycle through sequentially numbered in-page anchors...
I haven't the slightest idea where to begin. I think by simply concatenating an anchor of "#0" to the end of the current URL on pageload, i could then take the current hash value and subtract or add to it by 1. Once I've finished adding anchors to each page entry, I'm pretty sure that would have the desired effect, but I still haven't the slightest clue as to how that would be implemented. The syntax JavaScript uses still confuses the hell out of me...
In any case, any pointers or good beginner tutorials would be greatly appreciated.
-Hobbes