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


 

    I'm trying to simply use javascript to add some properties to my javascript menu sample.

Return to Recent Questions


Q: I'm trying the deluxe menu and I'm positively impressed.

But now I'm trying to simply use javascript to add some properties to my menu.

I modified the dynamic to 1

and I get only one error in the javascript monitor telling me:

Error: dm has no properties
Source File:
http://devel.discgolf-geneve.ch:8081/docroot/dg/js/menu/data.files/dmenu_dyn.js
Line: 8



A: Please, see how you should write this function:

function dm_ext_addItem (menuInd, submenuInd, iParams)

<script type="text/javascript" language="JavaScript1.2">
dm_ext_addItem(0, 0, ["Hello", "testlink.htm", "", "", "Hello", "_blank", "-1"]);

menuInd - index of a menu on a page, >= 0. (you have written menuInd=1, but if you have one menu on your page you should write 0).
You also have written itemStyleInd=1, but you have only one style in your menu. So you should write "0" or "-1".





Return to Recent Questions

15 Recommended Website Makers Arranged by Level Of Popularity Bootstrap Toggle Tabs  |  36 Top Eye-catching and Free AMP Elements Templates for 2018  |  Fresh CSS Bootstrap Carousel Video Players and Nav Menu Demos  |  30 Killer Free Bootstrap Image Carousel and Gallery Scripts  |  Mobile-friendly Page Maker  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. web editor | free icons | bootstrap navbar | bootstrap forms | css3 menu