Publish menu for html pages

To publish menu for html pages select the item Publish menu from the File menu or press . A Save file dialog window will be displayed. Select folder where you want save your menu files and type menu name. A three files will be saved to selected folder:

  • one.js - menu configurations
  • main.js - main JavaScript functions for your menu
  • File with your name - menu configurations. If you save menu as MyMenu, then this file will be MyMenu.js

To include menu in html files include next HTML code in your html files:

‹SCRIPT language=JavaScript src="one.js">‹/SCRIPT>
‹SCRIPT language=JavaScript src="main.js">‹/SCRIPT>
‹SCRIPT language=JavaScript src="XXXXX.js">‹/SCRIPT>

Wherer XXXXX.js - name of menu which you type when publish menu. If you save menu as MyMenu.js, you must replace XXXXX.js with MyMenu.js

This code we recomment place to and of html file before ‹/BODY> tag like this:

‹!--Text of your HTML file-->
....
....
‹SCRIPT language=JavaScript src="one.js">‹/SCRIPT>
‹SCRIPT language=JavaScript src="main.js">‹/SCRIPT>
‹SCRIPT language=JavaScript src="XXXXX.js">‹/SCRIPT>
‹/BODY>
‹/HTML>

If you are experienced WEB developer you can rename this files, but you must correct JavaScript file name in this HTML code.

If you want to have two menus on your WEB page, you can publish to this folder another menu, for example MyAnotherMenu

  • one.js - menu configurations
  • main.js - main JavaScript functions for your menu
  • File with your first menu - menu configurations. For example Mymenu.js.
  • File with your second menu - menu configurations. For example MyAnotherMenu.js.

To include menu in html files include next HTML code in your html files:

‹SCRIPT language=JavaScript src="one.js">‹/SCRIPT>
‹SCRIPT language=JavaScript src="main.js">‹/SCRIPT>
‹SCRIPT language=JavaScript src="MyMenu.js">‹/SCRIPT>
‹SCRIPT language=JavaScript src="MyAnotherMenu.js">‹/SCRIPT>

You may add this code to any number of html files. All files will be reference to one menu file. You can edit menu file and all html files will obtain changes. You din't need adit all html files, when you change menu.

 
Best offer
CyD WEB Animation Studio
Easy GIF animation program. Optimization of graphic pallets to reduce file sizes. Online help. It's vary easy.




  Products | Buy now | Downloads |  Support | Contact Us
 
Copyright © 1999-2003, CyD Software Labs. All rights reserved.
Legal Notices | Privacy Policy