Recent Questions Joomla 1 5 Tree Menu
Q: Many thanks for your response.
What I meant to say was that the Deluxe tabs onmouseover maker did not include the vertical tabs as part of its repertoire and as a result, I was not able to produce it and integrate it into my page. I am not confident that I can edit the HTML adequately to make it work on my site if the Deluxe Maker did nod not generate it. I will look at this again and see if I reinstall the deluxe tuner whether it will generate the data for the vertical tabs.
Many Thanks for your assistance.
A: Set '$' symbol in the beginning of items text to start new row:
var bmenuItems = [
["Item 39","", "", "", "", "", "", "", "", ],
["$Item 40","", "", "", "", "", "", "", "", ],
["$Item 41","", "", "", "", "", "", "", "", ],
["$Item 42","", "", "", "", "", "", "", "", ],
];
You can open the data file for this sample in Deluxe Tuner and changeit.
C:\Program Files\JavaScript Tree Menus Trial\deluxe-tabs\tabs-vertical.js
Q: My menu bar will not “center” when I view it via the Firefox and Netscape browsers.
It views fine via Internet Explorer. Is there any remedy for this?
A: Try to set exact width for the menu in "px", for example:
var menuWidth="400px";
Q: I’d like to know how to populate the navigation bar menu from a database?
A: Please, see the example of .php file.The content of .php file depends on your database structure.
<?php
// The example for PHP/MySQL.
// MySQL database has the table "menuTable" that contains data for menu items.
// The table has the following fields:
// 1. "text" - item text
// 2. "link" - item link
// 3. "icon1" - item icon (normal state)
// 4. "icon2" - item icon (mouseover state)
function getMenuItems()
{
$jsItems = '';
// Select all records from table "menuTable"
$allItems = mysql_query('SELECT * FROM menuTable;');
// Extract items data from database and build Javascript code for menuItems
while ($itemData=mysql_fetch_array($allItems))
{
$jsItems .= '["'.$itemData['text'].'", "'.$itemData['link'].'", "'.$itemData['icon1'].'", "'.$itemData['icon2'].'"],';
}
// Return Javascript code
return $jsItems;
}
?>
<script>
var menuParam1 = value1;
var menuParam2 = value2;
var menuParam2 = value2;
...
var menuItems = [
// Write Javascript code for menu items
echo getMenuItems();
?>
];
</script>
Q: I am facing problem with deluxe tab. When a first level jscript tab is selected, sub tab of that tab should be in selected mode.
I need to change text color of "New contact" (sub tab) in selected mode to black.
A: Unfortunately Deluxe Tabs doesn't have such a feature now.
You use main tabs to show sub-tabs and click on sub-tabs to show their content or openlinks.
On the initial page load you can set the selected item and submenu item using thefollowing parameters:
var bselectedItem=1;
var bselectedSmItem=2;