Website Template Control This javascript also depends on index.html file directly index.html is the skeleton/structure/dinamicLayout The content pages fill the Content table cell at index.html based on menu links. Examples can be found at: http://webtemco.sourceforge.net/ (ok) http://structintegrdb.sourceforge.net/ (ok) http://geocities.yahoo.com.br/teikecorp/ (ok) The examples *are* these homepages :) BASE FILES: WebTemCo.js Website Template Control code. WebTemCoSetup.js Values here will adjust how WebTemCo.js javascript file works. Customize your menu here. Remember that editing this file is like assigning values to variables in javascript, so be carefull to adjust variables values properly. index.html Main Website file. Do not change it! WebTemCo.js functionalities works directly with it, this means that future releases will change it most certainly. WebTemCoPref.html Visitors preferences, webmaster may deny many. EXTRA FILES: WebTemCo.txt This general documentation/help file. license.txt Read it. _HTMLSplit.sh (functionality not available yet at version 0.99) If you have any Linux distro installed (or 'may be' cygwin under windows), you may try to run this bash script to split a huge .html dynamically generated file (see preferences menu item while running on local machine) with all content homepages, into smaller ones. Then each content homepage will be nicely browseable in Plain HTML mode. TEMPLATE FILES: MainExample.html Main Content Area file example. //onLoad of 'iFrame temp data' will execute that parent function that will fill Content area See more info at MainExample.html ContentExample.html Content Area file example. UPDATING TO NEW VERSION: Rename old WebTemCoSetup.js to WebTemCoSetup.js.old Copy from new package these files to your local machine path: index.html, WebTemCo.js, WebTemCoSetup.js, WebTemCo.txt, WebTemCoPref.html, license.txt It is advised to compare old setup file with new one, making use of a program to see differences between files. Ex.: compare default setup file from v0.90 (not your changed custom setup file) with default one of v0.91. Then if needed (read also change log): Adjust at new WebTemCoSetup.js all variables that matches your old setup file. It is important to update the new setup file with data from old one because NEW REQUIRED VARIABLES to WebTemCo.js run properly ARE ALL IN THE NEW SETUP FILE. Otherwise delete WebTemCoSetup.js and rename WebTemCoSetup.js.old to WebTemCoSetup.js ALREADY INTENDED FOR FUTURE RELEASES: Generate all Plain HTML content homepages in the same way menu.html is being generated. The files will be named as: WTC*.html; and menu links adjusted properly. Unused menu area (there is 2 menu areas) be made available to webmaster customized menu/content. Alternative menu entries (a whole new menu setup could be loaded like in a website subsession, ex. store has books and magazines sessions, so 1st time user loads website, books session is loaded. But if user click on magazines link lets say at the 'Top Area' then .../index.html?menu=magazines is loaded instead of default .../index.html). Graphic menu items (instead of text could be an image or even animated gif etc). KNOWN BUGS: CSS class doesn't seem to be working with IE. When menu is docked, it begins with 'website options' submenu in wrong position but just after it goes right. NOTES: v 1.00 v 0.98 Advanced menu (floating) is working! :). Last submenu entry must have this: "p:endSubMenu;" Added webmaster external javascript specific adjustment function recognizement to each content homepage: WTCuserFuncAreaContentOnLoadBefore() and WTCuserFuncAreaContentOnLoadAfter(). Also WTCuserFuncAdjustMenu() at setup file. If they are declared they will be recognized and called. Automatic redirection to Plain HTML mode in case browser has script (javascript) disabled. v 0.91 menu.html generated at 'user prefer.' now v 0.90 menu.html must be dynamically generated after menu has been adjusted at setup file. This way your website will be able to be browsed in Plain HTML mode. move your mouse over 'browse mode' to see 'user preferences' :). CHANGE LOG: v 1.00 v 0.99 BugFixed: after clicking on a loadTop menu item, that item was being kept highlight. WebTemCo submenu options at floating menu also float now. Preferences is now at WebTemCoPref.html file. Debug mode improved (some debug global variables were removed). Added preference to visitor allow cookie remeber (load) last visited relative link instead of main homepage. Added "t:title;" property to menu items. Image to Mini Menu can be setup at variable g_strImgMenuMini now. Added support to translation of all Character Entity References in HTML 4 where needed. Dynamic Plain HTML generation improved. Also now, it opens a new browser window; Its info text is just a HTML hidden comment; etc. v 0.98 BugFixed: when user loads another website and click "back" button, if WTC was left in the main content homepage, the content area was not being reloaded properly. BugFixed: if a table is created inside menu FreeCell its TD tags were being considered as menu items instead of being skipped. At setup file, g_strMainBodyStyle handles index.html 'body' tag style. g_strBgColor removed. At index.html default global alignment is now: center. Multilanguage initial support: english/portuguese(Br). Removed menu.html from package (it should be configured at setup file). From content body tag attributes to table cell style, conversion now considers: text, bgcolor, background; before body tag dummy css style. Added floating menu auto shrink/expand functionality. Added minimenu animated gif. Added webmaster external javascript specific adjustment functions recognizement to each content homepage: WTCuserFuncAreaContentOnLoadBefore() and WTCuserFuncAreaContentOnLoadAfter(). Also WTCuserFuncAdjustMenu() at setup file. Added automatic redirection to menu.html in case of javascript is disabled. Added this functionality: .../index.html?load=AnyOfYourRelativeContentHomepage.html that will load that homepage instead of main one. Usefull to load content homepages that are not part of the menu entries (a link at FreeCell area for ex.). menu.html is now generated with other areas (layout) and a copy of the starting (main) homepage content. v 0.91 Fixed: missing expiration date to cookie. Error handler only show WebTemCo cookie now. Dynamically generation of menu.html changed, moved to user preferences area. Variables removed from setup file: g_bMenuNameDialog, g_bMenuNameBlinkOnLocalMachineFileLoad Improved WebTemCo user preferences cookie copy/paste. v 0.90 Added id recognition WTCdivData, so only html data within the div tag with that id will be displayed at index.html areas. Now only javascript errors that occur after WebTemCo.js starts (onload) will alert user to browse in Plain HTML (it was being alerted also for errors from possible previous scripts). Table refreshes good now at FireFox/Mozilla. Improved show/hide debug functionality (code side). Added User Preferences (visitors preferences). Cookies enabled to save users preferences. Menu is now setup at WebTemCoSetup.js file, then you can dynamically save it as menu.html. Improved 'onerror' behavior. Layout is more flexible now: added 2 top areas, 1 bottom area; menu can be on the right side now :) Added dynamic style interpreter/updater to several places. Check WebTemCoSetup.js for them. v 0.81 Added compatibility code to support I.E. 6.0 browser. On javascript error, now FULL menu.html (Plain HTML) url is suggested. v 0.80 First release