FordCorsair
03-07-2013, 09:41 AM
I've spent several hours (over days) trying to find a solution to this probably very simple piece of code.
I want to display a version number in at least two places on all the pages of the site running to about 20 so far... Currently using Notepad++ 'find and replace' to change this version number but have on occasion missed a page or two.
The site sits on a business Intranet and also is likely to be distributed on disk for standalone/local LANs, so no access to server side stuff technology that I know of. Below is an sample layout of what I mean. The version number may even crop up in the content text when being referred to.
4971
I have tried all sorts of code abominations cut and pasted from the web, this one below being one I tried from scratch to no avail:
In my HTML <head>
<script type="text/javascript" src="version.js"></script>
Content of the referenced .js file
var myText = "1.7.0";
within my <body> where I want the version number to appear
<script type="text/javascript">document.write(myText);</script>
I had a go, got completely lost in all this, I really hope some one can help.
with anticipated thanks,
Dom
I want to display a version number in at least two places on all the pages of the site running to about 20 so far... Currently using Notepad++ 'find and replace' to change this version number but have on occasion missed a page or two.
The site sits on a business Intranet and also is likely to be distributed on disk for standalone/local LANs, so no access to server side stuff technology that I know of. Below is an sample layout of what I mean. The version number may even crop up in the content text when being referred to.
4971
I have tried all sorts of code abominations cut and pasted from the web, this one below being one I tried from scratch to no avail:
In my HTML <head>
<script type="text/javascript" src="version.js"></script>
Content of the referenced .js file
var myText = "1.7.0";
within my <body> where I want the version number to appear
<script type="text/javascript">document.write(myText);</script>
I had a go, got completely lost in all this, I really hope some one can help.
with anticipated thanks,
Dom