Correct Placement of the menu-linking code

Top  Previous  Next

It is important that the AllWebMenus menu-linking code is placed right after the <BODY> tag and not somewhere else. This allows for the floating menus to appear properly on the page without being dismantled by other page elements (such as tables etc.), mostly in Gecko-based browsers.

 

How it works:

When inserting a menu into a web page, something similar to the following code is added right after the <BODY> tag:

 

<!-- DO NOT MOVE! The following AllWebMenus linking code section must always be placed right AFTER the BODY tag-->

<!-- ******** BEGIN ALLWEBMENUS CODE FOR menu ******** -->

<script type="text/javascript">var MenuLinkedBy="AllWebMenus [4]",awmMenuName="menu",awmBN="628";awmAltUrl="";</script>

<script charset="UTF-8" src="menu.js" type="text/javascript"></script><script type="text/javascript">awmBuildMenu();</script>

<!-- ******** END ALLWEBMENUS CODE FOR menu ******** -->

 

This menu-linking code should always remain there no matter where you want the menu to appear. The menu's appearing position is not determined by where you place the AllWebMenus menu-linking code but by specifying and implementing the positioning methods found at the <Positioning> property of its Main Menu group.

Therefore, please do not move the menu-linking section from the start of the page.

 

 

What about Includes, Libraries, Templates, etc.?

The same rule applies to includes, libraries and templates. If you want to have a menu into a library or an include then you should make sure that:

1. the menu is always at the very beginning of the library or include and

2. the library or include is the first element of the page, right after the <body> tag.

If both conditions are satisfied, the resulting page will have the AllWebMenus menu-linking code at the very beginning of the page and no problems will occur in Gecko-based browsers.

 

 

What about FrontPage Shared Borders?

A similar logic applies to the use of FrontPage Shared Borders.

This topic is best described in the "Compile Properties, FrontPage Support" section.

 

 

 



DHTML menu builder
Correct Placement of the menu-linking HTML code
Javascript menu software
Correct Placement of the menu-linking HTML code
Drop-down menu maker