froggy
May 30th, 2007, 15:30
At the suggestion of several people, I went ahead and used Sothink's Treemenu to put a navigation menu on the side of my page.
Overall, I was pretty happy with the menu except that it couldn't track the active page. Well, Sothink's latest update fixed that problem and the treemenu now tracks the active page and modifies the menu accordingly. As near as I can tell it does its tracking by reading the url in the address bar and verifying that address against all of the URLs in its menu. Then it highlights the menu accordingly.
The problem comes in with default pages. For example, if the menu has a "Home" link at "www.webpage.com/index.html" it won't highlight the menu item if the url in the address bar reads "www.webpage.com".
I'm trying to work out a way to make the default page reload itself once to show the full url.
I tried tucking this in at the top of the page:
<meta http-equiv="refresh" content="5; url=index.php?home">
but it just kept refreshing the page every five seconds. It did put the full url into the address bar after the first time, but it became too memory intensive and annoying to read.
How would I do the something similar, but only once?
Overall, I was pretty happy with the menu except that it couldn't track the active page. Well, Sothink's latest update fixed that problem and the treemenu now tracks the active page and modifies the menu accordingly. As near as I can tell it does its tracking by reading the url in the address bar and verifying that address against all of the URLs in its menu. Then it highlights the menu accordingly.
The problem comes in with default pages. For example, if the menu has a "Home" link at "www.webpage.com/index.html" it won't highlight the menu item if the url in the address bar reads "www.webpage.com".
I'm trying to work out a way to make the default page reload itself once to show the full url.
I tried tucking this in at the top of the page:
<meta http-equiv="refresh" content="5; url=index.php?home">
but it just kept refreshing the page every five seconds. It did put the full url into the address bar after the first time, but it became too memory intensive and annoying to read.
How would I do the something similar, but only once?