|
|
Is it possible to generate javascript onmouseover menu from dynamic content?
Return to Recent Questions
Q:
Is it possible to generate javascript onmouseover menu from dynamic content?
i.e I have a web application which currently generates a certain number of
tabs for content based on a users selection.
Can the javascript onmouseover menu be generated from dynamic content, or does it need to
be hard coded for the number of tabs and placement?
A:
Unfortunately, Deluxe Tabs doesn't have such a feature.
You may generate a menu from a database or XML using any server-side script, e.g., PHP, ASP, VB, etc.
However, these scripts don't work inside of Javascript .js files, so, you should move parameters of a menu from a .js file into an html-page, e.g.:
<noscript><a href="http://deluxe-tree.com">Javascript Tree Menu by Deluxe-Tree.com</a></noscript>
<script type="text/javascript" src="menudir/dtree.js"></script>
<!-- (c) 2006, http://deluxe-tree.com -->
<script type="text/javascript" language="JavaScript1.2">
// and describe parameters of a menu
var parameter1=value1;
var parameter2=value2;
etc.
var tmenuItems = [
// here you generate items using server-side scripts (php, asp, vb, etc.)
];
</script>
The example of the menu working with PHP/MYSQL you can find here:
http://deluxe-menu.com/rq-loading-bar-MySQL-support.html
This example is not for Deluxe Tabs menu, but you can create your menu in the same way.
Return to Recent Questions
Related:
- March 15, 2009 - How can I disable items in javascript onmouseover menu?
- Apr 02, 2009 - Where can I change the font size of the top javascript onmouseover menu items?
- Apr 19, 2009 - Is there a way to set the default javascript onmouseover menu tab on a page load?
- May 07, 2009 - I am interesting to use the javascript onmouseover menu for integration in some CMS...
- May 23, 2009 - I can see only the code generated by the GUI tool.How should I install javascript onmouseover menu?
- Jun 10, 2009 - When I run the javascript onmouseover menu on my website I get javascript errors on page
- Jun 27, 2009 - How can I upgrade my javascript onmouseover menu to v.2.0?
- Jul 14, 2009 - Flash in Firefox browser disappears behind the javascript onmouseover menu.
- Jul 31, 2009 - How to add the new items to the javascript onmouseover menu without using two data files?
- Aug 17, 2009 - Can we set right alignment in the javascript onmouseover menu?
- Sep 04, 2009 - How to use javascript calls when the link is clicked in the javascript onmouseover menu?
|