(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:
Great MP4 to HTML5 Generator Tutorial Reputable Drag and Drop Web Builder | Overview  |  First-rate Easy Website Builder | How-to Guide  |  Exceptional MP4 to HTML5 Converter Review  |  Beautiful Slider jQuery Application  |  Fantastic Bootstrap Page Themes For Your Company  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. Free AI Website Builder | Best AI Website Builder | Free AI Website Generator | Website Generator AI | AI web page design generator