(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

    How do I go about using the menu javascripts feature and javascript popup on the same HTML page? I'm getting a Java Error.

Return to Recent Questions


Q: How do I go about using the menu javascripts feature and javascript popup on the same HTML page? I'm getting a Java Error.

A: 1) Notice that you should call dmWorkPath parameter and dmenu.js file only once on your html page.

2) When you have several menus on the same page they have different menuInd (0,1,2,3...)
For example you have:

<script type="text/javascript" src="data.js"></script> //standard menu menuInd=0
...
<script type="text/javascript" src="popup-data.js"></script> //popup menu menuInd=1

You should call your popup in the following way:

<img src="mypic.gif" onClick="return dm_popup(1, 1000, event);">

or

<script type="text/javascript" src="popup-data.js"> </script> //popup menu menuInd=0
...
<script type="text/javascript" src="data.js"></script> //standard menu menuInd=1

You should call your popup in the following way:

<img src="mypic.gif" onClick="return dm_popup(0, 1000, event);">





Return to Recent Questions

Related:
No Coding Website Builder - Easiest Website Builder Greatest 11 Free Wordpress Alternatives Tools  |  Most Suitable 11 Best Wix Alternatives Website Creators  |  Nice and Simple HTML Website Maker with HTML Code Export  |  Best Free QR Code Generators 2023  |  How To Embed Instagram Feed  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. Best AI Website Builder | AI Website Generator | AI Website Builder | AI Website Generator | AI web page design generator