Hi there, I’m looking for some help with JavaScript (I don’t have PHP installed on my server so it needs to be a JavaScript solution).
I’m creating an Intranet for a company with offices in multiple countries using a portal building tool that takes several source files to create a single web page (kind of like frames but without using frames). So I have a header.html and navbar.html which appear on every page for a country and the various files that contain the main page content. Each of the files that comprise the main page content have a set of breadcrumbs on them to allow the user to understand how they got to where they are in the site and link to previous pages.
I would like to have some of the code in the breadcrumbs that is repeated on every page be defined in a separate file so I can make it reusable across different countries and the file location reference easily changeable (I’ll be moving it from a test environment to a production environment so it would be great to only have to change this information once). The breadcrumbs look like this to the user:
You are here: [U]Home[U]Asia[U]Australia[U]Human Resources[B]Benefits
The HTML code behind it looks like this (I’ve made the pieces of HTML or text I want to be dynamic in different colors:
<!——————start breadcrumbs———>
You are here: <a href=”[COLOR=Red][COLOR=Red][COLOR=Red][COLOR=RoyalBlue]au[COLOR=Green]Australia[COLOR=Red][COLOR=RoyalBlue]au
<!——————end breadcrumbs———>
I’d like to define the inserted text in a couple different places:
1) I’d like to define the [COLOR=Green]country name[COLOR=RoyalBlue]country prefix
2) I’d like to define the [COLOR=Red]http location
I have tried a few different things but realized I’m over my head on this one. Can anyone help?? Thanks! Sara