Script: Smoothmenu (and many more)
http://www.dynamicdrive.com/dynamici...smoothmenu.htm (and many more)
I am looking for advice or guidance on keeping the legal notices for Dynamic Drive code usage properly in place and visible without using Dreamweaver's library function whilst retaining the ability to create one relevant file and import it into many web pages.
Purpose of change is to get out of Dreamweaver's library functions and make editing the source code possible and updatable using any convenient editor package. There are two reasons for this - one is to avoid any successor webmaster from having to purchase Dreamweaver for editing, and the other is Dreamweaver's handling of links that start "href="about.html" (or similar). Dreamweaver's programmers insist that "href="/about.html" is the correct form but this is contrary to W3 standards and doesn't work. If you load the file into the source code using the library function you get "href="library/about.html" instead of "href="about.html" which, of course, doesn't work because the relevant file isn't in the library directory.
I should mention at this stage that my work as a webmaster is unpaid and funds are not available for purchasing expensive, bespoke, software packages.
One solution is to make the common file into a javascript one and wrap all the relevant items in document.write constructs and then call the file in this way: <script type="text/javascript" src="Includes/credits.js"></script>
This will certainly import the relevant information and Smoothmenu will read relevant HTML menu entries and function correctly. The problem remains of how to make these instructions visible to anyone viewing the page source as simply selecting view source in the browser just shows <script type="text/javascript" src="Includes/credits.js"></script> and not the contents of credits.js.
The situation is just the same if I call up the credits file inside an iframe, all that shows up in the viewed source is the iframe instruction itself, not the content.
The pages of the web site have file names ending in HTML or, occasionally, HTM. The web site runs on a windows server platform.
The only way I can think of at present is to place an extra line of code inviting viewers of the source code to click on the relevant credits file to view the legal notices thus:
<!-- DYNAMIC DRIVE LEGAL NOTICES - click on the filename in the next line to view these and discover how to obtain the source code -->
followed by <script type="text/javascript" src="Includes/credits.js"></script> that contains the notices in full detail.
This would allow me the freedom to update the credits file as necessary when additional Dynamic Drive scripts are put into use without having to amend several hundred pages individually. BUT, is that way of doing it acceptable to Dynamic Drive?
If it isn't acceptable, can you suggest any alternative ways please.
Bookmarks