Recent Questions
Q: I'd like to be able to right click on items in a collapsible menu and then pick actions to perform from a context menu
Is this possible?
A: You can use API functions
function dtreet_ext_userRightClick (itemID)
See more info here:
http://www.deluxe-tree.com/functions-info.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: Can I put two popup windows in one HTML file?
One popup for example after 1 second, and disappear after 10
The second one after 15 second and disappear after 30 seconds.
Can you help me?
A: You should set the following parameters for the first window:
winID:"window1",
openAfter:1,
closeAfter:10,
for the second window:
winID:"window2",
openAfter:15,
closeAfter:30,
See also how should you install popup windows on your page:
<head>
<!-- Deluxe Popup Window -->
<noscript><a href="http://deluxepopupwindow.com">DHTML Window Script by DeluxePopupWindow.com</a></noscript>
<script type="text/javascript"> var dmWorkPath="deluxe-popup-window.files/";</script>
<script type="text/javascript" src="deluxe-popup-window.files/dpopupwindow.js"></script>
<!-- (c) 2009, http://deluxepopupwindow.com -->
</head>
<body bgcolor="#FFFFFF">
<script type="text/javascript" src="deluxe-popup-window.js"></script>
<script type="text/javascript" src="deluxe-popup-window2.js"></script>
</body>
Q: Is it possible for the dhtml navigation to stay within a table for placement (in order to have a centered website content optimized for 1024x768 - and always have the content centered in the browser regardless of larger resolution sizes, etc.)? so the horizontal placement may vary but the vertical placement would remain the same.
I'm sure it is - but have not had success on implementing it.
A: You can place a menu in a TABLE or DIV with aligh="center".