|
Importing the menu to HTML in fixed mode
Positioning the menu in fixed mode is more difficult. To integrate the menu with your page follow the steps:
- Export the menu to .js file. To do so choose "Export JavaScript" file from the "File" menu. Save the file to the same folder where your html page is. In this case the filename is weatherf.js
- "HTML Include Code" dialog will popup. Click "Copy" button to copy the code to clipboard. The code is the same every time you export the .js file so you have to copy it only once. The code usuallly looks like below:
<STYLE TYPE='text/css'>#DM22234237 {visibility:hidden;}</STYLE>
<SCRIPT SRC="weatherf.js"></SCRIPT>
- Switch back to your HTML editor, then copy the code right after the BODY tag. The code can not be placed within any TABLE tags
- Refresh your HTML page to see if the menu appears. The menu will be probably in wrong position.
- If necessary you have to make dummy table cell in your HTML code, so the menu doesn't overlap page contents.
- Switch back to Menu Maker to position your menu precisely. Choose "Fixed Menu Options" from "Menu" menu. Set X and Y coordinates and click OK.
- Export your menu to .js file like in step 1. You don't have to copy and paste the code again.
- Switch back to your HTML editor and refresh your page. See if the menu is in right position. If necessary repeat steps 6 to 8.
The menu on this page is saved under the file weatherf.smmp located in examples folder.
The page must be left and top aligned, otherwise you will not be able to position the menu exactly.
|