Am deep in the process of redesigning the Bank's Web site, and am 
wondering how best to do the following:

On each page of the site will be a fairly lengthy text-based navigation 
column running down the left.  It will be exactly the same on each page, 
*except* that I want to highlight the currently-selected page/section -- 
probably by the usual convention of removing the href tag from it so it's 
not a link:

__Publications__
        __Working Papers__
        __Backgrounders__
           Speeches  << not a link
        __Journal Articles__

...and so on.

OK.  So I want to use SSI to plug in the HTML for the navigation column 
when a page is loaded, rather than embed the HTML in every single page; 
however, this will not allow me to highlight the appropriate entry for the 
various pages, without a script of some sort that will alter the HTML on 
the fly.

So what do people think is the best route to go here?  Basically, I want 
the SSI to execute conditionally: "check the URL of the page that is being 
loaded; examine the include file that renders the navigation column; when 
a URL in the include file matches the URL that is being loaded, strip out 
the <a href> tag from that text."

I guess this could be done in Perl easily enough, though I'm also wondering 
about Javascript too.  Suggestions/opinions?




-----------
Brent Eades, Almonte, Ontario
   E-mail: [EMAIL PROTECTED]
           [EMAIL PROTECTED]
   Web:    http://www.almonte.com/


____________________________________________________________________
--------------------------------------------------------------------
 Join The NEW Web Consultants Association FORUMS and CHAT:
   Register Today at: http://just4u.com/forums/
Web Consultants Web Site : http://just4u.com/webconsultants
   Give the Gift of Life This Year...
     Just4U Stop Smoking Support forum - helping smokers for
      over three years-tell a friend: http://just4u.com/forums/
          To get 500 Banner Ads for FREE
    go to http://www.linkbuddies.com/start.go?id=111261
---------------------------------------------------------------------

Reply via email to