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.
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>
Content of the referenced .js fileCode:<script type="text/javascript" src="version.js"></script>
within my <body> where I want the version number to appearCode:var myText = "1.7.0";
I had a go, got completely lost in all this, I really hope some one can help.Code:<script type="text/javascript">document.write(myText);</script>
with anticipated thanks,
Dom



Reply With Quote

Bookmarks