Recent Questions
Q: I need a navigation bar dhtml where on the click of certain items, server side code on the page can be called and executed.
I need to create a multiple item select menu. Sothe menu would need to remain open and allow a user to selectmultiple items and would either submit onmouseout or maybe a “submitthese selections” menu item.
A: You can try to use Deluxe Tree in that case:
http://deluxe-tree.com
You can paste any html code inside item text, see example here:
http://deluxe-tree.com/data-samples/tree-menu1.js
["+Support", "", "icon5_t.gif", "icon5_to.gif", "", "Support Tip"],
["|Index <select style='width:120px;height:17px;font:normal 10px Tahoma,Arial;'><option>Section 1<option>Section 2<option>Section 3</select>", "", "", "", "", "","", "0"],
["|Search <input type=text style='width:80px;height:17px;font:normal 10px Tahoma,Arial;'> <input type=button value='Go'style='width:30px;height:17px;font:normal 10px Tahoma,Arial;'>", "", "", "", "", "", "", "0"],
["|Write Us", "mailto:[email protected]", ""],
["|<INPUT TYPE=checkbox CHECKED ID=chk1 onclick='choosebox1()'>Uncheck this check box for some free advice","","","",],
["<img src='img/sep.gif' width=113 height=1>"],
You should also add your own code, so your checkbox will workcorrectly.Q: Thank you for the information and especially for your good explaination of the ways DHTML and Java work with menus. I want to get a menu because I was asked to base a new web site on one that used 'showpage.asp' calls to createtheir menus. Can you throw some light on how I would go about doing that?
A: Deluxe Menu and Java Menus work on aclient side only and they don't depend on the server which you'reusing and they don't work on a server side as ASP.NET script.So, you can create the menu using standard html page and them movemenu code within .asp page.
Please, try the trial version of the menu. You can use GUI to createyour menu. You can find it in the trial package.
Q: I have written my own javascripts function.
How to call the function in my java script menu?
A: You should paste "javascript:some_function()" into item's link field,for example:
var tmenuItems = [
["text", "javascript:window.print(...)", ...]
];
Q: I am still struggling with multiple menus on one page.
It is probably something I am doing wrong, but I cannot see it.
A: Now you have:
var absolutePos=1;
var posX="10";
var posY="10";
So, both of your menus have the same absolute position.
You can use relative position and place your menu inside <table>. In this case you should write so:
var absolutePos=0;