| re: SSI nav bar but page name cell a different colour?
Lois:
: > Recently I created a site with a nav bar in table format across
: > the top of the page
Yep:
: I don't think that you need a table here, it merely adds more code
: while a DIV filled with A elements and a bit of CSS would do an
: excellent job :-)
Yeah, I know. It took a couple of years for me to be comfortable with HTML
and to be able to do tables fairly fast. When I finally got to that point, I
started reading that using tables for layout was passe, and that CSS was the
latest thing. Such is life in the tech world. I don't have time to learn a
lot of new things now, so I'm trying to get by with what I do know, with the
plan to redo things later if I learn better ways of doing things.
: > If you were on "Other" page, for example, the background colour of the
: > "Other" cell was a different shade from the others. I created this by
: > altering the code on each page.
:
: > Now I'd like to have this different colour for the page name cell at
another
: > site using SSI for the nav bar.
:
: > even more fun, some of the page names are entry points to another
section of
: > the site. If I can make "Other" a different colour, for example, I'd
also
: > like to make pages in the "Other" folder have this same feature so that
: > readers know that they're in the "Other" section of the site.
:
: A simple technique to achieve both goals would be to grab the
: querystring and parse it; you can easily retrieve the folder part (the
: section) to make the desired changes in your page, and the file name
: part to update the corresponding menu item.
<useful script snipped>
: The function here just creates a specific scope, so that you can
: safely put the js code in a js include, for instance in your SSI -
: just update the id of the menu container, and maybe the extensions and
: additional querystrings in the regexp.
Thanks! After I posted my post, I came across another way to get the cells
the way you did them w/o using a table, but your way uses less coding.
However, a pop-up window isn't what I had in mind. I wouldn't want to use
one just to tell people what page they're on. Is there a way to make the
cell (or whatever it is) with the page name a different colour when it's the
name of the current page and the nav bar is an SSI file? Maybe there isn't,
but I thought I'd ask.
I appreciate your help.
Thanks again,
Lois |