Preserved Topic: HTML Navi with --include-- Help! (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: 290 km/h, fast lane, Autobahn, Germany |
posted 03-18-2002 14:24
I am working on a non-frames HTML page and i am trying to include the navigation part of it in a separate file and then to put that into the main page via an include SSI. This is all for ease of changing/adding the main menu. Now my question is: How can I define an "active" state for a menu button when the page is (re)loaded on a click? Mouseover and out are fine but i do want the active button to stand out somewhat... |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 03-18-2002 17:11
The first thing that comes to mind is the GurusNetwork navigation. That was done by Doc, and is included by SSI. It determines the directory that you're in, and then presents the correct image. I've been hoping Doc would give us a tutorial on that version (Javascript), and that maybe someone would come up with a PHP version as well.. |
Maniac (V) Inmate From: soon to be "the land down under" |
posted 03-18-2002 22:41
Okay, you can get the document name from an include and use that with JS to determine the active state or not. code: <script language="javascript">
|