Recent Questions Code Javascript Save Tree Menu Item
Q: I am trying to figure out how to make multiple clickable Link popup windows on the same page. I want to have six or more. Here is what I have tried for having two windows and could not get to work:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<!-- DeluxePopupWindow.com -->
<noscript><a href="http://deluxepopupwindow.com">Javascript Popup Window by DeluxePopupWindow.com</a></noscript>
<script type="text/javascript" src="chase1.files/dpopupwindow.js"></script>
<script type="text/javascript" src="chase2.files/dpopupwindow.js"></script>
<!-- (c) 2008, http://deluxepopupwindow.com -->
============================================================================ ===============
<body>
<p><script type="text/javascript" src="chase1.js"></script>
<script type="text/javascript" src="chase2.js"></script> </p>
============================================================================ ================
<a href="javascript:;" id="chase1">Click Here to see a chase sample</a>
<a href="javascript:;" id="chase2">Click Here</a>
This does not work. I had it somewhat working. Is there a better way to do this? I will want to have at least 6 popup windows on the same page. I could not find any samples on your website.
A: You can do it in two ways:
1) Call different data files with DIFFERENT winID:"window1"!
2) Call only one data file and use deluxePopupWindow.open() function to open your windows:
<a href="javascript:;" onclick="deluxePopupWindow.open('window1', 'Content1 Content1', 'Window1',
'width=220,height=100,resizable,scrollbars=no,middle,right,fade-effect',
'windowsvista_graphite')">Click Here to see a chase1 sample</a>
See how to create popup windows:
http://deluxepopupwindow.com/window-installation-info.html
http://deluxepopupwindow.com/samples.htmlQ: I can't see menu on my test page only direct links...
A: Now on your page you have only search engine friendly code for JavaScript Tree Menu. You do not have a menu.
See more info about the installation of the menu here:
http://deluxe-menu.com/installation-info.html
You should paste also such lines, for example:
<script type="text/javascript" src="deluxe-menu.files/dmenu.js"></script>
and
<script type="text/javascript" src="deluxe-menu.files/data.js"></script>
Where data.js is the file with your menu. You can create such file using Deluxe Tuner.
You should upload this files on your server in the correct place.
Q: Do I need to replace the menudir/ in the code with the name of the folder I have placed the .js files?
A: Yes, you should change the name of the folder.
If you have, for example such file structure:
deluxe-menu_files/
dmenu.js
data.js
images/
html_pages/
page1.html
page2.html
index.html
So, you should install your menu in the following way:
<head>
<!-- JavaScript Tree Menu -->
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript"> var dmWorkPath = "deluxe-menu_files/";</script>
<script type="text/javascript" src="deluxe-menu_files/dmenu.js"></script>
<!-- (c) 2006, http://deluxe-menu.com -->
</head>
<body>
<script type="text/javascript" src="deluxe-menu_files/data.js"></script>
</body>
</span>
Q: I am conisdering purchasing your menu generator product, however I have a question that is very important to me.
How can I add a separator to the dhtml menu examples using the dynamic functions? It seems as though the only way to get a separator into the menu is by defining it before hand, but the website I'm building will require me to reload the menus dinamically, and I'm losing the ability to put separators on it.
If there's a workaround for it, or if there's a chance that you can give me a prototype function that exposes that functionality, that would be acceptable as well.
A: You should add items using the following function:
function dm_ext_addItem (menuInd, submenuInd, iParams)
or
function dm_ext_addItemPos (menuInd, submenuInd, iParams, Pos)
Find more info:
http://deluxe-menu.com/functions-info.html
Set the following parameter:
var dm_writeAll=1;
So, you should write:
dm_ext_addItem(0, 4, ["|-", "", "", "", "", "", "", ])