Hello,

[Although the following inolves HTML code, it seems like more of a general question, so I sent it to this list.]

I have a block of navigation code in a large bunch of HTML pages that needs to be edited occasionally. It's easy to put in a placeholder on the pages and Update, but of course there's a catch. I want the page being updated to not have a link, while the same line in all other pages has the link code. Like so...

An example code block in full:
<p class="navbarmain">
<a href="../prefatory.html">Prefatory</a> /
<a href="../Then/then.html">Then</a> /
<a href="../Others/others.html">Others</a> /
</p>

...would become, only on the Prefatory page:
<p class="navbarmain">
<span class="here">Prefatory</span> /
<a href="../Then/then.html">Then</a> /
<a href="../Others/others.html">Others</a> /
</p>

I then use the CSS class "here" to style the current page name to stand out within the line of navigation links on the rendered page.

While it's easy to insert the whole code block on all pages, I can't quite see how to automagically turn the current page's link into the span. It's kind of the opposite of using the #FILE# placeholder. I suspect I need a bit of script to do this, and since it's a common enough task, I was hoping someone had already worked it out and would be willing to share.

I'm on digest, so perhaps you could CC me any replies to speed up my learning.

TIA

Rob

"Sometimes I wonder whether the world is being run by smart people who are putting us on or by imbeciles who really mean it." -- Mark Twain

--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to