|
Importing the menu to HTML
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 weather.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 usualy looks like below:
<SCRIPT SRC="weather.js"></SCRIPT>
- Switch back to your HTML editor, then copy the code where the menu should appear.
- Refresh your HTML page to see if the menu appears.
The menu on this page is saved under the file weather.smmp located in examples folder.
See also Importing the menu in fixed mode
You can include the <script...> tag wherever you want, but only within document body. Wherever you paste it, the menu will appear there. Do not paste it outside body tags, for example in document head.
|