Norcat Menu System.

This uses freeware code "HV Menu" - by Ger Versluis (http://www.burmees.nl/)
You can download the full code and tutorials from Dynamic Drive (http://www.dynamicdrive.com)
Most of this readme is adapted from the HV_MENU config.html document.

Norcat menu installation.

The necessary files are supplied with Norcat but need a bit of manual installation.

Go into C:\Norcat and copy the file norcat_menu_com.js into your Actinic Site1 folder.
Go into C:\Norcat\Patches\Graphics and copy tri.gif, tridown.gif and trileft.gif into your Actinic Site1 folder.
Make an extra copy of tri.gif, tridown.gif and trileft.gif in your Site1\PreviewHTML folder.


Run Actinic and go to Advanced / Additional Files and add tri.gif, tridown.gif and trileft.gif (from Site1) to the list.

Edit Act_Primary.html and look for the line:-

<Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF"/>

replace it with:-

<Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF"/></Actinic:BASEHREF>

Some themes also have the line:-

<Actinic:COOKIECHECK/>

if you find it replace it with:-

<Actinic:COOKIECHECK/></Actinic:COOKIECHECK/>

Look for the long line:-

<BODY NETQUOTEVAR:BGIMAGE OnLoad="NETQUOTEVAR:ONLOAD" NETQUOTEVAR:BGCOLOR TEXT="NETQUOTEVAR:FGCOLOR" NETQUOTEVAR:LINKCOLOR NETQUOTEVAR:VLINKCOLOR NETQUOTEVAR:ALINKCOLOR marginwidth="5" marginheight="5">

(Some Actinic Themes may vary this line but it always starts "<BODY" and continues until the closing ">")
Append the following code immediately below this entire tag:-



<!-- amended menu scripts Norcat 2.1.04 onwards now use NorcatURLPrefix patched in at norcat_menu_com -->
<script type='text/javascript'>
//HV Menu- by Ger Versluis (http://www.burmees.nl/)
//Submitted to Dynamic Drive (http://www.dynamicdrive.com)
//Visit http://www.dynamicdrive.com for this script and more
function Go(){return}
</script>
<script type="text/javascript" src="norcat_menu_var.js"></script>
<script type='text/javascript'>if (location.href.indexOf('PreviewHTML') > -1) NorcatURLPrefix = '';</script>
<script type="text/javascript" src="norcat_menu_com.js"></script>
<noscript>Your browser does not support script</noscript>

 

That's installation finished. However you need to check Generate Cascading Menus in Norcat / Config / Menu (below) to generate the menu data. You should also check Link Prefix as below. This is all you need to generate a basic menu. The rest of the parameters are for fine-tuning.


Norcat menu configuration

Within Norcat / Config / Menu

Generate Cascading Menus
Checkbox- Check to generate the Menu data structures.
 
 
Header File
Text- Default value is norcat_menu_hdr.txt
 
Output File
Text- Default value is ..\norcat_menu_var.js
Single Root
Checkbox- Check to if you want a single item as the start of the menu. Clear to use the top-level section list as your start entry.
 
 
Root Menu Text
Text- Only needed if Single Root is checked. Set to the text to use for the top of the menu. Or use an image tag if you want an image as the menu start E.g. <img src=menulogo.gif>
Link Prefix
Text- Leave blank if using Actinic Business. For Actinic Catalog you can make the site more efficient by setting this to the absolute pathname to your catalog. E.g. http://www.mysite.com/acatalog/
 
First Row Width
Number- The width in pixels of the first level of the menu.
 
First Row Height
Number- The height in pixels of the first level of the menu.
Other Rows Width
Number- The width in pixels of the subsequent levels of the menu.
 
Other Rows Height
Number- The height in pixels of the subsequent levels of the menu.
Depth
Number- Informative only. Shows number of 1st level entries. Read only.

 
 
 

Other parameters are controlled by NorcatMenuConfig.exe which will be in your Norcat folder.

Under Position / Behavior

FirstLineHorizontal
Number 1 or 0- When set to 1 the elements of the first level are placed horizontal next to each other.
When set to 0 these elements are placed vertically below each other.
 
MenuCentered
Text string- Can be 'left', 'center', 'right', justify or ''. StartLeft is added to the calculated position. '' is the same as 'left'.
 
MenuVerticalCentered
Text string- Can be 'top', 'middle', 'bottom' or ''. StartTop is added to the calculated position. '' is the same as 'top'.
 
StartTop
Number- Defines the vertical position of the menu in the document.
Is ignored whenMenuVerticalCentered is 1. Is also ignored when the menu is across frames and the frames are orientated in rows. The menu is in that case placed at the bottom of the frame FirstLineFrame.
 
StartLeft
Number- Defines the horizontal position of the menu in the document.
Is ignored whenMenuCentered is 1. Is also ignored when the menu is across frames and the frames are orientated in coloms. The menu is in that case placed at the far right position the frame FirstLineFrame.
 
ChildOverlap
Number between 0 and 1- Controls what part of a level is covered with it's sublevel.
With a value of .25 a level will covered be for 25% by it's sublevel. Negative values are possible, but not very usefull.
ChildVerticalOverlap
Number between 0 and 1- Controls the vertical offset of a sublevel from it's parent level.
With a value of .25 a sublevel will start 25% of the parents level height lower. Negative values will make the start higher
.
RightToLeft
Number 1 or 0- When set to 1 the menu unfolds from left to right.
UnfoldsOnClick
Number 1 or 0- When set to 1 the menu unfolds onclick, when set to 0 the menu unfolds on mouse over.
MenuWrap
Number 1 or 0- When set to 1 unfolding items are wrapped when the menu doesn't fit on the window.
ShowArrow
Number 1 or 0- When set to 1 the arrow gifs show.
TargetLoc
Text string- Leave blank unless you are an expert and want to locate the menu relative to an HTML item. Enables relative positioning of the menu.
1- In the HTML-file where the menu shows you need a named div:
<div id='MenuPos' style='position:relative'></div>
2- Set TargetLoc to 'MenuPos'
3 - Set MenuCentered to 'left', MenuVerticalCentered to 'top' and StartTop and StartLeft to 0
4 - StartTop, StartLeft and the Menu center variables can still be used to get an offset from the <div>.
 
Remarks: the different ways browsers interpret the pageX and pageY offset makes this feature difficult. I got the best results by putting the div inside a table, give the div the same dimensions as the first level menu, put an transparent image inside the div with again the same dimensions as the first level menu
<table>
  <tr><td>
    <div id='MenuPos' style='position:relative; width:102; height:102;'><img src='transparent.gif' width='102' height='102'></div>
  </td></tr>
</table>
KeepHilite
Number 1 or 0- When set to 1 the selected path stays highligthed.
DissapearDelay
Number- The time in milliseconds the menu's sublevels stay visible after the mouse is no longer over the menu.

Under Borders / Fonts / Colours

For the First Level of the Menu

LowBgColor
Text string- Background color of the elements when the mouse is not over the element.
Can be a supported color name like red or blue or a RGB string like #ff552a.
HighBgColor
Text string- Background color of the elements when the mouse is over the element.
Can be a supported color name like red or blue or a RGB string like #ff552a.
 
FontLowColor
Text string- Font color when the mouse is not over the element.
Can be a supported color name like red or blue or a RGB string like #ff552a.
 
FontHighColor
Text string- Font color when the mouse is over the element.
Can be a supported color name like red or blue or a RGB string like #ff552a.

BorderColor
Text string- Border color.
Can be a supported color name like red or blue or a RGB string like #ff552a.

For Subsequent Levels of the Menu

LowSubBgColor
Text string- Background color of the elements when the mouse is not over the element.
Can be a supported color name like red or blue or a RGB string like #ff552a.
HighSubBgColor
Text string- Background color of the elements when the mouse is over the element.
Can be a supported color name like red or blue or a RGB string like #ff552a.
 
FontSubLowColor
Text string- Font color when the mouse is not over the element.
Can be a supported color name like red or blue or a RGB string like #ff552a.
 
FontSubHighColor
Text string- Font color when the mouse is over the element.
Can be a supported color name like red or blue or a RGB string like #ff552a.
BorderSubColor
Text string- Border color.
Can be a supported color name like red or blue or a RGB string like #ff552a.

BorderWidth
Number- Thickness of the border around the elements in pixels.
 
BorderBtwnElmnts
Number 1 or 0- Controls if there is a border between the elements. 0 is no border between the elements.
 
FontFamily
Text string- More than one font can be declared seperated with a comma.
Example: arial, times new roman, ms comic sans. The browser will use the first font found on the users system.
 
MenuTextCentered
Text string- Can be 'left', 'center' or 'right'.
 
FontSize
Number- Size of the font in pt.
FontBold
Number 1 or 0- 1 makes the font weight bold; 0 makes the font weight normal.
 
FontItalic
Number 1 or 0- 1 makes the font italic; 0 makes the font normal.
 
 
 
 
LeftPadding
Number- Defines the distance between the left side of the menu text and the border of the element.
 
TopPadding
Number- Defines the distance between the top side of the menu text and the border of the element.
 
 
Under Framed Pages
 
 
Only needed If you have pages in Frames (ugh - not recommended).
 
 
MenuFramesVertical
Number 1 or 0- Set this variable to 1 when your frameset is laid out in coloms.
set to 0 when your frameset is in rows. Irrelevant when the menu is on a single page or frame, but must be 0 or1
VerCorrect
Number- Defines the vertical correction of the seconde line of the menu in the document.
Can be usefull in situations with nested frames
 
HorCorrect
Number- Defines the horizontal correction of the second line of the menu in the document.
Can be usefull in situations with nested frames
 
TakeOverBgColor
Number 1 or 0- When set to 1 the background color of the frame where the menu's first line is in will become the same as the frame where the sublevels are in.
Irrelevant when the menu is on a single page or frame, but must be 0 or1  
HideTop
Number 1 or 0- Only relevant when the menu is used in a frameset. When set to 1 the top level items are hidden when a new document is loaded into the target frame until the menu is built again.
FirstLineFrame
Text string- When the menus are used in a frameset this is the name of the frame where the first line of your menu is located.
When the menu is used in a single page, this must be 'self'
 
SecLineFrame
Text string- When the menus are used in a frameset this is the name of the frame where the sub levels of your menu are located.
It is allowed to have SecLineFrame equal to FirstLineFrame
When the menu is used in a single page, this must be 'self'  
DocTargetFrame
Text string- When the menus are used in a frameset this is the name of the frame where the documents are loaded.
Normally this will be equal to SecLineFrame
When the menu is used in a single page, this must be 'self'
 

Under Advanced

Arrws
array- Describes the three images used as arrows.
Format: source, width, height
 BeforeStart
function- Is called just before the menu is build. Is by default empty. Can be used by user.
 
AfterBuild
function- Is called just after the menu is build. Is by default empty. Can be used by user.
 
BeforeFirstOpen
function- Is called when the mouse enters a main menu item that has children. Is by default empty. Can be used by user.
AfterCloseAll
function- Is called when the mouse leaves the menu. Is by default empty. Can be used by user.
WebMasterCheck
Number 1 or 0- When set to 1 the script performs a check on the frame names and the menu tree. When your menu is running this should be set to 0.