Recent Questions
Q: For any reason dropdown menu in javascript know shows incorrect accented characters.
A: You can save your data file in UTF-8 in Windows version of DeluxeTuner v3.2.7.
You should turn on "Tools/Use utf8 encode" property.
In that case your data file will be saved in UTF-8 encode.
Enter these symbols and save your data file.
If you don't want to use UTF-8 encode on your page you should turn off"Tools/Use utf8 encode" property, save your data file and manuallychange your letters in any text editor.
You can also replace your letters with special sets, for example
É - Capital E, acute accent - E
ç - Small c, cedilla - c
var menuItems = [
["É....","testlink.html", "", "", "", "", "", "", "", ],
["ç....","testlink.html", "", "", "", "", "", "", "", ],
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: There is the possibility in the menu that an item has access control, that is is visible or not depending of the user?
A: You can use Javascript API and write your own code.
See more info here:
http://deluxe-menu.com/functions-info.html
You can use
dm_ext_changeItem (menuInd, submenuInd, itemInd, iParams)
to disable your items or
dm_ext_changeItemVisibility (menuInd, submenuInd, itemInd, visibility)
to hide your items.
Q: Is it possible to create the dhtml scroll with a tilde (over the letter N).it would look like N. I want the menu item to be labeledСSe habla Epanol.
A: You can use any html code within menuItems, for example:
var menuItems = [
["Se habla Epañol","testlink.html", "", "", "", "", "", "", "", ],