Recent Questions How To Cct Javascript Tree Builder
Q: Hi I recently purchased your product Deluxe Tuner and I am having trouble with my frame pages.
There is a portion of my site that is set to produce frames and Iwas wondering if there is more information about setting links in a tree view structure to selected frame pages?
A: You can specify target parameter for each item individually.
For example you can specify the name of the frame in the menuItems where you would liketo open your link:
["|Home","testlink.htm", "default.files/icon1_s.gif", "default.files/icon1_so.gif", "", "Home Page Tip", "frame", "", "", "", ],
>Kehren Sie zu Neuen Fragen zurückQ: How change the color of the link in the dhtml vertical menu if the link is already visited.
A: JavaScript Tree Menu has only two states normal and mouseover,
butyou can highlight menu items in two ways:
Try to do the following things:
- delete var pressedItem=1; parameter from your data file
- set correct parameter on each page before you call data file, forexample:
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript"> var dmWorkPath = "menudir/";</script>
<script type="text/javascript" src="menudir/dmenu.js"></script>
<script type="text/javascript"< var pressedItem=3;</script>
...<script type="text/javascript" src="menudir/data.js"></script>
You can also 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.
You can find more info here:
http://www.deluxe-menu.com/highlighted-items-sample.html
Q: We have a problem with the submenus going cross-frame.
Whenever there is a webpage from another website in the content/target-frame the frameset twists and all the pages are shown in the topframe. A lot of the information on our web is in office word-files and when they are opened in the content/target-frame the same cross-frame-problem happens. Is it only possible for the sub-menus to go cross-frame when one of our own webpages is shown in the target-frame?
A: See more info about cross-frame mode here:
http://deluxe-menu.com/cross-frame-mode-sample.html
Notice, the menu will work correctly in the cross-frame mode if you load pages into the sub frame from the same domain.
If you load pages from another domain submenus won't be shown in the subframe - they will be shown in the frame with the top-menu.
It's caused by a security policy of browsers - a script can't modify a content of pages from another domain.
Q: I need a menu system where on the click of certain items, server side code on the page can be called and executed. Can that be done using deluxe menu?
A: You can use your own Javascript code instead standard links. For example:
var menuItems = [
["text", "javascript:your_code_here"]
];