|
|
I want each css dropdown menu item to (optionally) support the following syntax: <a href="menu_link.html" onClick="
Return to Recent Questions
Q:
I have been evaluating your dhtml-tree product, for a potential use.
It does just about every thing I want apart from 1 thing:
I want each css dropdown menu item to (optionally) support the following syntax:
<a href="menu_link.html" onClick="return fnClickedLinked()">Menu Link</a>
I have worked out how to change the "menu_link.html", and also that
it could be something like "javascript:fnClickedLinked()".
However I want the above syntax, where search engines can pick up the
link and if my function returns false, the link is not followed when
clicked.
Is this possible?
Or can I cancel the link navigation using the tree API node click event??
A:
Actually you can add the html code inside item's text:
["|<a href="menu_link.html" onClick="return fnClickedLinked()">Menu Link</a>","", "", "", "", "Tip", "", "", "", "", ],
You can also try to use API function:
function dtreet_ext_userClick (itemID)
http://deluxe-tree.com/functions-info.html
Return to Recent Questions
Related:
- Sep 02, 2006 - Little vertical spacers between menu items in the drop down menu.
- Sep 04, 2006 - Set a menu item to pressed when a page is loaded.
- Sep 05, 2006 - Change cursor to a hand when over a menu link...
- Sep 06, 2006 - The alighment of the dropdown menu is off to the right in Firefox...
- Sep 06, 2006 - The first item of the html drop down menu stays highlighted.
- Sep 11, 2006 - How can I hide my dropdown menu on print?
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
- Sep 16, 2006 - I need to be able to highlight the selected menu item of the html tree menu.
- Sep 22, 2006 - Where do I add my "blahblah.htm" page links in js menu?
- Sep 26, 2006 - Why is the submenu has a different colour than menu items in the javascript menu bar?
- Sep 29, 2006 - I tried to use javascript function with the "Title item" of my javascript tree view.
|