Recent Questions Free Html Tree Icons
Q: Is there a way I can do an include of a separate file that would contain the
var menuItems = [];
A: You can delete var menuItems = []; and dm_init(); from your data.jsfile and paste it into your html page or in the other file.
You should call at first data.js file with the parameters and thanmenuItems = []; and dm_init();.
Q: Things are mostly working great. I want my menu to appear centered at the top the page. Here's the code:
<table style="text-align: left; width: 100%;" border="0" cellpadding="2"cellspacing="2">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><script type="text/javascript" src="navbar.js"></script>
</td>
</tr>
</tbody>
</table>
The table appears at the far left edge of the window. I tried with both absolute (x=20, y=10) and relative (both x and y unset) coordinates. Help!
A: If you want to center the menu paste itwithin the <div > or <table> with a static position and specify a center alignment for it, for example:
<DIV align=center>
<SCRIPT src="data/data.js" type=text/javascript>
</SCRIPT>
</DIV>
<table width=800>
<tr>
<td align=center width=600> </tr>
</table>
Please, set exact value for var menuWidth parameter, for example:
var menuWidth = "600px";
This can help to align your menu correctly in all browsers.
Try also to specify units in "px".
Set also:
var absolutePos = 0;
Q: I am interested in this script
http://deluxe-menu.com/popup-mode-sample.html
Is that possible that the "2nd" menu is activated with left click and to delete the "1st" menu.
A: Yes of course you can create any menu on your page.
See how you should call pop up menu
<img src="data-samples/images/popup_pic.gif" width=180 height=119 onClick="return dm_popup(1, 2000, event);" onContextMenu="return dm_popup(2, 2000, event);" style="cursor: pointer;">
To use one menu on you page you should write
<img src="data-samples/images/popup_pic.gif" width=180 height=119 onClick="return dm_popup(1, 2000, event);" style="cursor: pointer;">
You can create you own menu using Deluxe Tuner application or use thismenu.
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 yourhtml 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);">