Recent Questions Css For Treeview Asp Net Jquery
Q: I came across your program through a link on the Internet. The menu script displayed was DHTML Menu Demo #23 displayed on
http://dhtml-menu.com/dhtml-samples/menu2752.html - this is the only menu I am interested in as it has the capability of positioning the menu script relative to an existing table in the HTML coding of the page. I already have a vertical scrolling menu with several features visitors. We are moving our website to our own server and are doing some updating to make it more attractive when viewed at different resolutions. If you look at the source coding for the page (yes, it's almost exclusively in HTML - it usually views well on any browser) you will see that ALL the content is enclosed in a table which is centered on the page allowing it to be completely viewed at any resolution of 800 x 600 or greater. But the scripting I'm using ( /* Created by Randy Bennet...) uses the left margin of the browser window as left margin of the page. If it could be written so that the left margin of the existing (and centered in the browser window) table would be the point from which the left corner of the "object1" was measured, then the page would view nicely at any resolution. But I cannot find out how to do this from your "newer version".
A: You can create the same menu using JavaScript Tree Menu:
http://dhtml-menu.com/dhtml-samples/menu2752.html
To install JavaScript Tree Menu in the table cell with center alignment youshould use relative position for the menu:
var absolutePos=0;
var posX="0px";
var posY="0px";
And install it on your page in the following way:
<table>
<tr>
<td align="center">
<script type="text/javascript" src="deluxe-menu.js"></script>
</td>
</tr>
</table>
Q: Is there any way to keep a menu lit up when going to another page? Or do the menus always have to default back to their normal state?
I want the menu to know what page the user is on and keep that section highlighted. Any ideas?
A: You should set a pressed item using Javascript API:
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion)
Sets a current pressed item.
menuInd - index of a menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0.
recursion = true/false - highlight parent items.
But notice, to use dm_ext_setPressedItem() you should know ID of selected item and subitem.
You can't get this ID after you reload your page. That is why you should write your own code on PHP.
Q: I would eventually like to be able to distribute the javascript navigation menu with some of my templates, is this permitted with the Developer license?
A: With the Developer license you can use the menu on an unlimited numberof Internet or Intranet sites and on the local machines.
This version of the script doesn't check keys and it isn't bound to a domain name,so it can be used with an application that doesn't have a fixed domain name.
Q: Is it possible to populate a drop down menu trees from a mysql database?
If so do you have an example please before I go ahead and try/purchase.
A: Unfortunately we don't have working example.
Only this example:
http://deluxe-menu.com/rq-loading-bar-MySQL-support.html
You can use trial version to test the menu at first. Trial version has full functionalityexcept "Trial Version" nag.