| Author |
Message |
blouwagie Guest
|
Posted: Mon Jun 16, 2003 3:58 am Post subject: Migration from cooljsmenu.js to cooljsmenupro.js |
|
|
Question:
Is there a migration to follow to get from cooljsmenu.js to cooljsmenupro.js ? If yes, what is it, if no, I have another issue with cooljsmenupro.js.
Thanks
Bart |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Mon Jun 16, 2003 7:38 pm Post subject: |
|
|
These scripts are mostly compatible. All you have to do is update references to coolmenupro.js and change initialization sequence. Your old initialization code probably look like the following piece of code.
| Code: | <script type="text/javascript">
new COOLjsMenu('myMenu', MENU_ITEMS);
</script> |
It should be changed like in the next snippet.
| Code: | <script type="text/javascript">
var m1 = new COOLjsMenuPRO("myMenu", MENU_ITEMS)
m1.initTop();
</script>
...some html code...
<script type="text/javascript">
m1.init();
m1.show();
</script>
</body>
</html> |
Please not that "init()" and "show()" calls must appear just before the very end of the file. |
|
| Back to top |
|
 |
|