Hi Roger and Rick,
Thank you for your help.
Well I followed the above, but still I was not able to make
the breadcrumbs appear. Some mistake I am doing I guess.
What I've done.
1. Added the file UserGuideBreadCrumb.js to baggage file
folder of the project
2. <SCRIPT src="UserGuideBreadCrumb.js"
type="text/javascript" language="JavaScript"></script>
--> Adding this line in the body of the topic showed a RED box,
so I guess that was an error so I pasted the code into the
<head> section of the topic.
3. The below is the script in the userguidebreadcrumb.js
//* Build breadcrumb path on page for navigation
//* Copyright 2004, Copperfield Publishing;
http://www.copperfieldpub.com
function Crumb(Path, Name, Url) {
this.Path = Path;
this.Name = Name;
this.Url = Url;
}
BagOCrumbs = new Array();
// add new directories here. the format:
Path: How to use Help
Name: User Guide
Url: \\xxx\xxx\xxx\xxx\xxx\Index.htm
Path: Login as a User
Name: Logging On
Url: \\xxx\xxx\xxx\xxx\xxx\Logging_On.htm
BagOCrumbs[0] = new Crumb("Home", "Welcome", "How to Use
Help/Welcome.htm");
BagOCrumbs[1] = new Crumb("Logging On", "Logging On", "/Login
as a User/Logging_On.htm");
// ... we build the path and display it
var i, x;
strConcat = ">>";
strUrl = document.location.href;
strList = "<a href='/'>Home</a>";
strDebug = "";
aryDirs = strUrl.split("/");
for (x=0; x < aryDirs.length; x++) {
for(i = 0; i < BagOCrumbs.length; i++) {
if (BagOCrumbs
.Path.toLowerCase() == aryDirs.toLowerCase()) {
strList += strConcat + "<a href='" + BagOCrumbs.Url +
"'>" + BagOCrumbs
.Name + "</a>";
i = BagOCrumbs.length;
}
}
}
strList += ">>" + document.title;
document.write(strList);
At the moment I am generating the webhelp on a sharepoint,
and later there will be a link on web app to access the help.
Thank you
Kewal
Have a great Monday 😉