Recent Questions Top 10 Treeview Javascript
Q: Thank you for your reply. I have run the example sent by you. Your dhtml menu example has horizontal menus and it hides all the menus.
But I am using xp vertical menu. In that I have Home,Sales,Customer Support,Reports,Access Control menus.
For Admin login I need all the menus including submenus.
But for employee login i need Home , Sales, Customer Support menus and i need only few sub menus only.
Please help me with this issue.
A: You can try to use API functions in that case:
function dm_ext_changeItemVisibility (menuInd, submenuInd, itemInd, visibility)
More info:
http://www.deluxe-menu.com/functions-info.html
Q: Hello, I very much like your components and will most likely buy one or more (or all!) of them for multi domain use after evaluating, I am however finding a problem with the Deluxe Popup javascript menu windows when it contains Flash content and I am resizing the window in IE6 or IE7, is this a known issue? Do you need an example of what I am referring to? We intend to use a lot of Flash content inside the windows so this is a big issue I need to resolve or workaround somehow, it seems fine in other browsers however.
Also do you have examples of how a window can be manipulated after creation, for example altering its position, width/height, window title and content etc with JS? Such an example would probably save me time evaluating.
A: To overlap your flash file you should add opaque parametersto your flash, for example:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
width="566" height="250" title="Intro">
<param name="movie" value="/includes/banner_final3d.swf" />
<param name="wmode" value="opaque">
<param name="quality" value="high" />
<embed src="/includes/banner_final3d.swf" quality="high" wmode="opaque" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="566" height="250"></embed>
</object>
You can find more info about menu parameters on our website:
http://www.deluxepopupwindow.com/parameters.htmlQ: 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".
Q: Is it possible to use an external file with these applets? Have tried
<SCRIPT LANGUAGE="JavaScript" SRC="myscript.js">
</SCRIPT>
but it does not work!
Any suggestions? I have one site with many pages, it would be handy not to have to change 20 pages just to modify one link.
A: You can use "menuItemsFile" param, example
<param name="menuItemsFile" value="menu1.txt">
The menu menu items are in menu1.txt, so you'll need to changeonly this menu1.txt if it necessary to add/remove/change items.
See also example:
http://www.apycom.com/xp-drop-down-menu/ex2.html