Peter, lots of great stuff on your site, but that particular
bit of code didn't do it. I thought it would and I played with it
quite a bit, but I couldn't get any of my changes to affect the
breadcrumb text at all - not even changing the font name made a
difference! After that, I went back to the scripts I had been
toying with and eventually found the answer. Here it is:
In whtopic.js (which you must save out separately to avoid it
being overwritten on regen), there are two functions to be edited:
AddMasterBreadcrumbs and
GetMasterBreadcrumbs. In both cases, the variable that is
modified is named
strTrail. Here is how it looks in the default state:
AddMasterBreadcrumbs
var strTrail = "<a style=\""+ styleInfo + "\"" + " href=\"" +
strHomePath + "\">" + strHome + "</a> " + separator + "
";
GetMasterBreadcrumbs
strTrail += "<a style=\""+ styleInfo + "\"" + " href=\"" +
sHrefFullPath + "\">" + name + "</a> " + separator + "
";
To modify the breadcrumb style throughout the help system,
change the HTML tag for style from <a> to <p>, and
insert the <a> tag in front of the href instead, with
>< brackets immediately preceding. Add in-line style elements
as desired between the first two quotes in the style element. This
must be identical in both functions. In the example below, I have
changed the font to 8 point and the weight to bold:
AddMasterBreadcrumbs
var strTrail = "<p style=\"font-size:8pt; font-weight:Bold;"+
styleInfo + "\"" + "><a href=\"" + strHomePath + "\">" +
strHome + "</a> " + separator + " ";
GetMasterBreadcrumbs
strTrail += "<p style=\"font-size:8pt; font-weight:Bold;"+
styleInfo + "\"" + "><a href=\"" + sHrefFullPath + "\">" +
name + "</a> " + separator + " ";
That's all there is to it! Any other in-line style
attributes, such as colors and font families, can be added in this
fashion. I hope this helps someone else!
Chris