On Tue, 30 Aug 2005 21:48:00 +0100, Mike Barnard
<m.****************@thunderin.co.uk> wrote or quoted :
Can I do the same with HTML? I'd like to be able to have a seperate
file, say 'navigation.htm' which gets called into the main page when
needed.
there are at least three ways to get that effect:
1. SSI server side includes. See
http://mindprod.com/jgloss/ssi.html
2. JSP or other servlet womb where you dynamically generate the web
pages.
3. static macros. This is how I do my own website. Just before I
upload to the website I have a program run through looking for macros
embedded in the html, e.g. <!-- macro Foot --> or <!-- macro Include
E:\mindprod\bushmenu.html -->. It expands these.
If you look for example at
http://mindprod.com/jgloss/colours.html
you will see menu of possible colour palettes. It is similar on every
page it is used, but not quite. The macro highlights the option you
are currently using. The macros can be intelligent, gathering images,
figuring out image sizes, The price list page at
http://mindprod.com/products.html generates different HTML depending
on which bit are actually available. Prices are displayed by a an
applet that displays in the user's home currency.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.