1. Paste the following code into a <head> tag of a frame with the top-menu:
<!-- Deluxe Menu, deluxe-menu.com -->
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript" >var dmWorkPath = "menudir/";</script>
<script type="text/javascript" src="menudir/dmenu.js"></script>
<!-- Copyright (c) 2009, Deluxe Menu, deluxe-menu.com -->
2. Paste the following code within the same html page in the position where you want to have the menu:
<script type="text/javascript" src="menudir/data.js"></script>
3. Replace the standard dm_init() function call at the end of data.js file by the dm_initFrame() function:
dm_initFrame(framesetID, topFrameInd, subFrameInd, frameOrientation);
Where:
framesetID - id attribute of the <frameset> tag;
topFrameInd - index of the top frame (frame where the top-menu will be shown), >=0;
subFrameInd - index of a frame with submenus, >=0;
frameOrientation = 0/1 - orientation of the frameset: 0 - horizontal, 1 - vertical.
|