1. Paste the following code into a <body> tag of a frame with the top menu items:
<!-- 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.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 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 frame with the menu (frame where the top menu items will be shown), >=0;
subFrameInd - index of a frame where submenus will be shown, >=0;
frameOrientation = 0/1 - orientation of the frameset: 0 - horizontal, 1 - vertical.
|