Recent Questions Free File Tree Javascript
Q: Does dropdown menu javascript supports right to left languages?
A: Yes, JavaScript Tree Menu support right to left languages, set the following parameter:
var dmRTL=1;
Specify also align for your items:
var itemAlignTop="right";
var itemAlign="right";
Q: When on mouseover of a JavaScript Tree Menu icon, naturally a tooltip will come up if you have inserted text there. I seem to have no control over the length of time the tooltip stays active nor the colour or size of the font in that through script drop down menu. Am I missing something? I would like to be able to have the tooltip stay for about 30 seconds and also change the font size and colour of text in the tooltip only.
A: No this is a standard hint, there is no way to increase the time it stayson the screen or change its color.
Q: I need to work it with PHP/MySQL. I have found some information on it in your Support section, but have problems to understand and wonder if you have more information or a working sample of the loading bar with PHP/ MySQL.
A: Info about generating menu (menu items )from a database, please, see:
http://deluxe-menu.com/generate-menu-from-database-xml-php-asp-vb-support.html
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 = [
<?php
// Write Javascript code for menu items
echo getMenuItems();
?>
];
</script>
Q: I'm trying to sell a client on using JavaScript Tree Menu but one complaint is that the text is not centered in the menu pad and I can't find a function in Deluxe Tuner which allows for centering.
I've downloaded the latest version but it didn't help.
A: You should set the following parameter to center your top items:
var itemAlignTop="center";